How to create runtime property for an object?
Answers were Sorted based on User's Feedback
Answer / arunsingh
Hello Mr Jaydev,
There is no such kind of method (Set ROProperty)in QTP.
| Is This Answer Correct ? | 7 Yes | 0 No |
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 |
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 |
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 |
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 |
Answer / jayadev acharam
Example:
Browser("abcd").SetROProperty("abs_x",158)
| Is This Answer Correct ? | 0 Yes | 8 No |
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
Explain the types of object repositorys in qtp?
Hello, Can we capture only the labels of the web page in the object repository. If yes, then how. Actually my scenario is: I have to capture all the label of mercury site http://newtours.mercuryinteractive.com/tour/mercurypurchase. php. and want to copy all these labels in the notepad. So,please help me how to do this all. Thanks in advance, Gaytri
Does QTP recognize two diff browser's at a time..?if possible how..? Is it possible run scripts on Mozilla which are recorded on IE..?..How..?
12 Answers IBM, Semantic Space, TCS,
What is exact difference between “while” and “do while” in QTP ?
how to write regular expression for Date field?
what happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?
There is a very good institute for Automation Testing using QTP.For more details please visit jbslearnings.com.
How to call script1 into script2?
Tell me few important difference Between QTP and WinRunner?
How does QTP identifies the object in the application Mainly objectives are three type's OF PROPERTIES namely
in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do