Print Page | Close Window

WinRunner Questions and Answers Part-3

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: WinRunner @ OneStopTesting
Forum Discription: WinRunner is an automated functional GUI testing tool that allows a user to record and play back UI interactions as test scripts using a proprietary Test Script Language (TSL).
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=6832
Printed Date: 17Nov2024 at 1:40pm


Topic: WinRunner Questions and Answers Part-3
Posted By: Mithi25
Subject: WinRunner Questions and Answers Part-3
Date Posted: 07Aug2009 at 11:46pm
HTML clipboard

Winrunner Question 22: How do you unload the GUI map? What actually happens when you load GUI map?

How do you unload the GUI map?
We can use GUI_close to unload a specific GUI Map file or else we call use GUI_close_all command to unload all the GUI Map files loaded in the memory.

Syntax:  GUI_close(<file_name>);   or GUI_close_all;

What actually happens when you load GUI map?
When we load a GUI Map file, the information about the windows and the objects with their logical names and physical description are loaded into memory. So when the WinRunner executes a script on a particular window, it can identify the objects using this information loaded in the memory.

Winrunner Question 23: What is the purpose of the temp GUI map file? What is the extension of gui map file?

What is the purpose of the temp GUI map file?
While recording a script, WinRunner learns objects and windows by itself. This is actually stored into the temporary GUI Map file. We can specify whether we have to load this temporary GUI Map file should be loaded each time in the General Options.

What is the extension of gui map file?
The extension for a GUI Map file is “.gui”.

Winrunner Question 24: How do you find an object in an GUI map?

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.

Winrunner Question 25: What different actions are performed by find and show button?

What different actions are performed by find and show button?
  • 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.

Winrunner Question 26: How do you identify which files are loaded in the GUI map?

How do you identify which files are loaded in the GUI map?
The GUI Map Editor has a drop down “GUI File” displaying all the GUI Map files loaded into the memory.

Winrunner Question 27: How do you modify the logical name or the physical description of the objects in GUI map?

How do you modify the logical name or the physical description of the objects in GUI map?
You can modify the logical name or the physical description of an object in a GUI map file using the GUI Map Editor.
 

Winrunner Question 28: When do you feel you need to modify the logical name?

When do you feel you need to modify the logical name?
Changing the logical name of an object is useful when the assigned logical name is not sufficiently descriptive or is too long.

Winrunner Question 29: When it is appropriate to change physical description?

When it is appropriate to change physical description?
Changing the physical description is necessary when the property value of an object changes.

Winrunner Question 30: How WinRunner handles varying window labels?

How WinRunner handles 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.

Winrunner Question 31: 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.

 

 

 

 



-------------
http://www.quick2sms.com - Send Unlimited FREE SMS to Any Mobile Anywhere in INDIA,
Click Here



Print Page | Close Window