WinRunner Interview Questions with answers

Here is another post of WinRunner Interview preparation series. You can find here frequently asked WinRunner interview questions with answers. Most of the questions are based on Test Script Language (TSL), recording scripts in WinRunner and introduction to some important basic WinRunner most used commands.

1) What is the purpose of set_window command?
Set_Window command sets the focus to the specified window. We use this command to set the focus to the required window before executing tests on a particular window.

Syntax: set_window(<logical name>, time);
The logical name is the logical name of the window and time is the time the execution has to wait till it gets the given window into focus.

Example:
set_window (“Print”, 12);
button_press (“OK”);

The set_window statement indicates that the Print window is the active window.
The OK button is learned within the context of this window. If you program a test manually, you need to enter the set_window statement then the active window changes. When editing a script, take care not to delete necessary set_window statements.

2) Why don’t we normally load the GUI maps through start up scripts?
a) If we are using a single GUI Map file for the entire AUT then the memory used by the GUI Map may be much high.
b) If there is any change in the object being learned then WinRunner will not be able to recognize the object, as it is not in the GUI Map file loaded in the memory. So we will have to learn the object again and update the GUI File and reload it.

3) 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;

You can also use GUI_unload and GUI_unload_all functions to unload loaded GUI map files.

4) What is the use of GUI map and what happens when GUI map file get loaded?
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.

5) 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:

  1. Choose Tools > GUI Map Editor to open the GUI Map Editor.
  2. Choose View > GUI Files.
  3. Click Expand in the GUI Map Editor. The dialog box expands to display two GUI map files simultaneously.
  4. View a different GUI map file on each side of the dialog box by clicking the file names in the GUI File lists.
  5. 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.
  6. Click Copy or Move.
  7. To restore the GUI Map Editor to its original size, click Collapse.

6) How do you configure GUI map?
a) When WinRunner learns the description of a GUI object, it does not learn all its properties. Instead, it learns the minimum number of properties to provide a unique identification of the object.
b) Many applications also contain custom GUI objects. A custom object is any object not belonging to one of the standard classes used by WinRunner. These objects are therefore assigned to the generic “object” class. When WinRunner records an operation on a custom object, it generates obj_mouse_ statements in the test script.
c) If a custom object is similar to a standard object, you can map it to one of the standard classes. You can also configure the properties WinRunner uses to identify a custom object during Context Sensitive testing. The mapping and the configuration you set are valid only for the current WinRunner session. To make the mapping and the configuration permanent, you must add configuration statements to your startup test script.

7) What is the purpose of GUI spy?
Using the GUI Spy, you can view the properties of any GUI object on your desktop. You use the Spy pointer to point to an object, and the GUI Spy displays the properties and their values in the GUI Spy dialog box. You can choose to view all the properties of an object, or only the selected set of properties that WinRunner learns.

8 ) What is the purpose of different record methods 1) Record 2) Pass up 3) As Object 4) Ignore.
a) Record instructs WinRunner to record all operations performed on a GUI object. This is the default record method for all classes. (The only exception is the static class (static text), for which the default is Pass Up.)
b) Pass Up instructs WinRunner to record an operation performed on this class as an operation performed on the element containing the object. Usually this element is a window, and the operation is recorded as win_mouse_click.
c) As Object instructs WinRunner to record all operations performed on a GUI object as though its class were “object” class.
d) Ignore instructs WinRunner to disregard all operations performed on the class.

9) What are the virtual objects and how do you learn them?
You can teach WinRunner to recognize any bitmap in a window as a GUI object by defining the bitmap as a virtual object.
You can create virtual push buttons, radio buttons, check buttons, lists, or tables, according to the bitmap’s behavior in your application. If none of these is suitable, you can map a virtual object to the general object class.

------------

a) Applications may contain bitmaps that look and behave like GUI objects. WinRunner records operations on these bitmaps using win_mouse_click statements. By defining a bitmap as a virtual object, you can instruct WinRunner to treat it like a GUI object such as a push button, when you record and run tests.
b) Using the Virtual Object wizard, you can assign a bitmap to a standard object class, define the coordinates of that object, and assign it a logical name.

