Test objects are created by QuickTest in the test or component to represent the actual object in your application. QuickTest stores information about the object that will help it identify and check the object during their run session.
  1. While recording QTP tries to learn properties of a GUI object on the which operation is performed.
  2. While recording the QTP tool captures the objects and its current properties in the application.
  3. The test object model is a large set of object types or classes that QTP uses to represent the objects in our application.
  4. QuickTest tests your dynamically changing application by learning and identifying test objects and their expected properties and values. To do this, QuickTest analyzes each object in your application in much the same way that a person would look at a photograph and remember its details.
  5. QuickTest stores information about the object that will help it identify and check the object during the run session.
  6. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that QuickTest can learn about it.
  7. Chooses a unique name for the object, generally using the value of one of its prominent properties.
image2.jpg


How QTP identify objects

QTP identifies any GUI Object based on its corresponding properties. While recording, QTP will identify and store peculiar properties (as defined in the Object Identification settings) in the object repository of the GUI object. At run-time, QTP will compare the stored property values with the on-screen properties, to uniquely identify the GUI object.

Test object model

A test object model is nothing but QTP will create these properties to identify the objects on application. Which means QTP will create & QTP will use these properties. A test object model is a set of objects that is in the QTP tool but, while identifying the property's name & value, it will search for the application object and as well the QTP objects. The test object model in QTP is a large set of object types or classes that QTP uses to represent the objects in application under test.

A test object model is a combination of Test Object and Run Time Object.

Test Object

test obj1.jpg

Run Time Object

run time 1.jpg