Show TOC

Procedure documentationRecording a Test Script Using Component-Based Test Automation

 

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

  • Web servers:

    • URL (HTML pages)

    • SAP UI5

End of the note.

Note Note

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

End of the note.

To cover special use cases, you have the following options:

  • To compose tests manually, to reuse parts of existing tests, or modify tests (add certain conditions, for example), you can create screen components for ABAP Web Dynpro applications.

    For more information, see “ABAP Web Dynpro Screen Components”.

  • To retrieve information from a message that the application displays in the message area, you can the default component CBTA_WEB_A_GETMESSAGEPARAMS. You add it to the generated test script, manually.

    For more information, see “CBTA 3.0 SP02 – Working with Message Parameters” (http://service.sap.com/~sapidb/011000358700000195142014E.PDFInformation published on SAP site) on SAP Service Marketplace at Start of the navigation path http://service.sap.com/testingInformation published on SAP site Next navigation step Media Library Next navigation step Test Management End of the navigation path.

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.

More Information

For more information about defining checkpoints, inserting screenshots, or removing steps from a recording, see “CBTA 3.0 SP02 – Recording Wizard Features” (http://service.sap.com/~sapidb/012002523100008890292014E.PDFInformation published on SAP site) on SAP Service Marketplace at Start of the navigation path http://service.sap.com/testingInformation published on SAP site Next navigation step Media Library Next navigation step Test Management End of the navigation path.