Recording a SAP batch input test

You can record certain SAP transaction sessions from SAP GUI with SAP batch input tests recording wizard. When you record a session, the recording wizard automatically starts a SAP GUI interface and records the transaction that you specified. After you finish the recording, the wizard generates a SAP batch input test in HCL OneTest Performance.

Before you begin

You must have added the SAP Java Connector (JCo) libraries on your computer. See Configuring the environment for batch input tests.

About this task

During a SAP batch input test recording, the SAP batch input test produces only a batch input transaction that you specified. The SAP batch input tests do not contain any verification point and do not produce any performance result.

Procedure

  1. Access HCL OneTest Performance.
  2. Click the New Test From Recording New Test From Recording toolbar button icon or click File > New > Test From Recording from the toolbar.

    The New Test From Recording page is displayed.

  3. Click Create a test from a new recording, and then select the SAP Test.
  4. Click Next.
  5. Optionally, click Recording encryption level and select the encryption level when you are recording any sensitive data.

    The Select Location page is displayed.

  6. Create a test by performing the following steps:
    1. Select a project and select a folder from the project.
    2. Enter a name for the test, and then click Next.

    The Select Client Application page is displayed.

  7. Select SAP Batch Input Recording, and then click Next.
  8. Perform the following steps to enter the connection and transaction details provided by the SAP administrator.
    1. Enter the following details in the Connection section.
      Fields Action
      Client Enter the SAP client details.
      User Enter the user name associated with the SAP server.
      Password Enter the password associated with the user name.
      Language Select your language.
      Host Enter the SAP host server details.
      System Number Enter the system number that corresponds to an SAP instance with the SAP server.
      Note: For HCL OneTest Performance, the default value is 00.
    2. Click Test Connections to verify if the connection is established.

      The SAP Batch Connection dialog box is displayed.

      A confirmation message is displayed that states that the connection is successful.

    3. Click OK.
    4. Enter the SAP transaction code in the Code field.
    5. Click Finish.

    The SAP GUI window is displayed.

  9. Record the batch input transaction, and then click Save.

    The SAP GUI Transaction page is displayed.

    The page displays the details of the transaction that you recorded.

  10. Click Exit.
    Note: To exit the SAP GUI Transaction page, you must click Exit. If you exit the page by using any other methods, an exception error is displayed.
  11. Select the directory where you want to export the recording on your local computer, and then click Generate.

    The SAPGUI Security dialog box is displayed.

    The dialog box displays the file path for the recording and the directory where the recording is being stored.

  12. Click Allow to confirm.

    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

The SAP batch input transaction is recorded.

What to do next

You can click Open Test to open the test in HCL OneTest Performance. You can then verify the SAP transaction details and save the test. Later, you can run the test and view the transaction details from the following pages:
  • Test Log page
  • SAP Performance report page (SAP Performance Report > Batch Input Transaction)
  • Functional Test report page