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

in QTP, we have options like (record and play,recording modes(normal,analog,low level),object identification,smart identification,object repository,synchronizing test,transactions,checkpoints(std,bitmap,text,text area,DB,XML,accessibility),regular expression,actions,data driving,parameter,parameterization,data tables,recovery scenario(pop up,object state,test run error,application crash). real time users of QTP, pls say and when and at what point u have used all these options ,in ur concerned project.pls give me explanation in accordance with ur real time project handled. real users pls send some time in the aboue case. if u can send the the reply through allinterview or at ref_it_ref@yahoo.co.in

1 Answers  


I have a web table,in that web table in 3rd row 4th coloumn i have a link how to click it with descriptive programming? I have a webedit without entering any value how to calculate the size of that field? I have a DB table , how to find the 5th highest salary? write query.

2 Answers   3i Infotech,


How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ENGINEER " Please send me the answer

3 Answers  


How can we display the names of the buttons in the toolbar of a webpage

1 Answers  


Hi, My problem is as follows. I recorded a script that created Object repository of each action i recorded. But later I added one more step (which was to enter data in a textfield) into the script through expert view. But as no repository for this newly added step exists in the test, my script fails. So please help me to sort this problem that how can I create object repository of a new step in an existing test. Thanks everyone

1 Answers  






How to automate the windows dialog box which is coming in the run mode? Whenever I run my scripts,I am getting dialog box ( for ex: Pls enter zipcode" eventhough I already entered the value,the dialog box pops up).I need to click it. Pls give some idea-How to automate the dialog box which is pop up in the runtime.

2 Answers  


Which functionalities of QTP used in banking project? pls any say answer?

0 Answers  


How many types of Check Point in QTP

2 Answers   R Systems,


What is the quicktest professional (qtp) testing process?

0 Answers  


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

0 Answers   RR Donnelley, RRDonnelley,


1. What is extense of Result file in QTP?

7 Answers  


Hi Friends, If you got one Bug , and you are insert that bug in bug tracking tool , and you need to attach SC's (screen shots) also. how to tae SC's , in your organization any separate tools available to take SC's. please provide Ans. its urgent... Thanx in advance

3 Answers  


Categories