Creating Test Users and Test Plans with the Test Automation Tool

Objective

After completing this lesson, you will be able to create a test user and customer-specific test plan

Test Users and Test Plans in SAP S/4HANA Cloud

Create a Test User

Use the Test Your Processes app to create virtual test users, build test plans, and provide consent for SAP to perform Post Upgrade tests. Every test plan requires a virtual test user to automate the actions within each process.

Screenshots showing how to create a test user in the Test Your Processes app.

You can create three types of test users within the app:

  • Maintain Roles
    • Business User
    • Communication User
  • Maintain URL for Authentication
    • Conditional Authentication User

Maintain Roles

The Business User type is for standard business processes contained entirely within SAP S/4HANA Cloud. Create this user as you would a standard employee using the Manage Workforce app, then import the details into SAP Cloud Identity Authentication to set a password.

Assign all relevant business roles to this user so they can access the necessary apps for automation. Name this user DEFAULT, as the test process automates in the Manage Your Test Processes app already have a column for Role with a prepopulated DEFAULT user. For more details, see the business processes and required roles in the SAP Help Portal.

Caution

  • Business catalogs assigned to roles must have READ and WRITE access.
  • The test user password must match the actual user password for SAP S/4HANA Cloud. If the password changes due to security policies, update it in the Test Your Processes app.

Try it yourself!

Learn how to create a test business user in this tutorial.

The Communication User type is used for integration scenarios involving external SAP solutions. You can reuse existing communication arrangements to create these users. Ensure the Role column in the test process automate is updated with the specific communication users created for your integration steps.

Try it yourself!

Learn how to create a test communication user in this tutorial.

Maintain URL for Authentication

The Conditional Authentication User is required if your organization uses a non-SAP Identity Provider (IdP), such as Microsoft Azure AD. Because the Test Automation Tool only supports SAP IdP for login, you must configure conditional authentication to execute test plans. Learn how to configure conditional authentication in the SAP Help Portal.

Create Test Plans

In the Test Your Processes app, select the + (plus) icon to create a new test plan and assign processes. The order in which you select processes determines their execution sequence.

Within the plan, you can identify custom process steps by the question mark in the Release Compatibility column; these require validation after each release. Standard steps are marked with a check mark.

Screenshots showing how to create a test plan.

Learn more about testing your processes in the SAP Help Portal.

Try it yourself!

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

Data Variants in Test Plans

Before running a test, use the Variants tab to define the country/region and company code. This selection determines the specific data used during the test execution.

Screenshots showing how to maintain data variants for a test plan.

The tool provides a default variant and a default Test Data Container (TDC), allowing you to run tests immediately or add custom containers as needed.

Try it yourself!

Learn how to work with data variants in test plans in this tutorial.

To start the test, return to the Processes tab and select Execute. A system pre-check will confirm that the test user has the correct business roles before the execution begins.

Try it yourself!

Learn how to execute a test plan that has integration steps in this tutorial.