Forum Discussion

AhamedShaik's avatar
AhamedShaik
Occasional Contributor
8 years ago
Solved

How to change resource path for different environments.

Following is my scenario: Using Ready API.

 

I'm working with  different environments ( dev, test & staging) the requirement here is utilizing the same test scenario for different environments.

 

According to my project, the resource path is differ based on the environment. 

For example for dev environment:  http://dev.company.com /rs/hotel/V1/shopping  the resource path is different for test environment example: http://test.company.com /APINH0I/V1/shopping

 

I can able to change the endpoint http://test.company.com to http://dev.company.com when I chose the environment option from the ready api tool. Changing the resource path going in the project is effecting all the resources, with this I can't able to execute the same scenario for two different environments. ( don't want' to duplicate the test suite, it will be huge for maintenance).

 

Could you please recommend or suggest any workaround to handle this scenario.