Recent Post

QTP @ Objects Classifications

QTP @ Objects Classifications

Object:
·         An Object is the one which exists.
·         Objects are identified by their logical names and physical descriptions.
·         With respect to any Web Applications, Objects are like Browser, Page, Frame, Table, Image, Text, WebButton, WebEdit, WebList and so on.

Test Object
·         Test Objects are those objects which are identified, captured and stored in the QTP's Object Repository (OR) by means of their logical names and physical descriptions
·         Logical names and Physical descriptions are meaning by objects names and their properties)
·         And these Test Objects are either manually added to QTP's Object Repository or they are indentified, captured and stored during recording time.
·         These Test Objects properties are retrieved and manipulated by GetTOProperties / GetTOProperrty / SetTOProperty methods
·         GetTOProperties / GetTOProperrty / SetTOProperty methods deal with QTP’s Object Repository > Objects properties / descriptions

Runtime Objects
·         Runtime Objects are those objects which resemble the Test Objects but then they may or may not change their properties during execution time ( RunTime)
·         QTP, during execution time / RunTime, uses the Test Objects properties (which are stored in QTP’s Object Repository) to identify them and to perform the methods / operations on them.
·         Objects descriptions / Properties are like : Class, Name, Text, Type, Value and so on.
·         Methods / Operations are like: Click, Activate, Set, SetSecure,
·         These RunTime Objects properties are retrieved by GetROProperty method
·         GetROProperty method deals with the AUT > Objects at the RunTime only.


Test Objects & their properties
·         Test Object  and their properties are identified , captured and stored in QTP's Object Repository at Recording time
·         QTP stores Object as Test Object, determining the class it fits.
·         For each test object class, QTP learns a list of mandatory properties.
·         Checks if the description learnt is enough to uniquely identifythe object.
·         If it is not, QuickTest adds assistive properties, one by one, to the description until it has a unique description.
·         If, in case, these properties are not sufficient to indentify an object, then QTP  takes the additional Index or Coordinate properties to identify the objects
·         And, by incase, if QTP fails by all the way using above mechanism to identify the objects then the last trial is through the QTP’s sixth sense, called as Smart Identification.


Run Time Objects & their properties
·         Searches for a run-time object that exactly matches the description of thetest object
·         It expects to find a perfect match for both the mandatory and anyassistive properties of test object
·         Uses Smart Identification mechanism to identify an object, if the recorded description is not sufficient or not accurate.

0 comments:

Post a Comment

GAReddy @ OneTestingCenter @ All Articles