Dear Readers, Welcome to WinRunner Objective Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of WinRunner MCQs. These objective type WinRunner questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT companies.
Line 1: table = "default.xls";
Line 2: rc = ddt_open(table, DDT_MODE_READWRITE);
What are the possible success values for ‘rc’ on line 2?
a. E_OK or E_FILE_OPEN or E_FILE_OK
b. E_FILE_OPEN or E_FILE_OK
c. 0 or E_FILE_OK
d. E_OK or E_FILE_OPEN or 0
e. E_FILE_OK or E_FILE_OPEN or 0
Ans: d
a. A do/while loop will execute at least once since the evaluation is at the end of the loop. A while loop will evaluate at the beginning and may never get executed.
b. There is no major difference. They are both used interchangeably.
c. A do/while loop takes longer to execute since the evaluation is at the end of the loop.
d. A while loop uses more WinRunner memory because the evaluation is at the beginning of the loop.
e. A while loop is unable to call functions.
Ans: a
a. The correct GUI map is open but not loaded.
b. Your application is not open to the correct window/screen.
c. The object’s location has changed within the window.
d. You did not run the script in verify mode to save the results to a permanent location.
e. The logical name in the script does not match the logical name in the GUI map.
Ans: a,b,e
a. map_class("MSMaskWndClass", "class attached_text", "MSW_id", "location");
b. set_class_map (MSMaskWndClass, "class attached_text", "MSW_id", "location");
c. map_class(MSMaskWndClass, edit);
d. set_class_map("MSMaskWndClass", "edit");
e. map_class(“MSMaskWndClass”, “edit”);
Ans: d
A. wait(10);
B. obj_check_gui("Insert Done...", "list1.ckl", "gui1", 16);
C. obj_wait_info("Insert Done...","label","Insert Done...",10);
D. obj_check_info("Insert Done...","label","Insert Done...",10);
Ans: C
A. 15
B. 150
C. 1500
D. 15000
Ans: D
A. wait for a bitmap to refresh
B. wait for a window to appear
C. wait for an object state change
D. wait for a process screen to complete
Ans: B
A. win_activate("Flight Reservation");
B. set_window ("Flight Reservation 10");
C. obj_wait_bitmap("Flights","Img2",6,7,8,101,114);
D. obj_wait_info("Insert Done...","label","Insert Done...",10);
Ans: B
A. plan the test
B. synchronize
C. record steps
D. parameterize
E. add verification
F. analyze results
G. execute the test
Ans: B, C, E, G
A. win_move function
B. GUI_load function
C. invoke_app function
D. set_window function
Ans: A
a. Testing toolbar
b. None of the above
c. Action toolbar
d. Test Pane
Ans: c
a. F3
b. SHIFT+ALT+F3
c. CTRL+SHIFT+F3
d. F10
Ans: b
a. False
b. True
Ans: a
a. Add the specific property to the list
b. Use the Default property
c. Use some other property to identify your object
Ans: a
a. DataBase CheckPoint
b. Accessibility checkpoint
c. Bitmap checkpoint
d. Standard checkpoint
Ans: b
a. True
b. False
Ans: a
a. No
b. Yes
Ans: b
a. F12
b. F2
c. F10
d. F7
Ans: a
a. No
b. Yes
Ans: a
a. Checkpoint
b. All the above
c. Output Value
d. Compare the object property
Ans: a
a. Low-Level Recording Mode
b. Normal recording Mode
c. Analog Mode
Ans: a
a. RunAnalog
b. CallAnalog
d. ExecuteAnalog
Ans: a
a. Call Action
b. Split Action
c. Reusable Action
Ans: c
a. False
b. True
Ans: b
a. Check Checkpoint
b. Checkpoint
Ans: a
a. Accessibility
b. Text Area
c. Standard
d. Text
Ans: b
a. No
b. Yes
Ans: a
a. Yes
b. No
Ans: a
a. No
b. Yes
Ans: b
a. GetData(Row,Col)
b. GetRowValue(Rowid,Colname)
c. GetCellData (Row,Col)
Ans: c
a. StartTransaction("Name"), EndTransaction("Name")
b. Services.StartTransaction "Name", Services.EndTransaction "Name"
c. StartTransaction.services "Name", EndTransaction.services "Name"
Ans: b
a. Output Value
b. Checkpoints
c. Active Screen
Ans: a
a. True
b. false
Ans: a
a. *.mtb
b. *.mts
c. *.mbt
d. *.mtr
Ans: a
a. InvokeApplication
b. SystemUtil.Run
c. Run
d. Both b & c
e. Both a & b
Ans: e
a. Set ab = Connection("srcfilepath ") , Set ws = ab.getdata(sheetid)
b. Set ab = CreateObject("srcfilepath ") , Set ws = ab.getsheet(sheetid)
c. Set ab = GetObject("srcfilepath") , Set ws = ab.worksheets(sheetid)
Ans: b
a. recovery.activate
b. enable
c. recovery.enable
d. activate
Ans: a
a. Reporter.log()
b. Reporter.reportevent()
c. Reporter.msgbox()
d. Reporter.report()
Ans: b
a. SystemUtil.terminate
b. SystemUtil.Stop
c. SystemUtil.CloseProcessByName
Ans: c
a. false
b. True
Ans: b
a. Function generator
b. Step generator
c. Object repository
Ans: a
a. Synchronize
b. Wait
c. WaitProperty
d. Pause
Ans: c
a. Recovery scenario
b. Smart identification
c. Handling object
Ans: b
a. how to continue the run session after QTP identify the event
b. errors while running
c. recovery scenario during a run session
Ans: a
a. non-reusable action
b. Reusable action
c. External action
Ans: b
a. Createobject(connectivity name)
b. dbconnect(connectivity name)
c. open(connectivity name)
d. None of the above
Ans: a
a. FileSystemObject.Getfolder()
b. FileSystemObject.selectfolder()
c. FileSystemObject.retrievefolder()
Ans: a
a. XMLfile1.compare(XMLfile2)
b. XMLcompare(file1,file2)
c. compare(XMLfile1,XMLfile2)
Ans: c
a. *.mts
b. *.usr
c. *.mtr
d. *.vbs
Ans: a
a. setFunc()
b. RegisterUserFunc()
c. RegisterFunc()
Ans: b