Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


difference between GetRoProperry and GetToProperty.and
where we've to use exactly those properties

Answers were Sorted based on User's Feedback



difference between GetRoProperry and GetToProperty.and where we've to use exactly those prope..

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

difference between GetRoProperry and GetToProperty.and where we've to use exactly those prope..

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

difference between GetRoProperry and GetToProperty.and where we've to use exactly those prope..

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

difference between GetRoProperry and GetToProperty.and where we've to use exactly those prope..

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

difference between GetRoProperry and GetToProperty.and where we've to use exactly those prope..

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

Post New Answer



More QTP Interview Questions

Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha

2 Answers  


What is the Risk Analysis? Waht types of risk analysis are there?

1 Answers  


suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test each window? i.e. how qtp indetifies these objects separately?

7 Answers   Wipro,


What are the technics follow in writing VB script?

0 Answers   CTS,


How to create runtime property for an object?

7 Answers  






With out using the task manager,how to close the application using vbscript and what is the statement?

1 Answers  


In QTP how can we recognize objects Without using Object Repository?

3 Answers   IBM, Wipro,


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

0 Answers  


in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do

2 Answers  


What are the versions of qtp,What are the differences b/n them?

1 Answers   TCS,


You say it is a bug but developer say it is not a bug then what will you do?

6 Answers   Hewitt, Tech Mahindra,


How will you send values to a cell in a webtable using QTP?

2 Answers  






Categories