Skip to Content

Introduction
You might have used eCatt in the past to test your ABAP applications, but did you know that you could use the same to tool against ABAP Web Dynpro! I recently sat down and had the opportunity to use eCatt to test some Web Dynpro ABAP applications. I was really impressed by the level of functionality that eCatt gave me even with my WDA application running through a browser.

After recording my script, I could view the data in the screen elements and in the context. There was even a screen simulation tool! But I am getting a little ahead of myself.

I wanted to write about these experiences with eCatt and WDA, but I just didn’t feel that words and screen shots really didn’t really paint the whole picture. Therefore I have recorded several screen cams of eCatt in action. They are available for viewing here:

eCatt with Web Dynpro ABAP

This 7 minute demo is broken down into 5 different chapters. Later in this weblog I refer to these different chapters of this recorded session. As SAP’s development tools have become more visual in nature, I think it is important to expand beyond the basic screen shot. I am interested in people’s opinions about this format of video to accompany a weblog. You are welcome to post any comments or suggestions about this format within this weblog.

Setting of eCatt for Web Dynpro ABAP
Before you can get started recording your eCatt Scripts against Web Dynpro ABAP, there are some specialized setup instructions. You can find the complete instructions in this Help link:
Preparing Systems for Testing Web Dynpro

The process is relatively simple and first involves setting a new system user and then assigning this user to an activated Service Node.

If you try to record an eCatt Script for a Web Dynpro, but have not yet created the special system user, ECATT_HTTP, you will receive the following error message:
image

However the situation is little trickier if you have created the user, but the Service Node, ECATT_RECORDER, hasn’t been properly setup yet. In this case, the recording process will begin without an error. The Web Dynpro application will then short dump upon initialization with the following error:
image

If you look at the corresponding Short Dump in ST22, you will see an error like the following:
image

This should tell you that something is wrong with the Service Node setup and you can visit transaction SICF to check up on it.

Using eCatt for Web Dynpro ABAP
Now that everything is setup correctly, we are ready to look at the first chapter of the video, eCatt Recording. The first thing you might notice about this entire video is that we never really leave SE80 for any of our work. All of the eCatt recording and playback options are all integrated in SE80. We start the recording of the script via the Object Navigator context menu. Later you will see that the eCatt script itself simply becomes a sub-object in the Object Navigator under the Web Dynpro Application itself.

When we begin our recording we will see that a SAPGui notification will appear telling us that a Script has attached to the Gui. What you might not be able to see from the recording is that the SAPGui window with SE80 has actually disappeared as soon as the browser was launched. In its place is simply a SAPGui Dialog Window with the title “Web Dynpro Recording is Running…”. This is the window that controls the recording. You can stop the recording from this window. Once stopped, the dialog window will disappear and the full screen with SE80 will return.

We are now ready to look at the second chapter of the video, eCatt Playback. This is where the fun really begins. I was really impressed by how much information about the Web Dynpro Application had been captured and exposed by the recorded script. I was totally blown away by the simulation function. Not only is this some very nice functionality of eCatt, but it demonstrates another good reason for the client independence rendering of Web Dynpro. At first I thought the single screen simulation from within the script display was impressive, but this turns out to be nothing compared to the full simulation during script playback.

Personalization and customization of the Web Dynpro UI is one of really powerful features of the framework. I was curious what effect changing the UI might have on an eCatt Script that I had already recorded. In Chapter 3 of the video, WDA with Personalization, we find out. I created administrative customization of the application, yet the eCatt script was still able to complete. However I did learn that if you have the script performing input onto a field that is disabled via customization, your script will produce a failure condition at that point.

Building upon my experiences with the customization, I was curious what would happen if I actually changed the view of my application in the editor. I wanted to change the order of the fields to find out just how intelligent eCatt was. Was it placing data into the input fields based upon position/order? Have a look at Chapter 4, WDA with Screen Modifications, to find out.

At this point I was determined to try and break eCatt. I thought I finally had a situation it wouldn’t be able to handle. I have a Web Dynpro Application that has dynamic UI elements. This application is a Web Dynpro version for the classic Data Browser SE16. It creates all the UI elements at Runtime based upon what table you select to query against, so I thought the dynamic elements would mess up eCatt for sure. If you have a look at the final chapter, WDA with Dynamic Screen Elements, you will see that I was wrong. Even UI elements created at runtime couldn’t break eCatt. I even changed the context data so that a different table would be used to generate the UI elements!

