- 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 - Which of the following statement can be used if you want a run session to wait until the a webedit field is enabled?.
Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("disabled",0)
Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("disabled",1)
Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("enabled",1)
Browser("Browser").Page("Page").WebEdit("Edit").Enabled = True
Browser("Browser").Page("Page").WebEdit("Edit").Enabled(5)
Browser("Browser").Page("Page").WebEdit("Edit").Enabled = True
Answer : A
Explanation
You can either use enabled or disabled property to check whether webEdit field is enabled. if enabled value will be 1 else 0.
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 - If you drag-drop a function into your test, UFT removes that function from Available Keywords pane and inserts a call to the function in the test.
Answer : B
Explanation
UFT does not remove the function from Available keywords pane if you drag-drop any function to the test.
Q 4 - How does UFT identify each object you record ?
Answer : A
Explanation
Any object in UFT is identified with the help of its class and object’s properties.
Q 5 - Which feature requires a connection to ALM?
Version Control
Jump to Step
System Monitor
Save Test with Resources
Answer : C
Explanation
User has to connect to ALM if Version Control is enabled for the project.
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 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 - What does this statement imply?
parent.Childobjects(oDesc)
A - count of the number of objects in the parent item
B - collection of all objects in the parent item
Answer : B
Explanation
Childobjects returns the collection of child objects contained within the object.
Q 10 - If a list of recovery scenarios are made default for all new tests that you create. What happens if you make any changes to this list for a new test?
A - it affects the current test only
B - it affects all the existing tests
Answer : A
Explanation
If you make any changes to the default list of recovery scenarios, it affects the current test only where the changes have been made.
To Continue Learning Please Login
Login with Google