Action
Verifies that the values in a specified range in a table are the same as the values in a specified list of values.
Availability
This functionality is supported only if you are using the Classic Agent.
Syntax
table.VerifyRangeValue(Range, llaValues [, Type] [, nTimeout])
Variable
|
Description
|
Range
|
The range of the table to verify.
TABLERANGE.
|
llaValues
|
The list of values.
LIST OF LIST OF ANYTYPE.
|
Type
|
Optional: The type of value to return; one of the following values of
TABLEVALUETYPE:
-
TVT_TEXT — The values are returned as text strings (default).
-
TVT_TYPED — The values are in their native data types.
|
nTimeout
|
Optional: The number of seconds to wait for the expected value to be achieved.
NUMBER.
|
Notes
The
VerifyRangeValue method retrieves the values contained in the cells specified by
Range, using the
GetRangeValue method, and compares them to the values you specify in
llaValues.
If a timeout is specified with the
nTimeout parameter,
Silk Test Classic calls
VerifyRangeValue() until the condition is verified or the timeout is reached. The time between checks is the value of the window retry interval Agent option,
OPT_WINDOW_RETRY. If the verification fails, an exception is thrown.
Example
In this example, the values for two adjacent columns in the second and third rows of
Emp.EmpTable are verified against the values in
trRange.
TABLERANGE trRange = {{"2", "id"}, {"3", "quantity"}}
Emp.EmpTable.VerifyRangeValue(trRange, {{"101", "250"}, {"102", "400"}})