10) What is the use of Virtual Object Wizard and how it is used?
To define a virtual object using the Virtual Object wizard:

  1. Choose Tools > Virtual Object Wizard. The Virtual Object wizard opens. Click Next.
  2. In the Class list, select a class for the new virtual object. If rows that are displayed in the window. For a table class, select the number of visible rows and columns. Click Next.
  3. Click Mark Object. Use the crosshairs pointer to select the area of the virtual object. You can use the arrow keys to make precise adjustments to the area you define with the crosshairs. Press Enter or click the right mouse button to display the virtual object’s coordinates in the wizard. If the object marked is visible on the screen, you can click the Highlight button to view it. Click Next.
  4. Assign a logical name to the virtual object. This is the name that appears in the test script when you record on the virtual object. If the object contains text that WinRunner can read, the wizard suggests using this text for the logical name. Otherwise, WinRunner suggests virtual_object, virtual_push_button, virtual_list, etc.
  5. You can accept the wizard’s suggestion or type in a different name. WinRunner checks that there are no other objects in the GUI map with the same name before confirming your choice. Click Next.

11) What are the modes of script recording in WinRunner ?
There are 2 modes of recording in WinRunner

  • Context Sensitive recording records the operations you perform on your application by identifying Graphical User Interface (GUI) objects.
  • Analog recording records keyboard input, mouse clicks, and the precise x- and y-coordinates traveled by the mouse pointer across the screen.

12) What is a checkpoint and what are different types of checkpoints?
Checkpoints allow you to compare the current behavior of the application being tested to its behavior in an earlier version.

You can add four types of checkpoints to your test scripts:

  1. GUI checkpoints verify information about GUI objects. For example, you can check that a button is enabled or see which item is selected in a list.
  2. Bitmap checkpoints take a snapshot of a window or area of your application and compare this to an image captured in an earlier version.
  3. Text checkpoints read text in GUI objects and in bitmaps and enable you to verify their contents.
  4. Database checkpoints check the contents and the number of rows and columns of a result set, which is based on a query you create on your database.

If you have missed previous posts on WinRunner interview question series, here is the list of posts:

WinRunner Interview Questions Part 1

WinRunner Interview Questions Part 2

WinRunner Questions from Interviewer point of view

Basic WinRunner Interview questions

You can ask your doubts in the comment section below if you are not clear with some answers.



The Best Software Testing Training You'll Ever Get!

software testing QA training

45 comments ↓

#1 Shubham on 10.07.07 at 5:55 pm

Hi Vijay thanks for the post. I was in the queue to request you winrunner interview question post. Thanks for the post again. Keep posting more question answers on this series..

#2 Vijay on 10.09.07 at 2:47 am

HI All,
Till what extend we can use the “Call_Close();” function in winrunner ??? i mean upto what levels ???

I have one issue, like i call the Driver script to start winrunner,winrunner inturn calls the one main function, this called main function inturn call the another main function.After performing actions second called main function should return to first called main function.But winrunner getting terminated with resultsheet ????
can anyone help me out ????

#3 Priya on 10.09.07 at 5:01 am

Hi,
I need some details regarding SQL and few SQL commands also……
Can u help me out.

#4 shalaka on 10.09.07 at 10:34 am

hi !
This information is very useful for me in interviews but I have’nt get the links about basic testing types and methods. so please send it to me.
Thank you.

#5 "This is Good Collection Of Question About Software Testing Question".. on 10.13.07 at 12:07 pm

Good..

#6 Meenal on 10.17.07 at 5:13 pm

Hi
Good info. please can you provide us the list of all important question for interviews. manual and automation question.

#7 CHIRANJEEVI on 10.24.07 at 5:13 pm

HI,THESE INFORMATION IS VERY USEFUL IN INTERVIEWS. AND TELL ME MORE ABOUT DATA DRIVEN TEST.

