user manual
40 SilkPerformer Java Explorer User Guide
3 S
ETTING UP TESTS
Adding & Updating Method Calls
Adding & Updating Method Calls
Procedure To add a method to a test case:
1 Within the Loaded Components or Method Call pane, select the method
to be added and invoke it by clicking the Invoke button. The invoked
method is then automatically added to the currently selected test case. If
the method call returns a value, the Output Value Wizard will open
automatically, prompting you to store the value.
Procedure To update a method that is already included in a test case:
1 Make modifications to the input parameters of the method that is to be
updated. Updates are automatically accepted when you click outside the
Input Data tree. You must perform an Animated Run to apply changes.
Complex Input/Output Data
Java Explorer supports complex data types such as arrays and objects as both
input data and output data. The Output Value Wizard assists you in using such
data as variables.
Verification of
variables
Full support for the verification of complex return values is available. When the
return value of a method (including array elements and public fields of complex
objects) is complex, an existing variable, an array element of an existing
variable, or a public field of an existing variable can be selected to verify
against. Verification of variables also works for primitive data types.
Arrays & objects as
output data
When a method returns an array or an object as output data, you can store the
value in a variable of either local or global scope.
Procedure To store array- or object-output data as a variable:
1 Select a complex output parameter in the Output Data objects tree.
2 Click the Output Value Wizard (...) button to open the Output Value
wizard.