- 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 - When you create a bitmap checkpoint, UFT captures only the visible part of the object as bitmap, it does not capture anything which is scrolled off the screen.
Answer : A
Explanation
QTP/UFT captures only the visible part of the object when using bitmap checkpoint
Q 2 - Which function can be used to convert data from one subtype to another?
Date
Format
CInt
CStr
Answer : D
Explanation
CInt converts to Integer and CStr converts to string.
Q 3 - How can you add recordable or non-recordable operations to your test?
Use the Step Generator
Insert through Keyword View.
Drag objects from Available Keywords.
Drag objects from the Data Table.
Answer : C
Explanation
It can be added using step generator or through keyword view or it can be dragged objects from available keywords.
Q 4 - 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 10000. During playback of the script, what is the maximum amount of time UFT will wait for the button to become enabled?
Answer : C
Explanation
UFT waits up to the amount of time set for the object synchronization timeout option, plus the time set for the synchronization point timeout.
Q 5 - Which tab in the Debug Viewer pane allows you to view or change variables or properties?
Answer : A
Explanation
Watch tab in the Debug Viewer pane allows you to view or change variables or properties.
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 - You decided to parameterize a value using Random Number parameter, what option you will choose to generate a new number and use it for the parameter throughout the test?
A - Generate new random number for each action iteration
B - Generate new random number once per entire test run
Answer : B
Explanation
Select ‘Generate new random number once per entire test run’ generates a new number which can be used throughout the test.
Q 8 - Which test object property is used to access native properties of a run-time object?
Answer : D
Explanation
Object property of an object can be used to access native properties of a run-time object.
Q 9 - What are the options available under Quality Center version Control menu list?
Check out, Undo Check out, Check In
Check Out, Check In, Version History
Check Out, Check In, Get Latest version
Baseline History, Version History
Verify Version, delete Version
Answer : C
Explanation
Options available under Quality Center control menu are – Check out, Check in, Undo Check out, Version History,Baseline History.
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.
To Continue Learning Please Login
Login with Google