Monday, November 19, 2007

Winrunner Questions - 4


How do you find an object in a GUI map?
The GUI Map Editor is been provided with a Find and Show Buttons.
  • To find a particular object in the GUI Map file in the application, select the object and click the Show window. This blinks the selected object.
  • To find a particular object in a GUI Map file click the Find button, this gives the option to select the object. When the object is selected, if the object has been learned to the GUI Map file it will be focused in the GUI Map file.

How does WinRunner handle varying window labels?
We can handle varying window labels using regular expressions. WinRunner uses two “hidden” properties in order to use regular expression in an object’s physical description. These properties are regexp_label and regexp_MSW_class.

  • The regexp_label property is used for windows only. It operates “behind the scenes” to insert a regular expression into a window’s label description.
  • The regexp_MSW_class property inserts a regular expression into an object’s MSW_class. It is obligatory for all types of windows and for the object class object.

What is the purpose of regexp_label property and regexp_MSW_class property?
  • The regexp_label property is used for windows only. It operates “behind the scenes” to insert a regular expression into a window’s label description.
  • The regexp_MSW_class property inserts a regular expression into an object’s MSW_class. It is obligatory for all types of windows and for the object class object.

How do you suppress a regular expression?
We can suppress the regular expression of a window by replacing the regexp_label property with label property.


How do you copy and move objects between different GUI map files?
We can copy and move objects between different GUI Map files using the GUI Map Editor. The steps to be followed are:
  • Choose Tools > GUI Map Editor to open the GUI Map Editor.
  • Choose View > GUI Files.
  • Click Expand in the GUI Map Editor. The dialog box expands to display two GUI map files simultaneously.
  • View a different GUI map file on each side of the dialog box by clicking the file names in the GUI File lists.
  • In one file, select the objects you want to copy or move. Use the Shift key and/or Control key to select multiple objects. To select all objects in a GUI map file, choose Edit > Select All.
  • Click Copy or Move.
  • To restore the GUI Map Editor to its original size, click Collapse

How do you clear a GUI map files?

We can clear a GUI Map file using the “Clear All” option in the GUI Map Editor.

How do you filter the objects in the GUI map?
GUI Map Editor has a Filter option. This provides for filtering with 3 different types of options.
  • Logical name displays only objects with the specified logical name.
  • Physical description displays only objects matching the specified physical description. Use any substring belonging to the physical description.
  • Class displays only objects of the specified class, such as all the push buttons.

1 comment:

http://www.binarysemantics.com/ said...

thanks for sharing information. more on testing : testing