What is Object Repository and Types of Objects in QTP? - TestingQ.com

-->Exclusive Portal for Testing Jobs

What is Object Repository and Types of Objects in QTP?

Object Repository:

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.
Types of Object in QTP:
There are four types of object available in QTP.
  1. Run time objects
  2. Test objects
  3. Utility objects
  4. 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.
To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address: