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

is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE

44 Answers   InterGraph,


what is the Descriptive Progarmming? how it is help to testers in QTP?

4 Answers   TCS,


How to find operating system information using the qtp script?

0 Answers  


What test you perform mostly? Regression or retesting in your testing process?

0 Answers  


images are dynamically changes how to compare two images with out using the bitmap

0 Answers   Hexaware,






In QTP, while launching qtp application from startup.. we find Advanced Keyword-Driven Testing caption.. wht is that...Anybody can pls explain it. Thanks in Advance

1 Answers  


Can you list some technologies that support qtp?

0 Answers  


How you automate test scripts

1 Answers   Novartis,


the presentation layer of my application is built using VB 6.0 and a series of C++ dlls and components. We do not use Java, VB.Net, C## or any other component that can be decompiled. We are automating the application using HP Quick Test Professional. It is not reconginizing the combo boxes, tabs etc.... Could you please suggest, whether QTP supports C++ dlls and components or not...if yes, could you please guide me, how to overcome this situation. Can we install any special add-ins for this C++? .When we are performing the recording/execution, the application becomes very slow. Your quick response will be highly solicited in this regard.

1 Answers   Wipro,


what is localisation testing and globalisation testing? what is the difference between them?

1 Answers   CDC Software,


give me an example where u used good judgement and logic in solving a problem

0 Answers  


hi all i have qtp 9.0, Active screen is not working means after recording script snap shots not displayed in Active screen window. i have all ready check all setting means Tool...>option...>Active screen...>Default Level button is disabled. Is there other setting is remain to set Pls help i m new for qtp

1 Answers  


Categories