QTP Questions asked in KANBAY
1. Where is the bitmap checkpoint information saved?
[ ]
a) In Temporary folder
b) In resource.mtr under action folder
c) In the Script.mts folder under the action folder
d) In the checkpoint.usr file
2. How can the name of a checkpoint be changed in Qtp
[ ]
a) Go to Object repository and change it
b) Edit resource.mtr and change it
c) You cannot change the checkpoint name
d) Edit the name in QTP script itself
3. Out if the given solution which is the way to find a window is minimized or not
[ ]
a) Get the abs_x " and "abs_y runtime values and check if they are equal to 3200
b) ICheck weather the window exist or not
c) Try to click on a control in a window and if it fails, assume that the window is minimized
d) There is no option to check whether a window is minimized or not
4. How can the expected image for a bitmap checkpoint be recaptured in QTP
[ ]
a) Go to Test -> Update Run., Select the Update Options tab., Set the
"Update checkpoint properties" option, Click <ok>
b) Run the test in debug mode, it will automatically update
c) Recapture the checkpoint manually
d) There is no option to recapture the bitmap checkpoint in QTP
5. How many actions can be created in a QTP script ?
[ ]
a) 1
b) 255
c) 256
d) Any Number
6. What does the method Getroproperties do ?
[ ]
a) Retrieves the values of the static properties of an object
b) Displays the properties of an object
c) Retrieves the runtime properties of an object
d) None of the above
7. How to work with controls without learning them into the Object Repository ?
[ ]
a) You cannot work without object repository
b) Use SetROproperty to change the property of an object and identify the object
c) Run the script in update mode and let the objects get updated automatically
d) Use descriptive programming
8. Which of the following regarding a shared object repository is true?
[ ]
a) A shared object repository cannot be accessed in Write mode by several users at the same time
b) A shared object repository can only reside in the script folder structure
c) A shared object repository can be acessed by nore than one scripts at runtime
d) A shared object repository is a flat file that canbe edited with standard editors
9. What does SPLIT and JOIN commands do in Vbscript?
[ ]
a) SPLIT splits a string and truncates the unwanted string and JOIN joins 2 strings
b) SPLIT is same like MID function in Vbscript and JOIN is same Like concatenation
c) SPLIT tokenizes the string with a token and creates a dynamic array and JOIN concatenates an
array to form a single string
d) SPLIT and JOIN are not syntaxes used in Vbscript
10. If a button named "CLICK" is recorded in low level recording mode , what will be the
values stored for "name" property of that button in object repository ?
[ ]
a) Click
b) Button
c) The ID of the buton will be displayed
d) There will be no entry in repository
11. What is the true about copy to action and call to action ?
[ ]
a) Copy to Action copies the existing action to a script and behaves as an independent action
b) The action defined in call to action should be a reusable script
c) Copy to Action requires the action to be copied to be reusable
d) The action defined in call to action can be used not only in the parent script but in other scripts as
well
12. How can I pass values from one action to another in QTP ?
[ ]
a) Declare the variables as Public, you should be able to pass it
b) Simple declaration of variables is enough to pass values
c) To pass values you have to use environment variables or store value in data table and retrieve it
d) You cannot pass values between actions
13. How can I use Call dlls in QTP ?
[ ]
a) Can get the instance of the class specified in dll using create object
b) QTP cannot understand external dlls
c) QTP can work on dlls through third party tools
d) QTP can only call built in dlls of QTP
14. How can I Ad datasheets dynamically in QTP
[ ]
a) Using Datatable.addsheet method
b) Using Datatable.Importsheet method
c) Using Datatable.getsheet method
d) You cannot Add a data sheet at runtime
15. In an output value text checkpoint, where does the output value stored by default ?
[ ]
a) In the environment variable
b) In the datatable
c) In the variable defined
d) In the first column of the datasheet
16. What is a runtime datatable ?
[ ]
a) It is datatable created at runtime
b) It is the same datatable associated with a script and displays runtime data
c) There is no runtime datatable concept in QTP
d) Runtime datatable accesses data from other datatables at runtime
17. How can I generate customized logs in QTP ?
[ ]
a) You cannot create customized logs
b) Reporter.reportevent can be used custom logs
c) Generatelog function can be used to generate custom logs
d) Logcomment function can be used for custom logs
18. Which of the following functionality of WinRunner is not present in QTP ?
[ ]
a) Run in Update Mode
b) Multiple object multiple properties checklist
c) object Repository
d) Virtual Object Wizard
19. Which of the following is NOT a functionality of QTP ?
[ ]
a) Reusable Actions
b) Active Screen
c) Keyword view
d) Compile Module
20. QTP does NOT support which of the following languages ?
[ ]
a) TSL
b) VB
c) VB Script
d) WSH
21. Object recognition in QTP is based on which model ?
[ ]
a) COM
b) DCOM
c) DOM
d) None of the above
22. Action Parameter: “Value1” has a value 5 and a variable defined in the action has the name “value1”
With value 5. Which keyword does QTP use to distinguish between these two variables ?
[ ]
a) Dim
b) Parameter
c) The script does not work at all due to conflict in the names
d) The scripts picks up value of “value1” variable at random
23. Default mode for storage of object repository type in QTP is ?
[ ]