what are SetToProperty, SetROProperty,GetToproperty
scripting?
Answers were Sorted based on User's Feedback
Answer / rekha
SetTOProperty – Basically is used to modify the properties
of current Test Object during run session without
permanently modifying the Properties. In short the changed
Properties would be applicable for the present run Session
alone.
Object.SetTOProperty Property, Value
GetTOProperty – A GetTOProperty method is used to retrieve
the value of a Test Object Property. Basically during a Run
Session, incase we need to find out the Property value for
any TestObject we use this method. It does not consider the
properties of the Object as displayed in the Application at
runtime.
VariableName = Browser(“”).Page(“”).WebEdit
(“”).GetTOProperty (“Name”)
A GetROProperty method is used to retrieve the Runtime
properties of an Object as displayed in an application. We
can retrieve the Current value of a Property for
TestObject. It is used to retrieve only Runtime properties.
A Set Property can be used to set a value to any variable
or set the Property value of any Object.
| Is This Answer Correct ? | 11 Yes | 3 No |
Answer / vince.shu
There is a Object Repository in QTP for every test we
created, Every Object Repository has Test Objects for QTP
to recognize Objects we recorded in test.
every test object has properties
like "width","title","text"....... and Objects also have
Run time Properties when test is running.
The Get/SetToProperty means we can Get/set the Test
Objects' Property in Object Repository.
The SetRoProperty means we can set Object's Runtime Property
| Is This Answer Correct ? | 3 Yes | 0 No |
hi. I Am working in Small IT company as Test Engineer. But am looking for change. I have 2+yrs experience, but my problem is MCA 72%, remaining all are Second Division. plz give solution for my problem.am elgible for MNC's or not. if not plz give suggestion............ already i forwarded my resume to lot of MNC's but. I didn,t get CAL............ plz give any suggestion.
in qtp how can we do test when the build is not ready
How does you pass optional arguments in qtp?
1.How recognize QTP Dyanamic Image? (suppose tha wedpage contains 3 logos..1 square 2.circle 3.rectangel)there changing at same position how to capture that)
how can i call an external action,which is not added external action of an action?
What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?
How to run a script from lines 50 - 100 alone (if the script has 1- 200 lines of code)?
What are the different recording modes?
What is vulnerability?
How do u do batch testing in WR & is it possible to do in QTP, if so explain?
How to return a value from a fn, if it has more than one value how to return
Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?