HP QTP Interview Question 21: Explain the difference between GetROProperty and GetTOProperty?

The short explanation would be GetTOProperty is the property value at record time GetROProperty is the property value at run time, but as we all know during interview it would be wise to provide more details description on any interview question and preferably with example. Usually QA engineer may use GetTOProperty in HP QTP 9.5 to test object properties. It means test properties that HP QTP 9.5 saves in the object repository for correct identification on the object. QA engineer may want to use GetTOProperty to compare with GetROProperty values and flag up any differences as dynamic properties. It would be better to use this method in conjunction with SetTOProperty to ensure objects with dynamic properties do not cause the test to fail.

No comments:

Common QTP Interview Questions