Recording a specific SAP transaction from a running SAP session

You can record certain SAP transactions from a running SAP GUI session to create a test that contains some specific part of an SAP session. When you record a session, the recording wizard automatically records the transaction that you specified.

Before you begin

  • Working SAP GUI client that you can connect to an SAP server.

  • You must have logged in to the SAP GUI session with your valid credentials.

About this task

When you record a specific SAP transaction session from a running SAP session, you can skip the SAP logon process and start the recording from a specific screen in the middle of a running SAP session by using the Record from a running session started with SAP Logon option.
Important: Do not log off the SAP GUI session until the test run completes.

After the SAP recording is complete, you can run the SAP test and verify the transaction details.

You must install the latest version of SAP GUI when you want to record an SAP test in Test Performance. For more information about supported SAP GUI versions, see System Requirements.

Procedure

  1. Open Test Performance.
  2. Click the New Test From Recording icon New Test From Recording toolbar button, and then click SAP Test.

    The Select Location page is displayed.

  3. Create a test by performing the following steps:
    1. Select a project, and then select a folder from the project.
    2. Enter a name for the test.
    3. Optionally, click Recording encryption level, and then select the encryption level when you are recording any sensitive data.
  4. Click Next.

    The Select Client Application page is displayed.

  5. Click SAPGUI For Windows, and then select Next.
    The SAP Connection page is displayed.
  6. Select Record from a running session started with SAP Logon.
  7. Click Finish.
    The SAP Easy Access on the SAP GUI window is displayed.
  8. Record an SAP transaction (For example, SM04), and then click Exit to close the transaction session.
    Important: Do not log off the SAP GUI session until the test run completes.
  9. Open Test Performance and then click Stop Recording Session.

    A Test Generation Progress window is displayed while the test is being generated.

    The following message is displayed on the progress window: Test Generation completed.

Results

You have successfully recorded a specific transaction session from a running SAP session.

What to do next

You can click Open Test to open the test in Test Performance. With the SAP GUI session open, you can then verify the SAP transaction details and run the test in Test Performance.
Important: Do not log off the SAP GUI session until the test run completes.
After the test run completes, you can then verify the transaction details from the following pages:
  • SAP Summary page in the SAP Statistical Report
  • Test Log page
Note: When you use the Record from a running session started with SAP Logon option to record an SAP test, and then if you add that SAP test to a schedule (VU schedule or Rate schedule), the schedule run fails and the following error message is displayed in the Test Log page or Execution Event Console log page: Connection with the existing SAP GUI session or shortcut is not allowed during schedule execution

You can then place the transaction session in between an SAP session that has a logon and logoff session. You can then save and run the schedule.