1.

What do you understand about GetRoProperty, SetToProperty and GetToProperty in the context of UFT?

Answer»

GetRoProperty: GetRoProperty is a built-in method for retrieving the object property's runtime value. There are four steps to using the GetRoProperty method.

  • In the Object Repository, make a note of the object on which you wish to utilise the GetRoProperty method.
  • Identifies the run-time attribute that could be used for the RECORDED item. Object Spy is a tool that you can utilise.
  • Retrieve the identified Run-time property using the GetRoProperty method and save the value in a variable.
  • Use this figure to make more deductions.

SetToProperty and GetToProperty: SetToProperty and GetToProperty are two methods for changing a property's value.

  • Let us consider a Web BUTTON stored in the Object Repository.
  • UFT PRODUCES a replica of this object called Test Object and compares it to the Run-Time Object when the test is run.
  • You may get the value of a property of Test Object using GetToProperty.
  • You can alter the value of a Test Object's property with SetToProperty.
  • This test object, as well as any changes you make to the object properties using the SetToProperty method, is DELETED when the test is finished.
  • When the test is re-run, a new copy of the test object is produced in the object repository with the original property values.


Discussion

No Comment Found