Editing the Expected Value of a Property - WinRunner

When you create a GUI checkpoint, WinRunner captures the current property values for the objects you check. These current values are saved as expected values in the expected results folder.

When you run your test, WinRunner captures these property values again. It compares the new values captured during the test with the expected values that were stored in the test’s expected results folder.

Suppose that you want to change the value of a property after it has been captured in a GUI checkpoint but before you run your test script. You can simply edit the expected value of this property in the Check GUI dialog box or the Create GUI Checkpoint dialog box.

Note that you cannot edit expected property values in the Edit GUI Checklist dialog box: When you open the Edit GUI Checklist dialog box, WinRunner does not capture current values. Therefore, this dialog box does not display expected values that can be edited.

To edit the expected value of an object property:

  1. Confirm that the object for which you want to edit an expected value is displayed in your application.
  2. If the Check GUI dialog box or the Create GUI Checkpoint dialog box is not already open, choose Insert > GUI Checkpoint > For Multiple Objects to open the Create GUI Checkpoint dialog box and click Open to open the checklist in which to edit the expected value. Note that the Check GUI dialog box opens only when you create a new GUI checkpoint.
  3. In the Objects pane, select an object.
  4. In the Properties pane, select the property whose expected value you want to edit.
  5. Do one of the following:
    • Click the Edit Expected Value button.
    • Double-click the existing expected value (the current value).
    • Right-click with the mouse and choose Edit Expected Value from the pop-up menu.

    Depending on the property, an edit field, an edit box, a list box, a spin box, or a new dialog box opens.

    For example, when you edit the expected value of the Enabled property for a push_button class object, a list box opens:

    Editing the Expected Value of a Property

  6. Edit the expected value of the property, as desired.
  7. Click OK to close the dialog box.

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

WinRunner Topics