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 DevOps Test UI (Test UI).

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.

You must install the latest version of SAP GUI when you want to record an SAP test in HCL DevOps Test UI (Test UI).

Procedure

  1. Open Test UI.
  2. Click the New Test From Recording icon New Test From Recording toolbar button, and then click SAP Test.
    Note: You can also click File > New > Test From Recording, and then select SAP Test. You can then select the encryption level, if required and click Next to open the Select Location page.

    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. Select SAP Batch Input Recording, and then click Next.
  6. 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 DevOps Test UI, the default value is 00.
    2. Click Test Connections to verify if the connection is established.

      The SAP Batch Connection dialog 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.

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

  8. 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.
  9. Select the directory where you want to export the recording on your local computer, and then click Generate.

    The SAPGUI Security dialog is displayed.

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

  10. 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 Test UI test editor. 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
  • Functional Test report page