how can i parameterize the url property (for all the pages and frames) in object repository?
I have differnt urls for diff test environments like http://qat1, http://qat2, http://uat1, http://int1, etc.
I have the OR with urls set to qat1. I want to parameterise the url property depending on the env I work.
Will OR parameterisation work here? how can i do that
thanks in advance
Are you using a shared repository?
Why dont you use a common reusable action for login? If your problem is to handle a parameterized url for your scripts you could have a login reusable action and parameterize the url
Check the configure value area of the Object Repository dialog box
With Best Regards
Seshi, this can be done using an XML file associate to the OR.
you can also look browser env variable in help file.
- One thing you can't recycle is wasted time -
thanks for all the response.
I use a shared Respository.
I need to parameterise this not just for logiing in to the application but while executing the scripts too. My pages are identifed by "name" and "url" properties.
for eg: in env1, my url will be http://qat1.com and in env2 it will be http://int5.com
After i login, when i want to run my script, the page should get identified irrespective of the url. I have created my OR with the Env1 url to the pages.
When i want to run the script in other than env1, my page url property should be set that environment's url. other wise my script will not recognize the page and its objects.
I am able to retrieve all the page urls at runtime using "Mercury.ObjectRepositoryUtil" I have to manipulate the url now.
I want to know how to set the new url to the page in OR and save it before i run actual script..
How can I do this with the xml file? do i need to overrite the file every time i run the script?