Any parameters to be passed to and from a visual test must be defined as input respectively output parameters for the visual test.
Open the visual test that you want to use to pass parameters between it and another visual test.
Add the input parameters that define the parameters passed from another visual test to the visual test.
In the visual test, select the
Start step.
In the
Properties pane, select
Input Parameters.
Click
Add Parameter.
The
Add Parameter dialog box opens.
In the
Parameter Name field, type a name for the new parameter.
From the
Type list, select the data type to be passed to the visual test.
Leave the value in the
Initial Value field to the default value.
Click
OK. The input parameter displays in the list of input parameters in the
Properties pane.
Note: Input parameters defined for a visual test do not appear in the visual test itself. You can view the input parameters in the
Properties pane of the
Start step.
Add the output parameters that define the parameters passed from the visual test to another visual test.
In the visual test, select the
Start step.
In the
Properties pane, select
Output Parameters.
Click
Add Parameter.
The
Add Parameter dialog box opens.
In the
Parameter Name field, type a name for the new parameter.
From the
Type list, select the data type to be passed to the visual test.
Leave the value in the
Initial Value field to the default value.
Click
OK. The output parameter displays in the list of output parameters in the
Properties pane.
Note: Output parameters defined for a visual test do not appear in the visual test unless they are actually declared in the visual test. You can view the output parameters in the
Properties pane of the
Start step.
Open the visual test that you want to use to pass parameters to or from.
If the visual test has been included in at least one other visual test, to view the most up-to-date parameters in the visual test, in the
Properties pane of the
Start step of the inserted visual test, click the
Name text box, and then click
Refresh Parameters.
Edit the value of the input parameter that you want to use in an embedded visual test in the
Properties pane of the
Start step of the embedded visual test.
When you playback the visual test, the input parameter is passed to the embedded visual test.
Note: The value that you send from the visual test is not saved in the script, but it can be used in computations in the script.
Note: The value that you send from the embedding visual test is not saved in the embedded visual test, but you can use the value in computations in the embedded visual test.
Output parameters must also be set as local variables in a visual test to pass the parameters to the visual test.