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

how to generate numbers in between to numbers suppose numbers in between 500 to 1000 in sequencies using vbscript

1 Answers  


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

0 Answers  


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

0 Answers  


Synchronizing test

3 Answers   Wipro,


wt is the xtension of the QTP result view file?

4 Answers  






How to export quicktest professional (qtp) results to an .xls file?

0 Answers  


can we change the name of a check point? when will you start writing testcases? do you follow any methodology for writing test scripts? qtp is key word driven testing or data driven testing?

2 Answers  


I want to do QTP Certification what is the pattern of Question paper.

0 Answers  


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

0 Answers   IBM,


What are the automation metrice in your project?

0 Answers   Accenture,


Hi guys, Please suggest some thing these points are correct???, Is UFT 12 and QTP outdated ??? and also VBscript is also deleted/Removed from QTP ???? Javascript is added latest and tool name is called JFT ??? From this year ??

2 Answers  


What is parameter in qtp?

0 Answers  


Categories