what are SetToProperty, SetROProperty,GetToproperty
scripting?

Answers were Sorted based on User's Feedback



what are SetToProperty, SetROProperty,GetToproperty scripting?..

Answer / rekha

SetTOProperty – Basically is used to modify the properties
of current Test Object during run session without
permanently modifying the Properties. In short the changed
Properties would be applicable for the present run Session
alone.

Object.SetTOProperty Property, Value



GetTOProperty – A GetTOProperty method is used to retrieve
the value of a Test Object Property. Basically during a Run
Session, incase we need to find out the Property value for
any TestObject we use this method. It does not consider the
properties of the Object as displayed in the Application at
runtime.

VariableName = Browser(“”).Page(“”).WebEdit
(“”).GetTOProperty (“Name”)



A GetROProperty method is used to retrieve the Runtime
properties of an Object as displayed in an application. We
can retrieve the Current value of a Property for
TestObject. It is used to retrieve only Runtime properties.



A Set Property can be used to set a value to any variable
or set the Property value of any Object.

Is This Answer Correct ?    11 Yes 3 No

what are SetToProperty, SetROProperty,GetToproperty scripting?..

Answer / vince.shu

There is a Object Repository in QTP for every test we
created, Every Object Repository has Test Objects for QTP
to recognize Objects we recorded in test.

every test object has properties
like "width","title","text"....... and Objects also have
Run time Properties when test is running.

The Get/SetToProperty means we can Get/set the Test
Objects' Property in Object Repository.

The SetRoProperty means we can set Object's Runtime Property

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More QTP Interview Questions

In QTP , Test Director combination . what is the role of Test Director? How QTP Launching QTP in T.D ? If it is Winrunner possible. but QTP How it is possible?

1 Answers   IBM, TCS,


Tell when we call the function? tell with example.

1 Answers  


Hi, this is venkatesh. Q: I have 10 files in a folder(say D:\). Out of which there are some .txt, .xls, .doc. I want to know how to get the count of each file using qtp? If U have any ans, plz write script for that...

4 Answers   EDS,


Suppose u write test case in Excel sheet . how u open that test case in Test Director?

4 Answers   Ordain Solutions,


Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..

3 Answers   Sony,






How to creating an output value using quicktest professional (qtp)?

0 Answers  


Suppose i have given 10 test cases all the test cases should be automated?

3 Answers   NTT Data,


How to display the first 3 letters in these "ABCDEFGH" using qtp script?

6 Answers   Oracle,


if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail

2 Answers   Quinnox,


How Does Run time data (Parameterization) is handled in QTP?

4 Answers   IBM,


How many ways we can parameterize data in QTP ?

9 Answers  


How many add-ins comes by default with quicktest professional?

0 Answers  


Categories