Understanding the Default GUI Map Configuration - WinRunner

For each class, WinRunner learns a set of default properties. Each default property is classified “obligatory” or “optional”. (For a list of the default properties, see “All Properties”.)

  • An obligatory property is always learned (if it exists).
  • An optional property is used only if the obligatory properties do not provide unique identification of an object. These optional properties are stored in a list. WinRunner selects the minimum number of properties from this list that are necessary to identify the object. It begins with the first property in the list, and continues, if necessary, to add properties to the description until it obtains unique identification for the object.

If you use the GUI Spy to view the default properties of an OK button, you can see that WinRunner learns the class and label properties. The physical description of this button is therefore:

{class:push_button, label:"OK"}

In cases where the obligatory and optional properties do not uniquely identify an object, WinRunner uses a selector. For example, if there are two OK buttons with the same MSW_id in a single window, WinRunner would use a selector to differentiate between them. Two types of selectors are available:

  • A location selector uses the spatial position of objects.
  • An index selector uses a unique number to identify the object in a window.

The location selector uses the spatial order of objects within the window, from the top left to the bottom right corners, to differentiate among objects with the same description.

The index selector uses numbers assigned at the time of creation of objects to identify the object in a window. Use this selector if the location of objects with the same description may change within a window. See “Configuring a Standard or Custom Class” for more information.


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

WinRunner Topics