05-18-2012, 08:03 PM
I wrote a script that points to my QA environment URL; it works great. I assume I can use the same script to point to my PROD environment URL simply by using parameterization.
I added an "Environment" column to the Data Table with two values; the URL for QA and the URL for PROD.
I started by adding a description property to each Page object (via Object Repository) and parameterize the "url". When I started this I quickly found this could take quite awhile and thought there might be a better way; is there?
In addition, I have close to 70 actions, each of which uses a "Page" and "Page 2" object. Hopefully, there is just one place where I can switch the URLs for these two objects: Is there? Is the answer to use user-defined environment variables, i.e. one for QA and one for PROD?
Thanks for any helpful tips.
I added an "Environment" column to the Data Table with two values; the URL for QA and the URL for PROD.
I started by adding a description property to each Page object (via Object Repository) and parameterize the "url". When I started this I quickly found this could take quite awhile and thought there might be a better way; is there?
In addition, I have close to 70 actions, each of which uses a "Page" and "Page 2" object. Hopefully, there is just one place where I can switch the URLs for these two objects: Is there? Is the answer to use user-defined environment variables, i.e. one for QA and one for PROD?
Thanks for any helpful tips.