Changing URLs when switching environment
Here is the scenario:
1. In ReadyAPI, I have created couple of tests containing HTTP requests with some API calls;
2. In ReadyAPI, I created a new environment;
3. Run the tests to the default environment (created at step 2);
4. In ReadyAPI, I created another environment;
5. Selected the new environment in environment dropdown selection box;
6. Now the tests should run against the new environment (against different API names);
example:
url for environment 1: o1
url for environment 2: o2;
when I selected the new environment the calls should be done to urls defined in the environment,
How to set up this scenario ?
Currently the tests are fixed to the original environment, when I change the environment the urls should be updated, but how to define this in environments editor?
Thanks for help.
What to do to fix that?
Hi nmrao ,
thanks for your reaction.
Attached the screenshots.
I have just found a "workaround": by defining a Custom Property (server) in the Environments settings (see 3rd screenshot), and by implementing a referense to the custom property (${#Project#server}) in the URL, I have got it working (switching environment results in changing URLS).