user manual
34 SilkPerformer Java Explorer User Guide
3 S
ETTING UP TESTS
Storing Output Values in Variables
- If you don’t wish to use a constant value and would rather use a
random value for types such as boolean, double, int, or string, you
can create a new random value by selecting New random variable.
See “Random Variable Wizard” for information regarding the
Random Value Wizard. If a random value of the parameter type has
already been created, select Use random variable and select the
variable from the drop-down list.
2 Click OK.
Once input parameters have been defined, you can invoke a method to have that
method automatically added it to the selected test case in the Test Scenario pane.
From there, corresponding output values can be stored as variables and
verifications can be set up for them. See the following sections for details.
Storing Output Values in Variables
Using the Output Data and Output Data Properties panes, you can store output
values as variables for later use and you can define verifications for the values.
Procedure To store an output value in a variable for later use:
1 Invoke a method (by clicking the Invoke button on the Workflow bar or
by right-clicking a method in the Input Data window and selecting
Invoke/Add to Test Case from the context menu). The Output Value
Wizard dialog is displayed.