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 |
How to retrieve alpha bate from the alphanumeric string with special character.
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
How the exception handling can be done using quicktest professional?
where is the bitmap checkpoint be saved
can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object in reserved object ok....here i have some sets of values ...now i want to retrieve the item i done too ok.......here my question is now i saved the test and close the qtp tool ,again i opened now i retrieve the same item in the dictionary is it possible ????. friends when i try to do this i am getting empty message box i mean no value will be retrieved ......ans me any one plz...
How to load a object repository(using VBScript) ... very urgent....
What is system testing and what are the different types of tests you perform in system testing?
Will down time for server and content maintenance/upgrades be allowed? how much?
1. Can anyone help me with recovery scenarios, each type with examples and also what is on error resume next?
How can we QTP Scripts in xml format? is there any way to do so?
How many types of recording facility are available in quicktest professional?
What r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP)