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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove associated function library?

938


write script for bitmap image?

1982


In qtp, how you can get the last character from a string?

948


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

2251


Does QTP record on Objects created on XWindows Environment?

2136


what is object and child object.. explain ..if possible give some example for better understanding ..

1934


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2343


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

985


What is the differences between image check point and bit map check point?

1006


Does quicktest professional (qtp) is unicode compatible?

962


can test automation improve test effectiveness?

1913


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

968


Explain types of output values?

964


How to customize qtp?

984


When to use shared and local object repository?

1012