How to create runtime property for an object?

Answer Posted / vistaraj

i agree to thirumala reddy.
to create runtime property for an object, we have to use
SETTOPROPERTY as following

'Set the Text property for 7 as Server
Window("Calculator").WinButton("7").SetToProperty
("text","Server")

Now check if the object has created runtime property or not
by GETTOPROPERTY

strText=Window("Calculator").Winbutton("7").GetToProperty
("Text")

msgbox "strText"

See that "Server" is displayed

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To which environments does quicktest professional (qtp) supports?

764


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1547


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2444


is there any addin for remedy user application

1963


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1732


We stored into the objects OR and then write the scripting

1746


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

785


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1701


What are the trigger events in qtp?

792


I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2541


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1870


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1970


What is recovery scenario manager? When you go for recovery scenario manager?

795


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1514


Why bpt?

798