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
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.
what is stepin & stepout?
Difference between action & Reusable action?
How to get the particular property value?
What is QTP scenario.
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
Explain the use of action split in qtp?
What is the script for database check point, bitmapchek point, regular expression ?
Explain the concept of how quicktest professional (qtp) identifies object?
What are the different properties of an web object
How the exception handling can be done using quicktest professional?
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
Does Low-level recording capture mouse movements?
Is virtual object supported in low level recording mode?
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>.