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 |
After creating testcases, how do you start testing in QTP? what methodology will follow?
7 Answers Actran, American Well,
how to retrieve data from flight resevation->reports
what is parameterisation?
What is expert view and keyword view?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
dears, I have one question for QTP.If my software is english and defined objects is english name. But, if my software has support MUI, under this case that my objects in the QTP can't work, because the QTP can't catch the objects name. In this case, is anybody know how to solve this problem? Thanks a lot.
QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative records from datatable.pls can any one answer it?
You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't recognized and also Repository is not having Webtable information. In this case How to find RowCount and Coloumn Count?
3 differences between QTP & Winrunner?
Please explain me in detail! How to handle runtime errors in QTP useing recovery senario or with out scenario
Use of Multiple Actions in QTP?
How to return a value from a fn, if it has more than one value how to return