what are SetToProperty, SetROProperty,GetToproperty
scripting?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How qtp recognizes the object?

672


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1359


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1688


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

1833


what function you write to do database testing with the help of qtp?

1360






How can get count of list box?

635


what is vmodel?advantages and disadvantages of vmodel?

1616


What are the advantages of parameterization ?

598


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1526


What is object repository in qtp?

561


How does qtp identify objects in the application?

587


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1445


How to find operating system information using the qtp script?

584


What is post recovery scenario?

1652


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2802