Show TOC Start of Content Area

Procedure documentation Recording a Web Dynpro Application  Locate the document in its SAP Library structure

Use

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

http://<Server>:<Service No.>/ <URL extension>/<Application>

The URL extension looks different depending on whether the Web Dynpro runtime environment is based on the Java or the ABAP stack.

If you are using the ABAP stack, the extension is:

<ABAP URL extension> = sap/bc/webdynpro

If the WDR is based on Java, the extension has the following format:

<Java URL extension> = webdynpro/dispatcher

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

Use WEBDYNPRO  to start an application for recording in the Web Dynpro Client (ABAP and Java) or Browser (Java only).

WEBDYNPRO (Import) refers only to Web Dynpro Java applications. When a Web Dynpro Java application is recorded in the SAP NetWeaver Developer Studio, an xml file is generated that can be uploaded in eCATT. eCATT then generates the corresponding Web Dynpro commands.

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). In case of an ABAP application, the RFC destination is type H (HTTP connection to ABAP system). 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. 

      Depending on what kind of Web Dynpro application (ABAP or Java) you want to record, you need either a browser (Java only) or the Web Dynpro Client (ABAP and Java).

Procedure

The following procedure describes how you record a Web Dynpro application:

WEBDYNPRO

       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.      When recording a Java Web Dynpro application, you can now select whether the application is to be recorded in the browser or in the Web Dynpro Client. When recording an ABAP application, you do not have this choice. Therefore, in this case, you go directly on with step 6.

       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.

Result

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

When opening the command interface, you can display the context menu for every node in the structure editor. Options that are not available for this node are greyed out. For the nodes Datachanges and Gets and Checks also an option for the deletion of a tree branch is available in the context menu. This function either deletes the whole branch except for the main nodes. Or, if there is another sub-branch under one of these upper nodes, the branch is deleted until the junction node.

 

End of Content Area