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 call a sub procedure, you can use the call statement as
Also,you can omit the call statement and just use − mySubProc(argument)
When you don't use call statement, parenthesis can not be used while calling a sub.
Q 2 - How can you create a .zip file of your test?
File > Export Test to zip file
File > Save as zip file
File > Save Test with sources and select Archive test and resource files in a zip file check box
you can not create a .zip file of the test.
UFT has a feature to export youur test to a zip file. you can do this by selecting ‘File >> Export Test to zip file’ (CTRL+ALT+S) menu options, or while saving the test with resources(File>Save Test with Resources) and select Archive test and resource files in a zip file check box.
Q 3 - When you use 'Object' Property of an object. What does it imply?
you get a reference to the DOM object
you can access the internal methods and properties of the object
you can use an object that is not in Object Repository
you can access the test object properties of an object from object repository
Object property accesses the internal methods and properties also references to the DOM object.
Q 4 - How does UFT identify each object you record ?
Any object in UFT is identified with the help of its class and object’s properties.
Q 5 - How can you pause and interact with the playback of a test?
Testers has to add a break point to debug or to pause and interact with the playback of a test.
Q 6 - When is it best to use a programmatic description?
If is best to use when we work with properties and methods of an object not in the object repository.
Q 7 - Which of the following file is recognized as an action template?
Only the file name ActionTemplate.mst is recognized as an action template.
Q 8 - There are 4 tests and you need to call all of them in a main script, how is this possible in QTP?
To call a test script in another script, you need to make the actions in corresponding script reusable.
Q 9 - Which statement can be used to handle unexpected errors in your test?
We can use ‘On error resume next’ in UFT script to handle unexpected errors.
Q 10 - In the test results, square brackets around a test object name indicate that the test object was dynamically created using which functions? (Select two.)
Child Objects method
Child Objects method and Programmatic Description