+

Search Tips   |   Advanced Search


Record an SAP test

You can record interaction with the SAP GUI client to generate an SAP test. When you record, the recording wizard launches the SAP GUI client and records all the interactions that occur between the client and the server.

Verify that the Rational Agent Controller is running on the local computer and that SAP GUI Scripting is enabled on the SAP R/3 server and the SAP GUI client. See Configure SAP R/3 for performance testing for more information.

Tests are stored in performance test projects. If workspace does not contain a project, the test creation wizard creates one with a name that you can change.

To store a test in a specific project, verify that the project exists before you record the test.

Ensure that you have a working SAP GUI and that you are able to connect to a SAP R/3 server.

Ensure that the session that you are recording is reproducible.

For example, if you create items in SAP and do not delete them, then they will already exist when the test is run, which might cause the test to fail. To record a test:

  1. In the Test perspective, click File > New > Test from Recordingor click New Test from Recording (

    ).

  2. Select Create test from new recording and SAP Recording; then click Next.

  3. In Test file name, type a name for the test.

  4. Select how to connect to the SAP R/3 server:

    • In most cases, select SAP Logon; then enter the description normally used by SAP Logon to identify the server in SAP system name.

    • If environment does not support SAP Logon, select Server information. In Application server, enter the host name or IP address of the server. Then specify a value for System number. Enter information in Other options, if required. Refer to SAP documentation for details about the other SAP Logon options.

    • If environment uses gateways or routers to connect to the SAP R/3 server, select Connection by string. Click Edit to specify a valid connection string. Refer to SAP documentation for details about connection strings.

    • If you have an SAP shortcut file to automate the connection, select SAP shortcut file. Click Browse to specify the location of the file.

    • You also have the option of logging on to SAP through the HTTP SAP Portal. See Record a session with HTTP SAP Portal for more information.

  5. If this is the first time you record a SAP performance test, read the privacy warning, and select Accept to proceed.

  6. Click Finish to start recording. A progress window opens while the SAP GUI starts. In some cases, you might see a warning that a script is opening a connection to SAP.

  7. Log on to SAP and complete the transactions to test. For security reasons, the password cannot be recorded by the SAP test recorder. Instead, it is requested at the end of the recording session.

  8. When you have completed the transactions to be tested, stop the recorder by closing the SAP GUI or by clicking Stop (

    ) in the Recorder Control view.

  9. In the Enter Password window, enter the password for the account used for recording. This is required because SAP GUI does not allow direct recording of the password. A progress window opens while the test is generated. On completion, the Recorder Control view displays this message: Test generation completed. The Test Navigator lists test and the test opens in the test editor.


Related

  • SAP performance testing guidelines


    Related tasks

  • Insert a new recording into an SAP test
  • Record a session with HTTP SAP Portal
  • Record an SAP batch input test
  • Change SAP test generation preferences