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

i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1575


what is meant by source control?

1668


What are the different recording modes?

537


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1469


Did QTP prove efficient for your project? Yes or No, explain?

6089






Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2032


What is use of object spy?

586


hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

1731


What is action split and the purpose of using this in qtp?

515


what is the latest version of QTP? Main difference between 9.2 and 10 version

1514


Explain object spy in qtp.

560


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

1536


How to use the object spy in quicktest professional 8.0 version?

518


What is the descriptive programming?

1485


What is checkpoints for quicktest professional?

516