Using Global Parameters with a URL
Posted: Mon Nov 04, 2013 10:17 am
I am currently building tests to test our web application. At present the tests are only running on my box and connecting to my server but we will shortly need to move them to test on multiple servers. All these servers run the same application but slightly different versions or hardware specs to test different aspects.
I've already modified the repository to use a variable for the top level DOM thanks to some help (http://www.ranorex.com/forum/posting.ph ... 16&p=21655). This means I can easily set or pass the value into the tests so that Ranorex can find the items on each box.
Now I want to update the step inside the test which opens the website. At present i have a step to open the browser with the following URL:
https://testappserver1/app/login/login.aspx
What I want is to use the global parameter I've got within this URL. Something like:
https://$testDomain/app/login/login.aspx
where $testDomain is set to 'testappserver1'.
Is this possible to do as I can't work it out?
Thanks in advance!
I've already modified the repository to use a variable for the top level DOM thanks to some help (http://www.ranorex.com/forum/posting.ph ... 16&p=21655). This means I can easily set or pass the value into the tests so that Ranorex can find the items on each box.
Now I want to update the step inside the test which opens the website. At present i have a step to open the browser with the following URL:
https://testappserver1/app/login/login.aspx
What I want is to use the global parameter I've got within this URL. Something like:
https://$testDomain/app/login/login.aspx
where $testDomain is set to 'testappserver1'.
Is this possible to do as I can't work it out?
Thanks in advance!