A step in a Scenario can return information in the form of output parameters. These output parameters can be utilized as inputs for subsequent steps in the Scenario (as discussed in the Parameter Linking section).
By default, output parameter values are available across all the steps for the currently running test case. But if you are running multiple test cases in a Run, and if this output is relevant for steps in other test cases, you may store it in Run Property.
To store an output parameter of a step to a Run Property, simply click on the output parameter name in the Scenario step and provide Run Property name as shown in the picture below.
You can now use this Run Property in a subsequent test case in the form of parameter overriding. Here are the steps to pass information from one test case to another.
- Click on the output parameter (in the first Scenario) which should be saved for usage in other test cases.
- Store the output parameter to a Run Property.
- Now, in the second Scenario where this information is useful, click on the step parameter which needs this value.
- Override the parameter with the Run Property that was created in #2 above.