Borland Software Water System silk perforator java explorer 2006 release 2 Manual De Usuario

Descargar
Página de 110
36
SilkPerformer Java Explorer User Guide
3  S
ETTING
 U
P
 T
ESTS
Defining Output Value Verifications
Global variables can be used as input parameters for function calls. They are 
configured with an initial value, which makes them useful when you need to 
have the same value used for multiple function calls. Each time a test run begins, 
global variables are initialized with a defined initial value.
Procedure  To create a global variable:
1
On the Objects tab, right-click an object in the Objects tree and select 
New Global Variable from the context menu. The Define a global 
variable 
dialog appears. 
2
Enter a name for the variable in the Variable Name field.
3
Select a Variable type from the drop-down list: boolean, byte, short, int, 
long, char, float, double, or java.lang.String.
4
Specify an initial value for the variable in the Initialize Value field. 
5
Click OK.
Defining Output Value Verifications
Procedure  To define a verification for an output value:
1
Once you have stored an output parameter value in a variable you can 
specify a verification rule for the variable.
2
Click the Verification (...) button in the Output Data Properties window 
to open the Verification Wizard.  
-
Select No Verification if you don’t want the value to be verified. 
-
Select Verification with NULL or variable to achieve one of the 
following:
o
Verification that the value is NULL
o
Verification that the value is not NULL
o
Verification against an existing variable, a public member of a 
variable, or an element of an array