Top of Form
1. What Utility is used to investigate Object Properties?
GUI Spy
Object Repository
Object Repository Manager
Object Spy
The Object Checker
Bottom of Form
Top of Form
2. What does the Object Keyword imply? Browser("My Browser").Page("Yahoo").Object
That you will use descriptive programming to identify the object
You want to retrieve all the objects from the web page
You want to reference an object using Microsoft Internet Explorer's DOM
You want to reference a Test Object\'s properties from the Object Repository
You want to use an Object that does not exist in the Object Repository
Bottom of Form
Top of Form
3. What does the ChildObjects method return? e.g. set myCol = Browser("Itenerary: Mercury Tours").Page("Itenerary: Mercury Tours").ChildObjects()
A count of the number of objects on the web page
A string containing all the object names on the page
A collection of objects
All the web pages displayed by that Browser
None of the above
Bottom of Form
Top of Form
4. What is the difference between the GetROProperty and GetTOProperty methods?
GetROProperty retrieves property values from Objects in the Object Repository
GetTOProperty retrieves property values from Objects in the Object Repository, GetROProperty gets them from the Run-Time DataTable
GetTOProperty retrieves property values from Objects in the Application
GetTOProperty retrieves property values from Objects in the Object Repository, GetROProperty gets them from the Run-Time Application
None of the above are true
Bottom of Form
Top of Form
5. If you open the Object Repository and some Objects are shown in bold where the others are greyed-out, what does this mean?
The bold objects are objects in the shared object repository
The bold objects are objects in the local repository
The greyed-out objects are objects used in other Actions (not the currently selected one)
The objects in bold cannot be amended
Objects in bold are objects that QTP recognises in the current screen/page within the application
Bottom of Form
Top of Form
6. Using the following DataTable Value property, what does the number indicate? x = DataTable.Value ("Column1", 1)
That you want Data from the first row in the Table
That you want Data from the first column in the Table
That you want Data from the Local Sheet
That you want Data from cell 1,1 from the DataTable
That you want to access data from the Data Sheet with an index of 1
Bottom of Form
Top of Form
7. What Web Browsers can QTP record against?
Internet Explorer only
Internet Explorer and Firefox
Any supported Browser
Internet Explorer, Firefox and Netscape
All current Browsers
Bottom of Form
Top of Form
8. To ensure that Quality Center can run tests in QTP, what setting must be set first in QTP?
Allow QC to run tests remotely
Enable QC integration
Allow other products to control QTP
Allow other HP products to run tests and components
Allow other HP products to run tests remotely
Bottom of Form
Top of Form
9. If you see a WinObject in your script, what does this mean?
QTP does not see your application
QTP can see the object but does not recognise what Class it belongs to
QTP can see it is a standard Windows Object
QTP will not replay against the Object
QTP cannot see the object
Bottom of Form
Top of Form
10. If there are 3 rows of data on the Global sheet and 2 rows on an actions (Local) Sheet and that Action has been set to iterate for all rows, but the global table iterations is set to the default, how many Action iterations will execute in total?
2
3
5
6
1
Bottom of Form
Top of Form
11. How can the object repository be made more flexible for objects with dynamic properties?
Regular Expressions
Parameterisation
Descriptive Programming
A & B
A,B & C
Bottom of Form
Top of Form
12. What type of Files can be managed using the Object Repository Manager?
Local Object Repositories
All Repository types
Shared Object Repositories
VBScript Library Files
A & C
Bottom of Form
Top of Form
13. What order does QTP Search Object Repositories for Objects?
Local, Then Shared Object Repositories in the order they were loaded
Shared Repositories, then finally the Local Repository
Shared Repository only, if the Action is associated with a shared Repository
Local Repository only, if the Action is associated with a shared Repository
There is no order of precedence
Bottom of Form
Top of Form
14. How can you make a variable global to all your scripts actions?
Declare it as Public in your script
Declare it within every Action
Declare it in a Library file that is associated with the script
A & B
Variables cannot be Global in scope within QTP
Bottom of Form
Top of Form
15. What does ByRef imply when used to declare a function parameter?
That the parameter is an input parameter only
It will make a copy of the original variable, leaving the original intact
It references the original variable passed into the function, but will not change the original variables value
It is the default if you do not declare a parameter as ByVal or ByRef
None of the above
Bottom of Form
Top of Form
16. Which Looping statement is guaranteed to execute at least once?
For...Next
While...Wend
Loop
Select
Do...While
Bottom of Form
Top of Form
17. How can you ensure that all variables must be declared within a script?
You can't
OptionDeclare
Declare Explicit
Option Explicit
Option Variable
Bottom of Form
Top of Form
18. What are the 3 recording modes in QTP?
Normal, Low-Level, Analogue
Normal, Analogue, Object-Level
Context Sensitive, Object-Level, Analogue
Normal, Context Sensitive, Low-Level
Low-Level, Normal, Object_Level
Bottom of Form
Top of Form
19. What Checkpoint type is used to check the values of properties of objects?
Low-Level
Active Screen
JPEG Sample
Standard
Bitmap
Bottom of Form
Top of Form
20. To change the currently loaded Add-ins in QTP you must...
Close QTP and restart it, then select Add-ins from the Add-in Manager
From the Help Menu choose About QTP then check the Add-ins required
Open the Add-in Manager from the QTP main menu and change the Add-ins as required
A or B
A,B, or C
Bottom of Form
Top of Form
21. When inserting an Ouput Value in your script, which DataTable Sheet can you choose to output to?
DataSheet for the Action (Local)
Global
Any Sheet
None
Global or Local Action Sheet
Bottom of Form
Top of Form
22. What options could you use to pass data from one Action to another?
Action Parameters
DataTable
Writing to a Text File using the FileSystemObject
Using Key/Value pairs in the Dictionary Object
All of the above
Bottom of Form
Top of Form
23. Which of these can be parameterized?
Checkpoints
Test Objects in the Repository
DataBase Checkpoints
A & B
A, B, C
Bottom of Form
Top of Form
24. With the following statement, how long will QTP check for the existence of the Button? Window("Flight Reservation").WinButton("OK").Exist (3)
3 Seconds
20 Seconds
Whatever the default timeout is set to plus 3 seconds
23 seconds
Whatever the default timeout is set to
Bottom of Form