- QTP Tutorial
- 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 Useful Resources
- QTP - Questions and Answers
- QTP - Quick Guide
- QTP - Useful Resources
- QTP - Discussion
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 - You can remove the call to an action from a test by selecting the action using
Resource pane
Test Flow pane
Keyword view
Expert view
Answer : C
Explanation
An action call can be removed from the test either from Keyword view or Resource or Test flow pane.
Q 2 - What can be used to capture timings in your test?
StartTransaction and EndTransaction
StartTime and EndTime
Timer
Sync
Answer : C
Explanation
StartTransaction and EndTransaction can be used to capture timings, instead of this you can also use Timer function.
Q 3 - What type of environment variables can be added from Environment view under Test Settings?
Answer : A
Explanation
There are two types of environment variable – built-in and User-defined.
Q 4 - What is compared in a bitmap checkpoint?
bits
RGB
pixels
text
jpegs
Answer : B
Explanation
Bitmap checkpoint compares pixels only.
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 - What is the shortcut key to expand all the branches in the keyword view?
Answer : D
Explanation
Asterisk can be used to expand all the branches in the keyword view.
Q 7 - You can use regular expressions to define the value range for a checkpoint.
Answer : A
Explanation
Regular expression can be used in checkpoint to define the value range.
Q 8 - Which function returns the starting position of the substring or a 0 if the function doesn't find the string?
Answer : D
Explanation
INSTR function is used to locate a substring in a string.
Q 9 - If not explicitly defined, a function procedure is ..... by Default
Answer : B
Explanation
By Default, a function created is Public.
Q 10 - You have defined a global synchronization timeout of 30 seconds for your test. The synchronization point timeout for a button to become enabled is set to 30,000. During playback of the script, what is the maximum amount of time HP UFT will wait for the button to become enabled?
Answer : C
Explanation
Synchronization point timeout is in ms. Hence 30,000ms = 30s. UFT will wait for 30+30 = 60seconds.