Record a session with HTTP SAP Portal

 

+

Search Tips   |   Advanced Search

 

Overview

With SAP Portal, you can open an SAP GUI session from a Web interface. You can record an SAP Portal session by recording an HTTP test followed by an SAP GUI test.

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.

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.

Verify 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.

The HTTP test records the session information from the SAP Portal Web interface, which provides an SAP shortcut that opens the SAP GUI. The SAP test recorder then records all the activity that occurs in the SAP GUI client.

SAP Portal tests that are recorded with this method can be run only within a schedule. After recording, set up a schedule that first runs the HTTP test and then the SAP test.

Multiple HTTP and SAP tests that are recorded with this method are not interchangeable and must be reused in pairs.


Record an SAP Portal session

  1. First, record an HTTP test:

      File | New | Test from Recording | HTTP Recording | Next

  2. On the page...

      Select Location for Test Suite

    ...select a project.

    In Test file name, type a name for the HTTP performance test, and then click Finish.

  3. In the Web browser, type the URL of an SAP Portal Web interface.

  4. On the Web page, follow the logon procedure, and click the link to open the SAP GUI session.

    The Web browser downloads an SAP Portal shortcut file and opens the SAP GUI application with the session information that the shortcut file contains.

  5. Leave the SAP GUI application open, and close the Web browser.

    Do not close the SAP GUI client. This stops the recording and generates a new HTTP test that ends with a variable assignment element named Set SAP Shortcut.

  6. Now, record the SAP test...

      File | New | Test from Recording | SAP Recording | Next

  7. Select the project and folder where to create the batch input test, type a name for the new test, ...

  8. On the SAP session page of the wizard, select Record a running session started from HTTP SAP Portal, and click Finish to start recording.

  9. In the SAP GUI client, complete the transactions to record for the test.

  10. When you have completed the transactions to be tested, stop the recording by closing the SAP GUI as a usual session.


Results

At the end of the recording session, two tests are created:

Both tests contain an SAP shortcut variable in their Test Variables section.

To run an SAP Portal test, both the HTTP test and the SAP test must be run together in a schedule and use the same SAP shortcut variable.


Related

  • SAP performance testing guidelines


    Related tasks

  • Record an SAP test
  • Insert a new recording into an SAP test
  • Record an SAP batch input test
  • Change SAP test generation preferences