Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Answers were Sorted based on User's Feedback



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

Answer / kamesh

As per my Knowledge ....There is no SetORProperty in QTP

SetToProperty: This is used for set the values to any
property of object at run time. This is not effected to
Runtime datatable.

GetTOProperty: This is used to get property values which is
set the value to the object using SetTOPropery at run time

GetORProperty: This is used to get the any property values
of any object in run time

Plz let me know if I wrong..
jnkrao@yahoo.co.in

Is This Answer Correct ?    10 Yes 1 No

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

Answer / raghavender

SetToProperty
It is used to set a vlaue to the property of an object
which is there in the Repository.

eg: browser("").page().webbutton("").setTOProperty
property,value

GetROProperty
This property is used to get the run time proerty of an
object.

eg: strval = Browser("").page("").webbutton
("").getROproperty("name")

GetToProperty:
This property is used to get the particular property value
of an object which is present in the repository.

Eg:strval = Browser("").page("").webButton("").getTOproperty
("name")

SetROProperty is not existing in QTP.

Is This Answer Correct ?    7 Yes 1 No

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

Answer / surya

Yes !st answer is wrong ....In QTP we hav only

GetToProperty
SetToProperty
GetRoProperty

Is This Answer Correct ?    4 Yes 1 No

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

Answer / 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

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

Answer / umasankar

Objects in QTP are of two types.
1) Test Objects (Objects resided in Object repository, not
the exact replica of the objects resided in your
appliation. Qtp is having its own pre-defined set of
classes to identify the object(s), using the QTP classes an
object is added to repository)
2) Runtime objects (these are the exact replica of the
objects resided in your application).

GetRoProperty ---- This method is used to retrieve the
value of a runtime object (may get change during runtime)

GetToProperty ---- This method is used to retrieve the
value of test object resided inobject repository (wont
change).

SetToProperty --- This method is used to set/change the
value of the object resided in object repository (change in
the property won't reflect change(s) in the property of
runtime object)

SetRoProperty --- Not advisible to use. change in the
property of actual object may lead(s) to wrong unnecessary
results.

Is This Answer Correct ?    0 Yes 1 No

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

Answer / thimma reddy

SetToProperty - Sets the value of the property from the
output file(Ex:Excel) in your respestive text box for
current applciation.

SetRoProperty - Sets the values of the property at Runtime.

GetRoProperty - Retrives the value from the applciation and
it will store in your local sheet.

GetToProperty - Retrives the value of the runtime data of
text.

Is This Answer Correct ?    1 Yes 14 No

Post New Answer



More QTP Interview Questions

Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

0 Answers  


In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.

1 Answers  


Can we use same virtual objects in many number of tests?

1 Answers   TCS,


Hello, Can we capture only the labels of the web page in the object repository. If yes, then how. Actually my scenario is: I have to capture all the label of mercury site http://newtours.mercuryinteractive.com/tour/mercurypurchase. php. and want to copy all these labels in the notepad. So,please help me how to do this all. Thanks in advance, Gaytri

4 Answers  


what is error and fault in terms of software quality?

0 Answers   TCS,






WHAT IS THE SIZE OF OBJECT REPOSITORY USING IN YOUR COMPANY? Can any body tell me answer of this quation........

11 Answers   Ness Technologies,


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

0 Answers   Infosys,


in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser

4 Answers   Verizon,


how to click the link in webpage by using QTP Script????????

3 Answers  


in flight reservation ex once u login, u go into next window where we hav an option of new, open and help etc.. how to fetch those options and to go to respectiv tab accordingly using qtp.. plz let me knw answer for tis as early as possible. Thanks in advance... asha

1 Answers  


How to handle dynamic objects in quicktest professional?

0 Answers  


Is manual Testing replacement of automation testing?Which types of testing we can not do in automation testing but can do in manual testing?

1 Answers   Hewitt, Wipro,






Categories