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
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
Note
There are limitations to the scope of CBTA. For more information, see SAP note 1835958.
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.PDF) on SAP Service Marketplace at .
You have installed the Component-Based Test Automation client on your local machine. For more information, see Installing and Configuring the CBTA Client.
You have created a test profile. For more information, see Creating a Test Profile With Logon Data for SUTs.
You have created a test configuration or a test script and are editing it in the test composition environment. For more information, see Creating a Test Configuration or a Test Script.
You have maintained the attributes of the test configuration or a test script. For more information, see Maintaining SAP Attributes on the Attributes Tab Page.
Save your entries.
Choose Launch CBTA
.
Logon to the system under test.
The Test Creation Wizard
starts.
Optional: Replace the default analysis name with a more meaningful one.
To confirm, choose Next
.
The executable starts. The Test Creation Wizard
is in recording mode.
Perform the business process.
Optional: To add a checkpoint, do the following:
In the Test Creation Wizard
, choose Add Checkpoint
.
Click the UI control to be checked.
The UI control is listed in the test creation wizard.
Optional: Change the property to be checked.
When changing this property, its value is displayed.
Optional: Change the operator and value to be checked.
Optional: To add a screenshot to the execution report, choose Insert Screenshot
.
To stop the recording, in the Test Creation Wizard
choose Stop the PFA and validate
.
Choose Next
.
The structure of the process flow is displayed.
Verify that the business process has been recorded correctly and completely .
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.
Choose Finish
.
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.
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.PDF) on SAP Service Marketplace at .