Show TOC

Procedure documentationRecording a Test Script Using Component-Based Test Automation Locate this document in the navigation structure

 

You can record business scenarios and create automated test cases with component-based test automation.

You can create tests and components from the screens of a transaction, and parameterize them. These tests are for a single transaction and can be combined into a scenario test. You maintain the components in the test composition environment.

Note Note

You can test the following types of applications:

  • SAP ABAP servers:

    • SAP GUI

    • SAP CRM Web Client

    • Web Dynpro ABAP

    • Business Server Pages (BSP)

    • Web GUI (SAP GUI for HTML)

  • SAP Java servers:

    • SAP Portal

    • Java Web Dynpro

  • Third-party servers:

    • URL (HTML pages)

End of the note.

Note Note

There are limitations to the scope of CBTA. For more information, see SAP note 1835958.

End of the note.

Prerequisites

Procedure

  1. Save your entries.

  2. Choose Launch CBTA.

  3. Logon to the system under test.

    The Test Creation Wizard starts.

  4. Optional: Replace the default analysis name with a more meaningful one.

  5. To confirm, choose Next.

    The executable starts. The Test Creation Wizard is in recording mode.

  6. Perform the business process.

  7. Optional: To add a checkpoint, do the following:

    1. In the Test Creation Wizard, choose Add Checkpoint.

    2. Click the UI control to be checked.

      The UI control is listed in the test creation wizard.

    3. Optional: Change the property to be checked.

      When changing this property, its value is displayed.

    4. Optional: Change the operator and value to be checked.

  8. Optional: To add a screenshot to the execution report, choose Insert Screenshot.

  9. To stop the recording, in the Test Creation Wizard choose Stop the PFA and validate.

  10. Choose Next.

    The structure of the process flow is displayed.

  11. Verify that the business process has been recorded correctly and completely .

  12. To create the test, choose Next.

    To cancel the recording, choose Cancel.

    The test script and test components required are generated and uploaded to the SAP Solution Manager.

  13. Choose Finish.

  14. In the test composition environment, choose Refresh.

    The test composition environment is updated with the results of the recording. The test script parameters, if defined, are displayed on the Parameters tab page.