Friday, June 19, 2009

Test and Run-time Object in QTP?

What is the difference between Test Objects and Run Time Objects ?
Test objects are basic and generic objects that QTP recognize. Run time object means the actual object to which a test object maps.

Can i change properties of a test object?
Yes. You can use SetTOProperty to change the test object properties. It is recommended that you switch off the Smart Identification for the object on which you use SetTOProperty function.

Can i change properties of a run time object?
No (but Yes also). You can use GetROProperty(”outerText”) to get the outerText of a object but there is no function like SetROProperty to change this property.
But you can use WebElement().object.outerText=”Something” to change the property.

No comments:

Post a Comment