How QTP works or recognize the object?
Quick Test stores the description/properties for application objects in a file called object Repository. As you start recording your test. UFT will add an entry for each item you interact with.
Each object Repository entry will be identified by a logical name(determined automatically by UFT), and it will contain a set of properties like name, type, classname etc that uniquely identify each object.Each line in the UFT will contain a reference of the object that you interacted with, a call to the appropriate method like set,click) and any parameter for that method(such as the value for a call to the set method).The reference to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.
Diagram refer the notes
Test object Class- 1.Properties 2.Method.
Test Object Model:-Test Object Model is a set of object types (i.e. copy of Application object) that UFT uses to represent the object in our application.
Or
1. Test Object -If you think logically then the name itself is describing everything, "Test object"
means the application object which we are going to test are the Test object.
or even we can say that the objects which are stored in the object repository at the time of recording are called Test objects.
Example of test object - Text box, List Box, radio button, label, link, button.
2. Run time objects- The application object which you see at the time of running the UFT is called
Run time objects.
Quick Test stores the description/properties for application objects in a file called object Repository. As you start recording your test. UFT will add an entry for each item you interact with.
Each object Repository entry will be identified by a logical name(determined automatically by UFT), and it will contain a set of properties like name, type, classname etc that uniquely identify each object.Each line in the UFT will contain a reference of the object that you interacted with, a call to the appropriate method like set,click) and any parameter for that method(such as the value for a call to the set method).The reference to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.
Diagram refer the notes
Test object Class- 1.Properties 2.Method.
Test Object Model:-Test Object Model is a set of object types (i.e. copy of Application object) that UFT uses to represent the object in our application.
Or
1. Test Object -If you think logically then the name itself is describing everything, "Test object"
means the application object which we are going to test are the Test object.
or even we can say that the objects which are stored in the object repository at the time of recording are called Test objects.
Example of test object - Text box, List Box, radio button, label, link, button.
2. Run time objects- The application object which you see at the time of running the UFT is called
Run time objects.