If i have a GUI Map file,should i need to load it before i started to executing?

Questions by mrgreekgod   answers by mrgreekgod

Showing Answers 1 - 5 of 5 Answers

sush_test

  • Mar 29th, 2006
 

We can see the GUI Map File in Winrunner. Winrunner uses GUI map files to store gui objects. Winrunner will use gui objects, to map these with application at run time. If any object(which is refered in script) is not located in GUI map file then Winrunner can not identify that particular object. Winrunner  provides two GUI map files. One is GLOBAL GUI Map FIle and 2nd is GUI Map file PER TEST. GUI map consists of logical name and physical description.

GLOBAL GUI MAP: Winrunner will maintain one GUI map file if we use Global GUI map file.In global gui map we have to explicitly load  and explicitly save the gui map file.

  • Advantages:If we use Global Gui map file Winrunner will use one file for entire application. So when a object is being used in multiple tests, for which we want to modify some properties, you can do that at one place.
  • Disadvantages:If the application is large then it will be problem  because if you want to load the entire file, it takes lot of memory and take lot of time.

PER test mode: Winrunner will maintain seperate files for all tests created. We no need to explicitly load or save these files. We should not modify the name of these files. The name will be 'default'. We should not change the location of the file also.

  • Advantages: Easy to load, takes less primary memory. easy to manage.
  • Disadvantages: For example If the label of a GUI object is changed which is being used in different tests, then you have to explicitly modify that label in all the tests.

File Extension for a GUI map file is .gui

  Was this answer useful?  Yes

bvani

  • May 23rd, 2006
 

Yes, GUI Map file needs to be loaded before execution is started otherwise winrunner will not be able to identify the objects in your build.

  Was this answer useful?  Yes

Rohit Sharma

  • Aug 23rd, 2007
 

we have to add GUI Map File with the address where it has been stored on ur system

syntax is
GUI_Load("");
for example:-
GUI_Load("c:gui_file_name.gui");

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions