Object Repository:
Types of Object in
QTP:
It is a storage place of QTP where we can store the objects information and it also acts as interface between the test script and the AUT in order to identify the objects during execution.
Object:
Object is something, which has structure and
properties.
Objects:
We call windows, WebPages, buttons, edit
boxes, check boxes etc.. as Objects.
There are four types of object available in QTP.
- Run time objects
- Test objects
- Utility objects
- Automation objects/User defined objects.
Run time objects: The objects present in the
AUT. Ex: Buttons, links, etc…
Test Objects: References of Run time
objects. Ex: WinEdit, WinButton, WebButton, Link, etc…
Note: Test objects names vary from one environment to another.
Ex:
Run time objects
|
Test objects in
windows Environment
|
Test objects in
VB
Environment
|
Test objects in
web Environment
|
buttons
|
WinButton
|
VBButton
|
WebButton
|
Edit box
|
WinEdit
|
VBEdit
|
WebEdit
|
Check box
|
Wincheckbox
|
Vbcheckbox
|
Webcheckbox
|
Utility objects
They are QTP reserved objects used for testing and result reporting.
Ex:
1. SystemUtil for launching/closing the application.
2. Reporter for defining results.
3. Services for inserting transaction points
4. Environment for using environment variables
Automation
objects/User defined objects
User can create
objects; those can be used for performing specific operations. Ex: Creating
objects in file system object class, adodb.connection class, dictionary object
class, excel. Application class etc.