Checking All Objects in a Window - WinRunner

You can create a GUI checkpoint to perform default checks on all GUI objects in a window. Alternatively, you can specify which checks to perform on all GUI objects in a window.

Each standard object class has a set of default checks. For a complete list of standard objects, the properties you can check, and default checks, see “Property Checks and Default Checks”.

Checking All Objects in a Window using Default Checks

You can create a GUI checkpoint that checks the default property of every GUI object in a window.

To create a GUI checkpoint that performs a default check on every GUI object in a window:

  1. Choose Insert > GUI Checkpoint > For Object/Window, or click the GUI Checkpoint for Object/Window button on the User toolbar. If you are recording in Analog mode, press the CHECK GUI FOR OBJECT/WINDOW softkey in order to avoid extraneous mouse movements. Note that you can press the CHECK GUI FOR OBJECT/WINDOW softkey in Context Sensitive mode as well.
  2. The WinRunner window is minimized, the mouse pointer turns into a pointing hand, and a help window opens.

  3. Click the title bar or the menu bar of the window you want to check.
  4. The Add All dialog box opens.

    To create a GUI checkpoint that performs a default check on every GUI object in a window

  5. Select Objects or Menus or both to indicate the types of objects to include in the checklist. When you select only Objects (the default setting), all objects in the window except for menus are included in the checklist. To include menus in the checklist, select Menus.
  6. Click OK to close the dialog box.

    WinRunner captures the expected property values of the GUI objects and/or menu items and stores this information in the test’s expected results folder. The WinRunner window is restored and a win_check_gui statement is inserted in the test script.

Specifying which Checks to Perform on All Objects in a Window

You can use a GUI checkpoint to specify which checks to perform on all GUI objects in a window.

To create a GUI checkpoint in which you specify which checks to perform on all GUI objects in a window:

  1. Choose Insert > GUI Checkpoint > For Object/Window, or click the GUI Checkpoint for Object/Window button on the User toolbar. If you are recording in Analog mode, press the CHECK GUI FOR OBJECT/WINDOW softkey in order to avoid extraneous mouse movements. Note that you can press the CHECK GUI FOR OBJECT/WINDOW softkey in Context Sensitive mode as well.
  2. The WinRunner window is minimized, the mouse pointer turns into a pointing hand, and a help window opens.

  3. Double-click the title bar or the menu bar of the window you want to check. WinRunner generates a new checklist containing all the objects in the window. This may take a few seconds.
  4. The Check GUI dialog box opens.

  5. Specify which checks to perform, and click OK to close the dialog box. For more information, see “The Check GUI Dialog Box”.
  6. WinRunner captures the GUI information and stores it in the test’s expected results folder. The WinRunner window is restored and a win_check_gui statement is inserted in the test script.


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

WinRunner Topics