- 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 - What information is displayed at System Monitor Tab in test result ?
Application Name, Counter scale, Current Step
Application Name, Product Name, System Information
System Counter List, Maximum Counter Value
System Information, Application Name and System Counter List
Answer : A
Explanation
System Monitor tab displays information related to Application Name, Counter Scale, Current Step, System Counter List, Maximum Counter Value. It does not show information related to Product Name or System information.
Q 2 - Which property/method can be used as custom checkpoints in UFT?
Wait
Exist
Sync
GetROProperty
Answer : D
Explanation
Exist and Sync can be used as custom checkpoints.
Q 3 - Which names are used to identify the status of your application before and after your automated test executes?
initial condition
static state
end condition
done condition
Answer : C
Explanation
A point to note here is that when you are iterating over a specific business process the initial and end conditions should be same.
Q 4 - After playing back a test containing output values, where can the output values be viewed?
Answer : D
Explanation
Run time data table is available in the Results viewer where the output values can be viewed.
Q 5 - What happens when a tester performs an Insert > Call to Copy of Action?
D - The Use data stored with the original action is disabled.
Answer : B
Explanation
When call to copy of an action is performed all the steps, checkpoints, parameterizations, action parameters, and object repository are all copied over.
Q 6 - What is the correct syntax for a programmatic description?
A - WebEdit("Name:=Author" , Index:=3)
B - WebEdit("Name:=Author" , "Index:=3")
Answer : B
Explanation
WebEdit("Name:=Author" , "Index:=3") is the correct syntax of descriptive programming.
Q 7 - What is the difference between a function and a sub procedure?
A - function can return a value whereas a sub procedure cannot
B - sub procedure can return a value whereas a function cannot
Answer : A
Explanation
The main difference between function and sub procedure is that function can return a value whereas sub procedure.
Q 8 - While comparing two object repository using Object Repository Comparison tool, If the same object is contained in both repositories but with different names, how this will be shown in repository?
Answer : B
Explanation
If the same object is contained in both the object repositories but with different names, they will be shown in the object repositories as two separate objects.
Q 9 - Which environment variable can be used to determine the path of the folder in which the test is located?
Answer : B
Explanation
Environement varaible TestDir is used to get the test location.
Answer : D
Explanation
Click method does not return anything.