Closing
I hope that you have enjoyed this little look at the functionality of eCatt against Web Dynpro ABAP. It should have wet your appetite enough to want to go exploring with eCatt on your own.

I am also interested to find out what readers thought of the video part of this weblog. Did you have any technical problems viewing the video? Was it helpful to have video instead of screen shots? It takes considerably longer to record, narrate, and edit video than it does to just take screen shots, so we all want to make sure that this extra effort is valuable.

To report this post you need to login first.

16 Comments

You must be Logged on to comment or reply to a post.

  1. Peter Inotai
    Hi Thomas,

    Thanks for this weblog. I wasn’t aware about this powerful tool, your weblog demonstrates it very well.
    I liked the video features, it’s gives much better overview than screenshots and it’s more entertaining:-)
    My only remark is, that I don’t like the format as it’s not possible to download it. When I use my NSP system I work offline, as my antivirus and firewall program are stopped in order not to slow down my machine. SAPTutor would be a better option from this point of view, but probable it needs more time to edit it.
    I hope in the future there will be more and more SND weblog with video.

    Peter

    Ps: It worth to mention that in NSP for client 000 eCATT is disabled by default, so it’s necessary to enable it via transaction SCC4.

    (0) 
    1. Thomas Jung Post author
      I couldn’t find anything in eCatt for BSP.  There are modules that allow testing for Non User Interface modules (Function modules and BAPIs), Transaction Code Testing (similar to classic CATT), Gui Scripting testing using the SAPGui for Windows or Java, Web Dynpro (Java or ABAP), Business Configuration Sets, Web Services, and Global ABAP Object Classes. 
      (0) 
  2. Anonymous
    Thanks thomas,

       It was completely a good informative blog and learned so much from that. can u please tell me how to do ecatt test for 10 -20 WDA applications at once.do we have options to do that.

    regards
    sathish

    (0) 
  3. Eugene Sicat
    The recording made it easier to follow.   Its worthwhile doing it in recording than in screen shot especially with this material where it has a lot of details and places to click at.

    Great coverage on the different test and possible changes.    Things that any developer will be looking for.

    (0) 
  4. manoj thatha
    only SAPGUI based transactions are involved in testing than eCATT is the best tool to be used. And if web based transactions are also involved, forced to go for QTP.

    is this statement is right

    whether ecatt can be effectively used for web based transactions

    your web blog is good

    it helped me a lot

    (0) 
    1. Thomas Jung Post author
      I guess it really depends upon your total requirements and what the web based transactions were created in.  However as this blog shows, Web Dynpro ABAP based web transactions can be tested with eCATT.
      (0) 
  5. Amisha parikh
    Hi,

      We are not able to get option of “Start ECATT Recording” in Web Dynpro Application Menu.

      How to enable this option ?

    Regards
    Amisha

    (0) 
    1. Thomas Jung Post author
      Check that your system if fully configured for eCATT testing according to the steps above.  Also I believe that eCATT testing is not fully supported on 7.0 and the option may have been removed in a latter support package.  eCATT testing is planned to be fully supported with Web Dynpro ABAP in NetWeaver 7.0 Enhancement Package 2. You might have to wait until that point.
      (0) 
  6. Samson Dupigny
    Hi, this video is great for WebDynpro apps that are custom developed.  However, for WebDynpro apps that use Floor Plan Manager and are customized via Application Configuration, there does not seem to be a good way to record an eCatt script.  As an example, in SRM 7.0, WebDynpro Component FPM_OIF_COMPONENT, Application /sapsrm/wda_l_fpm_oif, application configuration /SAPSRM/WDAC_I_FPM_OIF_PO_PURCH, how would one record an eCatt for this?

    Thanks!

    (0) 
    1. Thomas Jung Post author
      In 7.02, you can just right mouse click on the WDA Application and choose Start ECATT Recording. That works fine for FPM applications as well. Is the Application Configuration not supplied as an Application Parameter and picked up by ECATT?  Worst case you might have to create a new Application and Application configuration tied to the same components and component configuration in order to directly test.
      (0) 
  7. Corina Jereghi

    Hello Thomas.

    I tried to acces the links from the article but it says PAGE NOT FOUND.

    Is there any other way I can found the information?

    Thank you. 🙂

    (0) 

Leave a Reply