Verifying Tables in ClientServer Applications

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

When verifying a table in a client/server application, that is, an object of the Table class or of a class derived from Table, you can verify the value of every cell in a specified range in the table using the Table tab in the Verify Window dialog box. For additional information on verifying tables in Web applications, see Working with Borderless Tables.

Specifying the range

You specify the range of cells to verify in the Range text boxes using the following syntax for the starting and ending cells in the range:
row_number : column_name
or
row_number : column_number

Example

Specifying the following in the Range text boxes of the Verify Window dialog box causes the value of every cell in rows 1 through 3 to be verified, starting with the column named ID and ending with the column named Company_Name:

From field: 1 : id

To field: 3 : company_name

After you specify a cell range in the Verify Window dialog box, you can click Update to display the values in the specified range.

Specifying a file to store the values

You specify a file to store the current values of the selected range in the Table File Name text box.

What happens

When you dismiss the Verify Window dialog box and paste the code into your script, the following occurs:
  • The values that are currently in the table's specified cell range are stored in the file named in the Table File Name text box in the Verify Window dialog box.
  • A VerifyFileRangeValue method is pasted in your script that references the file and the cell range you specified.
For example, the following VerifyFileRangeValue method call would be recorded for the preceding example:
table.VerifyFileRangeValue ("file.tbl", {{"1",
"id"}, {"3", "company_name"}})

When you run your script, the values in the range specified in the second argument to VerifyFileRangeValue are compared to the values stored in the file referenced in the first argument to VerifyFileRangeValue.

For additional information, see the VerifyFileRangeValue method.