difference between GetRoProperry and GetToProperty.and
where we've to use exactly those properties
Answers were Sorted based on User's Feedback
Answer / sandeep guttikonda
GetROProperty and GetTOProperty both comes under methods in
QTP.
1) GetROProperty: We can you this method to capture runtime
property value into variable.
OR
We can use this method to capture the object property value
from the application
Code:
For window Application:
Variable = Window("Window Name").Dialog("Dialog
Name").Object("Object Name").GetROProperty("Property Name")
For Web Application:
Variable = Browser("Browser Name").Page("Page Name").Frame
("Frame Name").Object("Object Name").GetROProperty
("Property Name")
Example: To know the whether the push button is enabled or
not during runtime.
Variable = Window("Flight").Dialog("Login").Winbutton
("Start").GetROProperty("Enabled")
Here if the button is Enabled during runtime the Variable
is asgined with "True" else "False".
2) GetTOProperty: We can you this method to capture Test
Object property value into variable.
OR
We can use this method to capture the object property value
from the Object Repository.
Code:
For window Application:
Variable = Window("Window Name").Dialog("Dialog
Name").Object("Object Name").GetTOProperty("Property Name")
For Web Application:
Variable = Browser("Browser Name").Page("Page Name").Frame
("Frame Name").Object("Object Name").GetTOProperty
("Property Name")
Example: To know the value of Push button Enabled propety
from the Object Repository.
Variable = Window("Flight").Dialog("Login").Winbutton
("Start").GetTOProperty("Enabled")
Here it will give the value of the property that is stored
in the object repository.
Please le me know if you need further info.
Thanks.
Regards,
Sandeep Guttikonda.
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / andy
GetToProperty: returns the specific property value from the
test object properties descriptions.
GetRoProperty: returns the current property value of the
object durting the test run.
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / rida
GetRoProperty:--(Get Run Time object Property)
At the time of execution, properties of an object may
change. These properties at execution time is called
RunTime object property.
EG:- x co-ordinate of insert order button should be 125.
(OR)
In some web applications like in Naukri some of
objects are blinking that type of object is run time
(OR)
ScreenSavers.
GetToProperty:-- The property of an object at the time of
learning(recording)
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / raju
RO means: Run Time Objective
TO means: Test objective
For example one “OK” is available on one window. That
button contains for example 24 properties, particular 1 or
2 more mandatory properties stored into the OR.
If u wants to know “OK” button all objective properties
using GetRoProperties.
If u wants to know “OK” button which are stored into the OR
using GetToProperties.
according to my knowledge this is correct.
Raju
9823257761
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / hari
GetTOProperty: Gets the Test Object Property i.e., it gets
only the mapped object properties value from the OR.
GetROProperty: Gets the Runtime Object Property i.e., it
gets any of the object properties value from the complete
list of properties available for that particular control.
| Is This Answer Correct ? | 5 Yes | 0 No |
How do you create regression test packs?
Hi, how can we retrieve a specific value from Excel Sheet (Not datatable. for externel file).i mean to say from .xls file. and also tell me from xml file and .doc file. and how can u parameterize ur script from .xls file.(Not data table).
What is the QTP test frame work?
Your roles and responsibilities and daily tasks? (As automation tester)
If u r using descriptive programming to identify the object where do u write the script for those objects? do u write it in the expertview? plz do answer its urgent thanks advance.
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
Define Error Pane of UFT?
What is fragmentation and paging?
How to add a runtime parameter to a data sheet?
what are the disadvantages of qtp? can linux support qtp9.2? how could get web address throu vbscript?
Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on
Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J