QTP Object Identification, How
Object Identification works in QTP , Object Mandatory
Properties
Let's discuss about the how the object
identification works in Quick Test Professional. Before Starting
this, you must aware about the an object property with its worth that
is called Object Description. Actually it is used to identify the
related Object. As a Example- A WebButton property name is “name”
and value of it is “Login” together can be termed because Object
Description for that one Web Button. The term of Unique Description
implemented t finding typical Object Description for very early
Object identification
- QTP contains Object and it's values properties in related Object Repository to determine them while run time.
- An Object could have huge quantity of properties connected to it. For an example in Web based Environment any Button can have following associated properties.
- If QTP will effort and retrieve all the accessible properties of any object, i.e. Object Size Repository will bloat & execution time will increase forcefully.
- To avoid or save to this, by default QTP , doesn't store all the properties for any object but a limited typical properties for any object which definitely co-operates helps in its unique identification.
- Object Identification stored all these settings.
- In QTP From the Menu Tools > Then select Object Identification
- From Object Identification Dialog Box you can able to check drop down of all type of environment loaded and installed.
- You are able to choose an environment and QTP automatically filled the list for all the supported objects related to that environment. In the right of QTP list the property that will be stored for the related object.
- Required list is divided in to two columns i. Mandatory and ii. Assistive
- 1) This Mandatory property will store by default for this object
- 2) In such case while recording time of QTP script can NOT generate a unique description of that object it stores the assistive property
- Let's understand it better take the example of any Image. QTP always stores value of it properties i.e. image type, alt ,html tag, properties required so that it can uniquely recognize lonely it using the property alt.
- QTP stores assistive property if In case it can't generate unique description using required property ,
QTP Object Identification Mandatory Properties
- If such property help to create a unique description for the object, QTP doesn't store the name of file, i.e. height property. If property of class is not enough to generate unique description, Then QTP stores file name property . If file name property generates a unique description then QTP doesn't not store height property also & so on.
- Imagine while Record Time, QTP stored only class property
- During Run - time ,QTP can forget the differentiation between assistive and mandatory properties and compare all already recorded properties.
- Whenever any one of the available properties doesn't match its already stored value , Then definitely Script will get fail.
Android Install Apps to SD Card Default Developer vs Tester a fake competition
QTP TESTING STEPS How to Record a QTP Script
No comments:
Post a Comment