Recording a Web Dynpro Application

Use

You can record a Web Dynpro application that is either on the Java stack or on the ABAP stack. The URL for an application has the following form:

http://<Target Host>:<Service No.>/<Application>

For example: http://p12345:50000/webdynpro/dispatcher/local/MyProject/MyApplication.

Use WEBDYNPRO (Record) to start an application for recording in a browser or the Web Dynpro Client.

Use WEBDYNPRO (Attach) to record an application that is already running in the Web Dynpro Client. You cannot attach to an application in a browser.

Prerequisites

?     The test script has a system data container with the appropriate target system (unless the application is in the eCATT system). If the application is Java based, the RFC destination is type G (HTTP connection to external server). If the application is ABAP based, the RFC destination is type H (HTTP connection to ABAP system). In either case, you need to have entered the relevant information from the URL in the Target Host and Service No. fields in transaction SM59. On the Logon & Security tab in SM59, you need to have selected Basic Authentication and entered a user and password.

?     A browser for the application.

Procedure

WEBDYNPRO (Record)

       1.      In the test script editor, choose the Pattern function.

       2.      Choose the group UI Control followed by WEBDYNPRO.

       3.      Accept or change the suggested interface name and choose Enter.

       4.      In the Record Web Dynpro Application dialog, enter the target system and the application.

Taking the above example, you would enter webdynpro/dispatcher/local/MyProject/MyApplication in the Application field.

Optionally, you can also specify the name-value pairs from the URL (these look like this in the URL: ?parameter1=value1&parameter2=value2) in the Parameters from Application section.

       5.      Select whether the application is to be recorded in the browser or the Web Dynpro Client.

       6.      Choose Start Recording.

The application starts. Depending on the application, you might be required to enter some authentication information.

       7.      In the application, make the required entries and actions.

       8.      When you are finished in the application, return to eCATT and choose End Recording.

For every page of the application, one WEBDYNPRO command is entered in the test script.

WEBDYNPRO (Attach)

       1.      In the test script editor, choose the Pattern function.

       2.      Choose the group UI Control followed by WEBDYNPRO (Attach).

       3.      Accept or change the suggested interface name and choose Enter.

       4.      Select the application to be recorded.

       5.      Choose Enter.

       6.      When you are finished in the application, return to eCATT and choose End Recording.