- QTP - Home
- QTP - Introduction
- QTP - Test Automation
- QTP - Environment Setup
- QTP - Record and Play Back
- QTP - Object Repository
- QTP - Actions
- QTP - DataTables
- QTP - Checkpoints
- QTP - Synchronization
- QTP - Smart Identification
- QTP - Debugging
- QTP - Error Handling
- QTP - Recovery Scenarios
- QTP - Environment Variables
- QTP - Library Files
- QTP - Test Results
- QTP - GUI Objects
- QTP - Virtual Objects
- QTP - Accessing Databases
- QTP - Working with XML
- QTP - Descriptive Programming
- QTP - Automation Object Model
- QTP - Frameworks
- QTP - Designing a Framework
QTP Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to QTP Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - While merging two object repositories using Merge Tool, if an object in the secondary repository has the same name, description properties and values as an object in the primary object repository which has some additional properties and values, how this conflict can be handled?
By keeping the object added from the primary object repository only.
By keeping the object added from secondary repository only.
By keeping the object added from both the repository.
by ignoring both repository and adding a fresh new object.
Answer : A
Explanation
You can handle this conflict by either adding objects from primary object repository only or only from secondary object repository or both..
Q 2 - How can you create a .zip file of your test?
File > Export Test to zip file
File > Save as zip file
File > Save Test with sources and select Archive test and resource files in a zip file check box
CTRL+ALT+S
you can not create a .zip file of the test.
Answer : A
Explanation
UFT has a feature to export youur test to a zip file. you can do this by selecting File >> Export Test to zip file (CTRL+ALT+S) menu options, or while saving the test with resources(File>Save Test with Resources) and select Archive test and resource files in a zip file check box.
Q 3 - What are the default add-ins checked for installation in UFT
.NET
ActiveX
HTML
Web
Java
Visual Basic
Answer : B
Explanation
While installing UFT, the .NET, Wen and VB plugins are activated by default for installation
Q 4 - Which checkpoint type should you use to validate the enabled state of a button?
Answer : C
Explanation
Standard checkpoint helps us to validate the enabled state of a button.
Q 5 - How can you use monitors to cause the test to fail?
Answer : D
Explanation
Define a monitor limit can be used to cause the test to fail?
Q 6 - Which DataTable method makes an external spreadsheet available to UFT?
Answer : C
Explanation
ImportSheet method makes an external spreadsheet available to UFT.
Q 7 - What are the options available to define a table checkpoint at 'define/modify row range' dialog box?
A - All Range, Visible Range and Another Range
B - All Rows, Visible Rows and Another Range
Answer : B
Explanation
There are three options are there to define table checkpoint row range All Rows, Visible Rows and Another Range
Q 8 - There are 4 tests and you need to call all of them in a main script, how is this possible in QTP?
A - No this is not possible in QTP. Tests cannot be called.
B - You can call all tests using RunAction statement directly
D - You can call all tests using LoadAndRunAction statement directly
Answer : C
Explanation
To call a test script in another script, you need to make the actions in corresponding script reusable.
Q 9 - Where can you see the TO and RO properties and methods of an object?
Answer : B
Explanation
TO and RO Properties for an object can be seen in Object spy.
Q 10 - What is the purpose of the GetROProperty method?
A - to retrieve a property value of a runtime object
B - to retrieve a property of a test object
Answer : A
Explanation
GETROPROPERTY - to retrieve a property value of a runtime object