Adapting Test Automates with the Test Automation Tool

Objective

After completing this lesson, you will be able to adapt test automates to align with customized business processes

Adapt Test Automates

Use the Manage Your Test Processes app to view standard test automates and create custom versions. The app categorizes test processes into three types:

  • Standard test automates/processes: Delivered by SAP to align with SAP Best Practices manual test scripts. These are read-only and cannot be edited or deleted.
  • Custom test automates/processes: Created by copying a standard process or building a new one from scratch.
  • Post upgrade test automates/processes: Automated tests run by SAP on behalf of the customer following a release upgrade.
Screenshots showing how to adapt a test automate.

To adapt a standard test automate to your specific business requirements, first make a copy of the standard process. Perform all modifications within this copy. Once copied, the process type changes to Custom. By default, these processes are not visible in the Test Your Processes app. After completing your edits, update the visibility settings to make the process available for assignment to a test plan.

  1. Select Edit to identify the process step (test procedure) you wish to modify.
  2. Select the checkbox for the process step and choose Change Type to convert it to a custom step. In the Release Compatibility column, the checkmark will change to a question mark, indicating that this step requires validation after future release upgrades.
  3. Select Save.
  4. Click the custom process step to view individual actions, which correspond to the steps in a test script. Select Edit in the lower-right corner.
    • Mandatory actions (where the Optional slider is set to No) must execute successfully. If a mandatory action fails—for example, if a required value is missing—the entire test plan stops immediately.
    • Some fields use data binding, where the value of one field (such as a country) filters the available options in another field (such as states).
  5. To add custom fields to an automate (for example, fields added to the Create Customer Projects app), select the checkbox of the action where you want to insert a new step using Add Step Above or Add Step Below.
  6. The system opens the target application in a new browser tab. Return to the original tab and select Record to capture your interactions in the application tab.

Try it yourself!

Learn about the features of the Manage Your Test Processes app in this tutorial.

Recording new actions

The recording tab displays a Recording Panel with controls for Check, Read, Stop, and Pause. Interact with the application normally to record your steps. Use the Check and Read functions for specific data validation:

  • Use the Check button to verify static values, error messages, or labels on the screen.
  • Use the Read button to capture values or non-error messages for later use.
Screenshots showing how to use the recording functionality in the Manage Your Test Processes app.

Values captured using Check are to perform a data check to verify correct data is populating in the step of the process.

Values captured using Read are stored as variables for data binding if you want to use a value in the next step of the process. Data binding allows you to pass information from one action to another. During execution, the system validates these values. If the actual value does not match the recorded value, the step fails. If the step is mandatory, the entire test execution stops.

Once recording is complete, the tool generates the corresponding actions and values. You can then save your changes and change the visibility of the test process to include it in a test plan.

For more information, see managing your test processes in the SAP Help Portal.

Try it yourself!

Learn how to adapt SAP Best Practices test automates in this tutorial.

Test Data Containers

To ensure consistent test execution, you can bind the process to a Test Data Container (TDC). TDCs are repositories of reusable sample data for various business process fields. Using a TDC provides a single source of truth for test data, preventing failures caused by missing or unavailable data. You can use standard TDCs provided by SAP or create custom TDCs.

Screenshots demonstrating which test data container is bound to a standard test automate.

For more information, see Test Data Containers in the SAP Help Portal.

Try it yourself!

Learn how to create a test data container and its variants in this tutorial.