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: 
Sonam
Product and Topic Expert
Product and Topic Expert
752
Hello Everyone,

This blog post highlights the technical features of the SAP S/4 HANA Essentials Cloud Test Automation tool.

To ease customer testing activities in SAP S/4HANA Cloud, SAP delivers the test automation tool along with the detailed test scripts for most of the business process for SAP S/4HANA Cloud. The test automation tool delivers pre-scripted test process(test automates) for most of the business processes in SAP S/4HANA Cloud. This Test Automation Tool is available for customers in their SAP S/4HANA Cloud Q-systems.

To know more about the Test Automation Tool, you can check the testing work-stream in the roadmap viewer- here

In this blog post, we will learn how to capture or read dynamic values from the status message in the SAP S/4HANA Cloud Essentials Test Automation Tool.

Customer who are using the SAP S/4HANA Cloud Automation Tool, would have tried capturing one dynamic value from the status message.
However, there is also a way to capture/read more than 1 dynamic values from that same Process Step in the Tool.

The below status message would be familiar:


Material Document XXXXXXX posted.  To capture or read the number XXXXXXX, we simply use (.*) in place of the number in the Test Automation tool so that the number is captured and we assign a variable to it in the Data Binding as shown in fig below-


Here, in the variable MATERIAL_DOCUMENT will have the value stored as 4900007574.

Now, suppose you have a status message as:


 

Journal entry XXXXXXXXXX (XXXX,XXXX)- Here, we have more than 1 dynamic values to capture, so what we need to do is simply,  put (.*) for all the values/number and put a separator as \(forward slash) to make sure all the values are captured in different variables using ; (semi-colon) between different variables in the data binding as shown in the below figure-


 

As per the above figure, the values of different variables will be-

1. OutGoing_Payment= 1500000167

2. Fiscal_Year= 2020

3. CompanyCode= 1010

In Similar ways, if you have a message Document XXXXXXX has been created for Company Code XXXX,  you just need to replace the XXXX  in both the places with a (.*), and separate them with a \ (forward slash) and store them in different variables using a ; (semi-colon).

So, today we have learnt how can we capture or read multiple values from the status messages in the test automation tool. This tutorial will help you in capturing multiple values for different business process in the test automation tool and the customers can leverage the tool to its maximum.

Hope this helps!

Happy Testing!!

-Sonam Saxena
Topic Expert, Expertise Services Team
1 Comment