cancel
Showing results for 
Search instead for 
Did you mean: 

Passing variables between test processes

Lobee
Discoverer
0 Kudos
120

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.

View Entire Topic
Aparna_Vohra
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

Aparna_Vohra_1-1737736013186.png

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.

Aparna_Vohra_2-1737736079559.png

Select the process from which value needs to be exported

Aparna_Vohra_3-1737736349124.png

Next select the export parameter and click on the OK button.

Aparna_Vohra_4-1737736381547.png

Aparna_Vohra_5-1737736415967.png

The format will be - #00001-00002-STANDARD_ORDER_READ (#processnumber-step number-variable)

Aparna_Vohra_6-1737736481348.png

 

Thanks and Regards

Aparna