#8 sowmya on 10.27.07 at 8:19 am

What is the difference b/w GUI map editor and GUI spy?

#9 Prashant on 11.23.07 at 8:38 am

hi Vijay,
We are using Silk test to automate the test cases….Since i am fresher, i want to know which automation tool is more powerful, Silk Test or Win runner

#10 zakir on 11.23.07 at 12:49 pm

Hi vijay and all,

Could anybody give me details on downloading and installing the Selenium tool. Does selenium work on windows or it works only with linux box. Would be glad if u cud send links for downloading, installation and a little bit documentation.
many thanks in advance. Can drop to my emai id zakir_24@yahoo.com

#11 Sudhir on 12.20.07 at 4:25 am

Hey,
I am trying to call a function written in WinRunner, from another application. So I have passed the function name through a string and am then calling the string. But that doesn’t seem to be working.
Could anyone help with this one ?
Thanks

#12 pallavi on 01.10.08 at 12:52 pm

please explain with eg case statement in winrunner

#13 deepak on 01.10.08 at 1:32 pm

I want to know that how to write the test case And how many formate available here.?

#14 Radhika on 02.21.08 at 5:16 am

Hi, I am New to Automation Testing..Especially to Winrunner….I have a question…Very Basic and Simple question….
1) Different types of GUI Objects and different types of actions that can be perform over that GUI Objects?

Please can anybody send answer In detail way…..Waiting for smart and Fast reply……..

#15 sumith on 02.26.08 at 1:39 pm

is there any demo vertion that we can we instal in our pc for our practice

#16 veena on 04.09.08 at 9:03 am

Hi All
Everybody is familiar with ‘signup’ with email providers, while doing they will ask “enter the cheracters shown below” Can we automate that also if possible how?. Plaese reply, its very urgent, if you want i will pay you…

#17 zakir on 04.09.08 at 9:44 am

@veena

Well my friend. That feature is what we call as “CAPTCHA” and it cannot be automated. The purpose of having the captcha feature is for security reason and to avoid unwanted and restrict bulk users. It cannot be automated friend, those are actually UI(User Interface) parts which can be tested manually only

Cheers

zakir :)

#18 akku on 04.09.08 at 9:57 am

i can’t understand uer question.wht do u want exact query .

#19 veena on 04.09.08 at 10:26 am

@zakir
Thank you very much and i have same but one question
can we automate the thing which we can see in the home page of Gmail, its increasing the size aloted for us every time. For everybody it was 1 gb on usage it will increase.
Please help me in this regard

veena

#20 Vengamanaidu.T on 04.14.08 at 7:03 am

Hi, everybody
this site is very good for all.
all are understanding about testing this site is very usefull.

#21 DEVI on 04.21.08 at 7:26 am

hi all good morning,

can anyone suggest me with the silk test , which site is help full for getting more knowledge on silk.

and one more important thing
i’m unable to run the automated tools (winrunner, test director, load runner, QTP, SILK) on my system and also my sys is an updated has no problem wiht the space.

Thanks in advance

#22 george on 04.21.08 at 8:00 am

@devi
when you have downloaded all the tools, it will expire after 14 days.

#23 NITIN on 05.14.08 at 12:09 pm

Hi…….
I need some details regarding SQL and few SQL commands also……
Also send me the details regarding manual testing.
Can u Help me?
thank a lot.

#24 rajatha on 05.14.08 at 12:16 pm

hi,
when we save script it generates a folder contains db, exp,header, lock, script.
what these folder importance.

and

when we execute script in debug mode it creates folder named debug.inside some files will be present. what is the significance of all these.

waiting for answers.

thanks in advance,
rajatha

#25 kuldeep on 06.19.08 at 4:37 pm

this information is really very good i learn alot from it but still i wanna knw about the (creat menu) in win runner it matters alot in interview…@@

#26 Jagdish on 06.23.08 at 4:40 am

