How to create runtime property for an object?

Answers were Sorted based on User's Feedback



How to create runtime property for an object?..

Answer / arunsingh

Hello Mr Jaydev,

There is no such kind of method (Set ROProperty)in QTP.

Is This Answer Correct ?    7 Yes 0 No

How to create runtime property for an object?..

Answer / prasad

There is no such method like SetRoProperty()

Is This Answer Correct ?    2 Yes 0 No

How to create runtime property for an object?..

Answer / thirumala reddy

By using "SetToProperty" you can do that

for example if any object property is changing during runtime our test will fail, to avoid that we can use SetToProperty.

e.g. if any WebEdit "name" property is changing then

Browser("xxx").Page("yyy").WebEdit("zzz").SetToProperty("name", "new value of name")

and this value is valid for that run session only (during runtime) after that that property will remain the property in the object repository

if any queries plz mail me
a.thirumalareddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No

How to create runtime property for an object?..

Answer / prasad

there are three Methods like
For Test Object(TO)
1. GetToProperty()
2. SetToProperty()

For Runtime Object
1.GetRoProperty()

First thing is that every object are treated as the Test
Object(TO) by QTP.

ex.
Suppose u r working with "OK" button. so all the properties
and logical name of the "OK" button will be Stored in
OR(Obj. Repos.)Here it will be treated as TO.When QTP
execute the script it will search the "Ok" button based on
its properties and logical name.In this case it will be
treated as RO. So i don't this that it is needed to create a RO.

Please make me Clarify against it........if any

Is This Answer Correct ?    1 Yes 0 No

How to create runtime property for an object?..

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

How to create runtime property for an object?..

Answer / narendra

we can use

browse().page().setToproperties().
we can set property and a value to an object

Is This Answer Correct ?    0 Yes 1 No

How to create runtime property for an object?..

Answer / jayadev acharam

Example:
Browser("abcd").SetROProperty("abs_x",158)

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More QTP Interview Questions

There is web page with the webtable,this contains some data, how do you manipulate the data.

2 Answers   Tech Mahindra,


What is Object Spy?

8 Answers  


What is meant by Repository?

7 Answers   ALFiNE IT Solutions, Four soft,


Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)

2 Answers   IBM,


Hi, I have weblist which contains the data like Design change,admin edit and cost saving etc.. User doesn't know the values existed in weblist. Now the user has to select the right value from the list otherwise the test will fail. Pls help me "To select the correct value from the list"

1 Answers  






hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.

3 Answers  


how many script you will wright in a year ? i told it's depends on the proj..and 'n.no of ... but he forced me to tell some num. or avg .....how many i suppose to tell..??and do a favor per day how many script don't thing it's repeated question or common ...help me post a ans...thanks for advance

1 Answers   HCL,


how to invoke the web application through script in qtp

11 Answers   IBM,


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

0 Answers  


I have to do testing for XML file using QTP. 1. I was given a sample XML, I had to edit that with my actual data and had to make a new XML-- this part is completed, I did that. 2. Now I have to copy the exact contents of that XML file and have to paste it in a web application as a request message for web appliaction processing, using QTP. So I am unable to copy and paste it in web application, please help me out.

1 Answers  


In an interview what r the questions asked in qtp related project? pls any answer this question?

3 Answers  


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

0 Answers   BirlaSoft,


Categories