Checking a Single Property Value - WinRunner

You can check a single property of a GUI object. For example, you can check whether a button is enabled or disabled or whether an item in a list is selected. To create a GUI checkpoint for a property value, use the Check Property dialog box to add one of the following functions to the test script:

button_check_info scroll_check_info
edit_check_info static_check_info
list_check_info win_check_info

For information about working with these functions, refer to the TSL Reference.

To create a GUI checkpoint for a property value:

  1. Choose Insert > GUI Checkpoint > For Single Property. If you are recording in Analog mode, press the CHECK GUI FOR SINGLE PROPERTY softkey in order to avoid extraneous mouse movements.
  2. The WinRunner window is minimized, the mouse pointer becomes a pointing hand, and a help window opens on the screen.

  3. Click an object.
  4. The Check Property dialog box opens and shows the default function for the selected object. WinRunner automatically assigns argument values to the function.

    Checking a Single Property Value

  5. You can modify the arguments for the property check.
    • To modify assigned argument values, choose a value from the Attribute list. The expected value is updated in the Expected text box.
    • To choose a different object, click the pointing hand and then click an object in your application. WinRunner automatically assigns new argument values to the function.

    Note: that if you click an object that is not compatible with the selected function, a message states that the current function cannot be applied to the selected object. Click OK to clear the message, and then click Close to close the Check Property dialog box. Repeat steps 1 and 2.

  6. Click Paste to paste the statement into your test script.

The function is pasted into the script at the insertion point. The Check Property dialog box closes.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

WinRunner Topics