- 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 - Recovery Scenarios, Object Repository per Action and Shared Object Repository carry extensions
A - qrs, mtr and mtb respectively
B - qrs, mtr and tsr respectively
Answer : B
Explanation
File Extensions for a Recovery scenario file is qrs, for Per Action Object Repository mtr,shared object repository -tsr Batch Test mtb, Script file mts for action template mst.
Q 3 - Which is the best match for the regular expression for dee(r|d)ees
deer
deedees
deerees
dees
Answer : B
Explanation
| instructs QTP to match one of a choice of expression, ( groups the expression.
Q 4 - Which UFT feature should you use to view methods and properties of objects in your application?
Answer : C
Explanation
Object Spy tool helps tester to view methods and properties of objects.
Q 5 - What can you do using the To Do pane? (Select two.)
Assign tasks to others.
Mark a task as In progress.
View TODO comments existing in the current test recovery scenarios.
Export TODO comments to comma-separated values or XML format.
View TODO comments existing in the current test checkpoints.
Answer : D
Explanation
Once can do : Assign tasks to others, Export TODO comments to comma-separated values or XML format.
Q 6 - Which statement will retrieve the test object's properties during the test run?
A - iCount = WebRadioGroup("seat").GetROProperty("Items Count")
B - WebRadioGroup("seat).CheckProperty("Items Count")
Answer : C
Explanation
GetTOProperties fetches test object's properties during the test run.
Q 7 - Which built-in environment variable indicates the test iteration running currently?
Answer : B
Explanation
TestIteration indicates which test iteration is currently running.
Q 8 - After registering a function to a test object using RegisterUserFunc, it is displayed as .... in Keyword view and Step Generator.
Answer : B
Explanation
After registering a function to a test object using RegisterUserFunc, it is displayed as Operation in Keyword view and Step Generator.
Q 9 - Which one of these statements is correct about Shared Repository?
A - Shared repository is difficult to maintain and can be used in multiple tests
B - Share repository is easy to maintain and cannot be used in multiple tests
C - Shared repository is easy to maintain and can be used in multiple tests
D - Shared repository is easy to maintain and can be used in a single test only.
Answer : C
Explanation
A Shared Object Repository is easy to maintain and can be used in multiple tests.
Q 10 - Err object contains information about the run time error. Which one of the following is the default property for Err object?
Answer : C
Explanation
Err object has a total of 5 properties and 2 methods associated with it. Number is the default