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 |
what is functions in qtp?i know the userdefind &bulit funation or i know that Private public function ?plz tell me what is funations in qtp?how to create a funation in qtp
Hi, I Would Like to Know which is the Best QTP Certification Training Institute in Hyd? Thanks in Advance kishan
what r the main attributes of test automation?
What is checkpoints for quicktest professional (qtp)?
Explain the difference between call to action and copy action?
Given a string variable contain a full name (last name, first name), using vbscripting, how can you extract first and last name and save them into two different variables.
hi guys, could you please prepare script for given format ? 1,1,2,3,5,8,13,21,...etc use vbscript for this...?
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
In how may ways we can use checkpoints to an application using QTP?
what r the drawbacks and limitations of QTP?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
tell me QTP standards ?plz