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.
- While recording QTP tries to learn properties of a GUI object on the which operation is performed.
- While recording the QTP tool captures the objects and its current properties in the application.
- The test object model is a large set of object types or classes that QTP uses to represent the objects in our application.
- 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.
- QuickTest stores information about the object that will help it identify and check the object during the run session.
- 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.
- Chooses a unique name for the object, generally using the value of one of its prominent properties.
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 objects are the objects that QTP recognizes.
- A test object is an object that QuickTest creates 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 the run session.
- Test Object are used by QTP to identify an object in the AUT during playback.
- The test object property set for each test object is created and maintained by QuickTest.
Run Time Object
- Run Time objects are the objects that actually exists in the application.
- A run-time object is the actual object in your Web site or application on which methods are performed during the run session. When you perform an operation on your application while recording.
- Run time objects are the ones that are mapped by TO's when the test is run.
- The run-time object property set for each run-time object is created and maintained by the object creator.