Instructions: Click the answer button to see the correct answer.
- The toolbar enables you to view the details of an individual action or the entire test flow is
- Testing toolbar
- None of the above
- Action toolbar
- Test Pane
Answer c
- The key that is used to Start/End analog recording mode?
- F3
- SHIFT+ALT+F3
- CTRL+SHIFT+F3
- F10
Answer b
- To use a specific property to identify your object, but that property is not listed in the properties list. Then how do you identify that object?
- Add the specific property to the list
- Use the Default property
- Use some other property to identify your object
Answer a
- The list of test objects and their properties and values are stored in the
- Object Repository
- Object Identification
Answer a
- To retrieve the current property value of the objects in your application during the run session.
- GetVisibleText
- GetROProperty
- SetROProperty
- GetTOProperty
Answer b
- Bitmap checkpoint is supported in VB environment.
- True
- False
Answer a
- What is the shortcut key that is used for a Standard Checkpoint?
- F12
- F2
- F10
- F7
Answer a
- To compares the values of the specified property during a run session with the values stored for the same test object property within the test.
- Checkpoint
- All the above
- Output Value
- Compare the object property
Answer a
- You will use the recording mode for an object not recognized by QuickTest.
- Low-Level Recording Mode
- Normal recording Mode
- Analog Mode
Answer a
- The statement that calls the recorded analog file is
- RunAnalog
- CallAnalog
- ExecuteAnalog
Answer a
- An action can be called by other tests or actions is
- Call Action
- Split Action
- Reusable Action
Answer c
- You can replace the page in your Active Screen tab
- False
- True
Answer b
- QuickTest adds a checkpoint statement in the Expert View as
- Check Checkpoint
- Checkpoint
Answer a
- A Checkpoint checks that a text string is displayed within a defined area in a Windows application is
- Accessibility
- Text Area
- Standard
- Text
Answer b
- In ActiveX environment an “Accessibility checkpoint” is supported.
- No
- Yes
Answer a
- Can we get the execution time for an action in a Test.
- Yes
- No
Answer a
- The command used to retrieve data from excel sheet is
- Set ab = Connection(“srcfilepath “) , Set ws = ab.getdata(sheetid)
- Set ab = CreateObject(“srcfilepath “) , Set ws = ab.getsheet(sheetid)
- Set ab = GetObject(“srcfilepath”) , Set ws = ab.worksheets(sheetid)
Answer b
- The method used to get data from HTML Table is
- GetData(Row,Col)
- GetRowValue(Rowid,Colname)
- GetCellData (Row,Col)
Answer c
- The Command used to insert the transactions in test is,
- StartTransaction(“Name”), EndTransaction(“Name”)
- Services.StartTransaction “Name”, Services.EndTransaction “Name”
- StartTransaction.services “Name”, EndTransaction.services “Name”
Answer b
- A step in which one or more values are captured at a specific point in your test and stored for the duration of the run session is
- Output Value
- Checkpoints
- Active Screen
Answer a
- QuickTest can detects an application crash and activate a defined recovery scenario to continue the run session.
- True
- false
Answer a
- In Batch Test process, the test list are saved in file format as,
- *.mtb
- *.mts
- *.mbt
- *.mtr
Answer a
- The command used to invoke other application from QTP,
- InvokeApplication
- SystemUtil.Run
- Run
- Both b & c
- Both a & b
Answer e
- Can we add external library files in QTP?
- No
- Yes
Answer b
- The method that explicitly activates the recovery scenario mechanism is,
- recovery.activate
- enable
- recovery.enable
- activate
Answer a
- The method used for sending information to the test results.
- Reporter.log()
- Reporter.reportevent()
- Reporter.msgbox()
- Reporter.report()
Answer b
- To terminate an application that is not responding we use,
- SystemUtil.terminate
- SystemUtil.Stop
- SystemUtil.CloseProcessByName
Answer c
- The recovery mechanism does not handle triggers that occur in the last step of a test
- false
- True
Answer b
- We can add Test object methods, function calls into the Test using
- Function generator
- Step generator
- Object repository
Answer a
- The method that adds to the test while implementing Synchronization is
- Synchronize
- Wait
- WaitProperty
- Pause
Answer c
- The mechanism used to identify objects during run session is
- Recovery scenario
- Smart identification
- Handling object
Answer b
- Post-recovery test run options specifies
- how to continue the run session after QTP identify the event
- errors while running
- recovery scenario during a run session
Answer a
- The action that can be called multiple times by the test as well as by other tests is called
- non-reusable action
- Reusable action
- External action
Answer b
- QuickTest supports virtual object for anolog or low-level recording.
- False
- True
Answer a
- The command used to connect with Database is
- Createobject(“connectivity name”)
- dbconnect(“connectivity name”)
- open(“connectivity name”)
- None of the above
Answer a
- The method used to retrieve the folders is
- FileSystemObject.Getfolder()
- FileSystemObject.selectfolder()
- FileSystemObject.retrievefolder()
Answer a
- The method used to compare 2 XML files is:
- XMLfile1.compare(XMLfile2)
- XMLcompare(file1,file2)
- compare(XMLfile1,XMLfile2)
Answer c
- Can we change name of checkpoint?
- No
- Yes
Answer a
- The QTP script files are stored in the extension of
- *.mts
- *.usr
- *.mtr
- *.vbs
Answer a
- The method used to register the user-defined function with test object is
- setFunc()
- RegisterUserFunc()
- RegisterFunc()
Answer b
- The method used to open the specified URL in a browser is
- openURL()
- navigateURL()
- navigate()
Answer c
- The 3 Parameter types available in data driver is
- DataTable,Environment,Random number
- DataTable,random number,unique
- environment,string,numeric
Answer a
- The method added to the test while parameterizing is
- get Data (variable, dtGlobalSheet)
- get DataTable(variable, dtGlobalSheet)
- Set Data(variable, dtGlobalSheet)
- Set DataTable(variable, dtGlobalSheet)
Answer d
- The length of the array can be get by the method
- length(array)
- ubound(array)
- count(array)
Answer b
- The method used to get the count value of list box or combo box os
- GetItemsCount
- GetCount
- GetItemCount
Answer a
- Can we parameterize the checkpoints properties?
- No
- Yes
Answer b
- In data base check point we can not set the expected value from the test?
- True
- False
Answer b
- The checkpoint used to check the alt attribute exists for all relevant objects (such as images) is
- DataBase CheckPoint
- Accessibility checkpoint
- Bitmap checkpoint
- Standard checkpoint
Answer b
- The method used to continue the test execution after getting run-time error is
- On Error Resume Next
- On Error Raise Next
- On Error Next
Answer a
If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.
Hi
Please help me to compare the fields in columns using QTP.Wat code i need to excute it and also i want new output sheet after a result.
super questions fantasic
Hi guys, Please check the below codes and tell me what changes i have to make.
ApplicationDir = Environment(“ProductDir”)
ApplicationPath = “C:Program FilesMercury InteractiveQuickTest Professionalsamplesflightappflight4a.exe”
If Window(“Flight Reservation”).Exist(2) Then
Window(” Flight Reservation”).Close
SystemUtil.Run ApplicationDir and ApplicationPath
Elseif Not Dialog(“Login”).Exist(1) Then
SystemUtil.Run ApplicationDir and ApplicationPath
End If
Dialog(” Login”).WinEdit(“Agent Name:”).Set Datatable.Value(“AgentName”,dtGlobalSheet)
Dialog(“Login”).WinEdit(“Password:”).Set Datatable.Value(“Password”,dtGlobalSheet)
Dialog(“Login”).WinButton(“OK”).Click
If Dialog(“Login”).Dialog(“Flight Reservation”).Exist(1) and Datatable.Value (“Status”,dtGlobalSheet)=”Fail” Then
Dialog(“Login”).Dialog(“Flight Reservation”).WinButton(“OK”).Click
Elseif Window(“Flight Reservation”).Exist(10) and Datatable.Value(“Status”,dtGlobalSheet)=”Pass” Then
Reporter.ReportEvent micPass,”Login”,”Succeeded”
Else
Reporter.ReportEvent micFail,”Login”,”Combination #” and Datatable.GetCurrentRow &” was not according to Excel file”
End If
I am getting the error in the line ” SystemUtil.Run ApplicationDir and ApplicationPath “
Type mismatch: ‘ApplicationDir’
Thanks.
Hi Ankur,
I am just entering in QTP world and started with record and play.
I did just login in gamil account and than logout from the account.
when I run this script I able to login successful but while logout the script does not identify frame object
the frame name property is generated at run time
can you pls suggest me what I need to do for it ??
Thanks
Hi Ankur,
I have a problem in testing a web-based application. QTP sometimes fails to identify the inner objects for example, it recognizes Brower().Page().Frame(). but later it doesnt recoginzes the Link (button)or WebEdit objects.
Is there any settings or some file which fails to load at times in QTP? or Do i have to do some other settings in QTP?
** I am using QTP 9.5
Kindly answer my quesion as early as possible since i need to answer the same to my client.
Kind Regards,
S K Inamdar
Hi Ankur,
I want to know about the compatibility between SAP ECC6 & QTP 9.5.
We have recently upgraded our SAP system to ECC6 and now I have the problem of compatibility.
Though the proper parameters are set on both the server & the client side, it says that the scripting option is not enabled.
We are in a fix. Can you help??
You can contact me at lisha.rakesh@gmail.com
Regards,
Lisha
HI Ankur,
i am facing problem while retrieving the data colour which is present in Table.
Actually QTP recognize entirely as JavaTable object. I am able to get the Data which is present in the Javatable by using GetcellData(row,col). Please send feedback to my id yathiraju.king@gmail.com
Hello Ankur,
I am beginner of QTP. I am trying to add synchronization point on flight window application once the ‘Insert Done’ is shown progress bar. When I go to QTP to insert synchronization point, the minimized flight window application doesn’t get focused back again. Is there a shortcut key to focus back on the flight windows application in order to insert the synchronization point. Thanks in Advance,
Hi Ankur
i need more objective type questions in QTP can you provide that for me…
Too bad QTP is a piece of junk in comparison to Silktest and its OBJECT ORIENTED (4GL) test language.
QTP might be good for test personnel with little to no software engineering skills. As such, QTP jobs don’t pay nearly as well.
A good question here would be:
True or false, one can instantiate a custom class in QTP?
True or false, one can instantiate a custom object in Silkttest?
Hi,
Can you help me understand regular expression. Also, if someone can provide an real time example for the same.
Thanks!
@ Anon:
Try using .*error.* as the regular expression.
Can any one please let me know how to create regular expression for the text “An error occured!” in which “error” is the common word across many exceptions.So the QTP should identify that the page contains an error by seeing the text “error” in any of the property.So that I need to use regular expression for that
Pretty Good
Good testing cases