I am using Ready API 1.5.0 SOAPUING.
For each enviroment, I do have two different REST endpoints. When I set up the environment, I can only give one endpoint for REST. How to give two different endpoints for same environment? Even if I set second endpoint through property, it won't work when I change the environment.
Please see an example below:
Environment A : has two different endpoints - C and D
Environment B : has two different endpoints - X and Y.
What I can image is, consideing an example below:
In the QA environment, there can be multiple servers and each engineer will use different server. And each engineer wants to run the tests against his/her server.
Is your use case is some thing like above? Pass on more details otherwise?
Thanks for reply.
I do have 2 different servers in my test environment and I am testing against both at the same time. Ex. get data from one server and run the test case with that data on different server.
I will explain it below.
Go to Projects tab. Add 'New REST Service from URI' two times using different url as you needed multiple.
Now you go to Environments, REST Services tab. You should be able to see both in one Environment.
Hope this helps.
Unfortunately this solution is not solving anything really. Yes I see two url's in my environment now. But how I can specify that for some test cases I need url #1 and for the rest url #2? There is no such way.
When I specify an environment for my test suite-- an url will be selected automatically and it is always a first url in the env list.
1. Go to Projects tab. Add all the Rest Services which you are using under one project (ex: www.abc.com and www.xyz.com). Go to Service Viewer-> Endpoints tab. Will be able to view the relevant end point URL there.
2. Go to SoapUI and create a test step for each specific service used ( ex. www.abc.com) by going to the particular Test Case -> Add Step -> Rest Request and select the relevant Rest Request from the existing rest methods(ex: www.abc.com).
3. Now add the different environments(Test or Dev) as required and define the rest service end points accordingly.
4. Choose the environment as required while running the script
Hope this helps!
Thanks & Regards,