Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

2 Answers  


Can any body help me to write descriptive program to find a cell value (say 2 row, 3rd column) in a datatable which is creating dynamically and statically

0 Answers  


How are actions and functions different in QTP?

0 Answers  


What are default add-ins in qtp?

14 Answers   Semantic Space,


Does QTP work in UNIX environment

5 Answers   BirlaSoft, C1 India,


WHAT IS A TEST STRATEGY & WHAT IS THE DIFFERENCE BETWEEN TEST STRATEGY & TEST PLAN?

21 Answers   ABM, AZTEC, CTS, Infosys, Nihilent, Orange,


what is TOM in qtp?

5 Answers   Accenture,


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

0 Answers   IBM,


Which MS Excel formulas are possible to use in the DataTable? I am searching a formula for searching a field in the datatable

3 Answers   HP,


Hi Friends... What you are doing in Regression Testing and how many test cases you ran in regression testing... suppose there is 1000 test cases is there how many test cases again you run .. 1000 test caes r how many... thanx in advance..

6 Answers  


How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.

2 Answers   Accenture, CSC,


When we parameterise some field ex. Textbox is there any way that we can generate a specefic number of random values (For alphabetical values if possible) instead of manually entering values in the data table

2 Answers  


Categories