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
Explain different type of event trigger option.
What is the default add-ins in qtp?
What are the different types of functions available in qtp and explain ?
What is qtpro?
Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.
Can we Test Welcome Screens and Process Images with QTP
What is the basic concept of quicktest professional (qtp)?
What is an optional step in qtp ?
How do you synchronization point through DP?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
How to record a qtp script ?
What are the trigger events in qtp?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
Define Environment Variable in UFT and its uses?