Tuesday, 21 April 2015

QTP - 4 - When and Why - ROProperties ??

By word ROProperties refers to the Runtime Object Properties. It seems like we are talking about some objects which are generated in runtime.Yeah....but what are runtime objects ?
Any Web-base application, GUI , Desktop application, mobile applications,etc consists of various objects. What are objects then...Objects are the units of code. Examples of objects are link , editbox , image , etc. So while creating any object the developer thinks of some properties. These properties are called the expected properties of the object. While writing Scripts or while recording the QTP captures the properties of the objects. When the scripting is done and application is stable we exeute the written scrips, it may be done in sanity or regression or before any build. While executing the scripts the objects actual properties are compared against the recorded expected properties. These properties of the object are called ROproperties(Runtime Object Properties).

Uses of GetROProperties method :

-> This method gives a flexibility to know the runtime object property and compare against the wtitten properties

->  We can also use this property with childobjects to count the number of similar objects on a webpage

-> the GetROProperty method can be used with description object in descriptive programming to identify any unique object

No comments:

Post a Comment