on 2025 Jan 14 12:15 PM
Hi all,
I'm setting up automated regression test using the TAT for SAP S/4HANA cloud and I want to set up some checks based on calculations, is this possible in the tool. I haven't been able to find the possibilities so far.
What I would like to do is, for example, create an order with 1500 items AAA for a price X and 2300 items BBB for price Y. The total amount Z (which would be 1500*X + 2300*Y) I want to check against the value in the system.
I want Z to be calculated within the test as the prices (X and Y) will change in the test
Request clarification before answering.
Hi Lobee,
For the below case, I would suggest you use the API framework present within the S/4HANA test automation tool.
Use case: What I would like to do is, for example, create an order with 1500 items AAA for a price X and 2300 items BBB for price Y. The total amount Z (which would be 1500*X + 2300*Y) I want to check against the value in the system.
I want Z to be calculated within the test as the prices (X and Y) will change in the test
Steps to be followed:
1. Create an API automate using the API framework in S/4HANA test automation tool.
Please refer the blog to understand more on how to create an API automate - Creating API automates using the SAP S/4HANA Test ... - SAP Community
2. Extend the payload to add 1500 items AAA for a price X and 2300 items BBB for price Y.
3. Apply checks in the 'check conditions' tab where the response value for the 'total net amount' should be compared with the formula (1500*X + 2300*Y)
4. Export the parameter using the export response tab so that it could be utilized in another step as well.
Thanks and Regards
Aparna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.