4 weeks ago
Hi,
I am automating regressing tests using the Test Automation Tool.
I need to pass values from one test process to another. Within a Test Process (from Test Process Step A to Test Process Step B for example) this is easy and works just fine. But I need to pass it from Test Process 1 to Test Process 2, so a level up.
Example: In Test Proces 1 I create an order and have an order number. I want to use the order number in Test Proces 2 and maybe in Test Proces 3 and Test Proces 4 as well. I can't use "fixed values" as the order number is generated in Test Proces 1 and will be a different one in the next test run.
I was thinking this might be possible using Test Data Containers, but I can't figure out if this is possible. So I ask my question here: Is there a way to pass variables from Test Process to Test Process or works this only within a Test Process from Test Process step to Test Process Step as the syntax "#<Process Step ID>-<Parameter Name>" seems to suggest.
Request clarification before answering.
Hi Lobee,
For using the dynamic order number generated from process 1 you need to export it into a variable which can then be consumed in Process 2 or other following test processes.
Consider the above scenario. After authoring all the processes, you need to create a test plan in the 'Test Your Processes' app.
Navigate to 'Variants' tab and select the desired variant you would want to work on.
Once you click on the edit button, it will allow you to make changes to the value and data binding fields
For mapping the order number you have exported from Process1 into Process 2 you need to select the F4 help of the data binding field as shown in the below screenshot.
Select the process from which value needs to be exported
Next select the export parameter and click on the OK button.
The format will be - #00001-00002-STANDARD_ORDER_READ (#processnumber-step number-variable)
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 |
---|---|
45 | |
9 | |
9 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.