Its a really useful information that u guys have provided. Thankz a lot…!!!

#27 muragesh navani on 07.04.08 at 2:10 pm

Hi all,
thanks a lot for providing usefull information about testing tools

#28 karthick on 08.05.08 at 1:40 pm

hi i dont know de basic interview questions in win runner…
so send me some basic interview questions in win runner..
this site is very useful to grew up our knowledge…

#29 Mansing Shinde on 08.08.08 at 6:15 am

Hello all and organizer of this
First time i m visting this site
its too helpful as well as user friendly ,
really getting more information
i have written as user friendly as because of niether simple nor comple language
thank a lot for u r team

#30 Venkata Srikanth on 09.23.08 at 10:46 am

Hi Good Evening All……

I am Srikanth. I am working as a Test Engineer.
Can anyone send me the meterial regarding SQL commands?

Thanks,
Srikanth
srikanthvelivela@gmail.com

#31 Beena on 10.09.08 at 7:25 am

@devi
U want demos on automation tools, u giv me ur id i’ll send u somlinks, it may help u to learn

#32 priya on 11.24.08 at 5:08 pm

hi i need some multiple choice questions on winrunner and qtp
it may help me to learn.
only mcq not discriptive

#33 sachingoel on 12.10.08 at 9:25 am

hi
i m sachin goel to learn the testing . pls tell me about the testing . & wht is the procedure of download winrunner.
how can we make the test case.
pls help out of this topic.

#34 Gayatri on 12.10.08 at 10:19 am

Hi All,
I am working as a Consoltant Trainer in QA Testing . But I am preparing for Testing interviews also. So I need to know that upto which extend I have to learn the data base , So that it will help me to clear the interview..?

Thanks,
Gayatri

#35 venkata srikanth on 12.10.08 at 6:04 pm

Hi,

Now a days some companies are aking questions abt Data base only in Interviews for Testing jobs also.
U should know all the Fundamental concepts.
I think its better to prepare SQL Server 2005.
I have some documents related to SQL.
If u want just send me a mail then i’ll forward those documents.
All the best for interviews…

Bye
Srikanth,
09972916341

#36 RoadRash on 12.23.08 at 10:52 am

Can anyone please give me some document about the QALoad. I tried searching the net but could not find much information. Please do help me.

#37 kutty on 07.18.09 at 5:44 am

I am learning in software testing right now.can anyone tell me whether i need to know advanced in software testing or enough to know at the basic level in manual and automated testing to get a job..

#38 MANIKANDAN on 10.30.09 at 8:53 am

I am learning in software testing right now.can anyone tell me whether i need to know advanced in software testing or enough to know at the basic level in manual and automated testing to get a job..

#39 GAYATHRI R on 01.23.10 at 2:25 pm

HI
Can I get the difference between the tools QTP and WinRunner

#40 venkat on 01.23.10 at 2:39 pm

hi gayathri,

you can check in the below site and found lot of difference mentioned in it.

http://www.allinterview.com/showanswers/1277.html

thanks
venkat
eesan652@hotmail.com

#41 Murthy on 08.03.10 at 4:31 am

I Need Frequently Asked QTP Interview Questions? Can you help me out.

#42 Anil Patil on 03.08.11 at 6:45 am

Hi!,

send me software testing interview question or call me +91-9595133383

anilshivajipatil@rediffmail.com,

Anil Patil

#43 Anil Patil on 03.08.11 at 6:47 am

Hi!,

send me software testing interview question with answer or call me +91-9595133383
anilshivajipatil@rediffmail.com,

Anil Patil
Software Testing Engineer

#44 saravanan on 07.19.11 at 1:44 pm

i need some important interview based questions of manual testing.
Thanks

#45 sweta on 01.19.12 at 9:16 am

Hi, friend’s

I m just complet s/w testing diploma . & nw m searching job. can enybody send expected interview question with answer about s/w testing on my e-mail.

patilsweta298@gmail.com

Leave a Comment