Uses of Edit Check Dialog Box - WinRunner

The Edit Check dialog box enables you to specify which cells in a table to check, and which verification method and verification type to use. You can also edit the expected data for the table cells included in the check.

Uses of Edit Check Dialog Box

In the Select Checks tab, you can specify the information that is saved in the GUI checklist:

  • which table cells to check
  • the verification method
  • the verification type

Note that if you are creating a check on a single-column table, the contents of the Select Checks tab of the Edit Check dialog box differ from what is shown above.

Specifying which Cells to Check

The List of checks box displays all the checks that will be performed, including the verification type. When the Edit Check dialog box is opened for the first time for a checkpoint, the default check is displayed:

  • The default check for a multiple-column table is a case sensitive check on the entire table by column name and row index.
  • The default check for a single-column table is a case sensitive check on the entire table by row position.

If you do not wish to accept the default settings, you must delete the default check before you specify the checks to perform. Select the “Entire Table -Case Sensitive check” entry in the List of checks box and click the Delete button. Alternatively, double-click this entry in the List of checks box. A WinRunner message prompts you to delete the highlighted check. Click Yes.

Next, specify the checks to perform. You can choose different verification type for different selections of cells. Therefore, specify the verification type before selecting cells.

Highlight the cells on which you want to perform the content check. Next, click the Add button toolbar to add a check for these cells. Alternatively, you can:

  • double-click a cell to check it
  • double-click a row header to check all the cells in a row
  • double-click a column header to check all the cells in a column
  • double-click the top-left corner to check the entire table

A description of the cells to be checked appears in the List of checks box.

Specifying the Verification Method

You can select the verification method to control how WinRunner identifies columns or rows within a table. The verification method applies to the entire table. Specifying the verification method is different for multiplecolumn and single-column tables.

Specifying the Verification Method for a Multiple-Column Table Column

Column

  • Name: WinRunner looks for the selection according to the column names. A shift in the position of the columns within the table does not result in a mismatch.
  • Index: WinRunner looks for the selection according to the index, or position, of the columns. A shift in the position of the columns within the table results in a mismatch. Select this option if your table contains multiple columns with the same name. Choosing this option enables the Verify column headers check box, which enables you to check column headers as well as cells.

Row

  • Key: WinRunner looks for the rows in the selection according to the data in the key column(s) specified in the Select key columns list box. For example, you could tell WinRunner to identify the second row in the table based on the arrival time for that row. A shift in the position of the rows does not result in a mismatch. If the key selection does not uniquely identify a row, WinRunner checks the first matching row. You can use more than one key column to uniquely identify the row.
  • Index (default setting): WinRunner looks for the selection according to the index, or position, of the rows. A shift in the position of any of the rows results in a mismatch.

Specifying the Verification Method for a Single-Column Table

The Verification methods box in the Select Checks tab for a single-column table is different from that for a multiple-column table. The default check for a single-column table is a case sensitive check on the entire table by row position.

Specifying the Verification Method for a Single-Column Table

  • By position: WinRunner checks the selection according to the location of the items within the column.
  • By content: WinRunner checks the selection according to the content of the items, ignoring their location in the column.

Specifying the Verification Type

WinRunner can verify the contents of a table in several different ways. You can choose different verification types for different selections of cells.

  • Case Sensitive (the default): WinRunner compares the text content of the selection. Any difference in case or text content between the expected and actual data results in a mismatch.
  • Case Insensitive: WinRunner compares the text content of the selection. Only differences in text content between the expected and actual data result in a mismatch.
  • Numeric Content: WinRunner evaluates the selected data according to numeric values. WinRunner recognizes, for example, that “2” and “2.00” are the same number.
  • Numeric Range: WinRunner compares the selected data against a numeric range. Both the minimum and maximum values are any real number that you specify. This comparison differs from text and numeric content verification in that the actual table data is compared against the range that you defined and not against the expected results.
  • Case Sensitive Ignore Spaces: WinRunner checks the data in the cell according to case and content, ignoring differences in spaces. WinRunner reports any differences in case or content as a mismatch.
  • Case Insensitive Ignore Spaces: WinRunner checks the content in the cell according to content, ignoring differences in case and spaces. WinRunner reports only differences in content as a mismatch.

Click OK to save your changes to both tabs of the Edit Check dialog box. The dialog box closes and the Check GUI dialog box is restored.

Editing the Expected Data

To edit the expected data in the table, click the Edit Expected Data tab. If you previously saved changes in the Select Checks tab, you can click Reload Table to reload the table selections from the checklist. A WinRunner message prompts you to reload the saved data. Click Yes.

Note that if you previously saved changes to the Select Checks tab, and then reopened the Edit Check dialog box, the table appears color coded in the Edit Expected Data tab. The cells included in the check appear in blue on a white background. The cells excluded from the check appear in green on a yellow background.

Editing the Expected Data

To edit the expected value of data in a cell, double-click inside the cell. A cursor appears in the cell. Change the contents of the cell, as desired. Click OK to save your changes to both tabs of the Edit Check dialog box. The dialog box closes and the Check GUI dialog box is restored.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics