Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
This blog will help you understand the steps to be followed for best practice testing and it is in continuation of the part1. Here we will create a test plan referring best practice of BDG “Sales Quotation”.

Access test your process app to create test plans and execute.

This app helps in creating the test plans and executing them with the data variants. Here you can track the status and view the screen shots for each steps. If the test plans run into error you would be able to view the error on the exact step and correct them. Once the test plans have passed you would be able to view the logs and download the report with the screen shots. You can even schedule them with a specified time, date and frequency.

Let’s create a test plan for Sales Quotation.


1.Click on the add button. This will open up screen to add more details of the test plan.

2.Name the test plan.

3.Search the test process (scope ID/description) “sales quotation”. You can use a filter option to have more specific search as standard test process only of by application area.


4.Select the test process as minimum one test process is required to create a test plan.

5.Save your entries


Before executing a standard test plan, you would need to add data variants. As the data which is part of the standard automate may not be available in the quality system and when you try to execute the test plan would fail. For more details refer https://blogs.sap.com/2019/09/24/how-to-perform-automated-testing-using-standard-best-practice-autom...

Hence creating your data variants is important step.


When the test plan is created by default “DEFAULT_VARIANT” gets created. You can either make change in the default variant or create a new one. There are two ways to create a variant, create variant directly on the app or using a spreadsheet.

The spreadsheet option is helpful when you have sets of data variants to be tested. You can download the spreadsheet and put in your own data (available in the quality system). This spreadsheet is already prepopulated with the information. Hence you would just need to add the data and upload it.

For this example, we would create variant directly.


Here you need to provide name to your variant and expand each process step to add the data.





  1. Add the variant name and description

  2. Add the data in the value column. Here you would need to add the data manually These fields are not linked with any tables where you would be able to search and pick the right data. You may have to prepare the data sets in advance to fill in each field.

  3. In the same value column, there is an option to add variable. These system variables are built-in functions of the values. The value of the function is calculated during the execution of a test plan.


Example of a variable “$TODAY[#X]. When this variable is used, on a run time automatically today’s date is considered.

When you create a custom automate by recording functionality, in the date field you would be entering today’s date. But when you try to execute or re-execute the same automate it will fail as the actual date has already passed.

Hence to always have the flexibility of re run the same automates you would need variables. This is useful when you create custom automate by recording functionality. The standard automate have these variables part of the process step.


4. Save your entries


Once the data is added in the data variant you can now execute the test plan. Currently the test plan status is untested.

Here you can choose to run a test plans with multiple variants or just one variant. For example, we would execute it with 2 variants.

Once the test plan is executed it will take in few seconds before it starts to show progress. Please note if there are missing roles or the test user is not valid the test plan will not be submitted for execution. It will show error and a pre check results box will appear. Please refer blog for more details.


There are two logs created each of the variants. Hence you would be able the view the details along with the screen shots for its respective variant. You can even download the document which captures all the screenshots and results.



When the test plan is passed it will show the status as successful. For more details please refer admin guide for the test your process app.
2 Comments