Hi. plz expalin abouit SetToProperty, SetRoProperty,
GetToProperty, GetRoProperty,GetToPrperties. with examples.

Answer Posted / prathyusha

We don't have any SetRoProperty in QTP

We do have only SetTOProperty,GetRoProperty,GetToProperty,GetToProperties.

SetToProperty-- is used to update the property value of a test object but that updation will be only temporary.
B().P().WebButton().SetToPropery "Name","OK"

GetRoProperty-- Is used to get the property value of RuntimeObject
msgbox B().P().WebElement().GetRoPropery("inner text")

GetToPropery-- To get the property value of test object
B().P().WebEdit().GetToProperty("value")

GetToProperties-- To get the property values of all test object.It returns the collection

set allprops=B().P().webedit().GetToProperties
msgbox allprops.count

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1711


what is stepin & stepout?

1407


Difference between action & Reusable action?

674


How to get the particular property value?

599


What is QTP scenario.

1717






action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1619


Explain the use of action split in qtp?

551


What is the script for database check point, bitmapchek point, regular expression ?

1542


Explain the concept of how quicktest professional (qtp) identifies object?

565


What are the different properties of an web object

1418


How the exception handling can be done using quicktest professional?

530


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1432


Does Low-level recording capture mouse movements?

577


Is virtual object supported in low level recording mode?

609


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1528