Mahesh9100
4 years agoOccasional Contributor
How create a single test suite to support multiple environment with assertion
Hi all, I am new to API automation with ReadyAPI. Great if anyone could advice me on below scenario with the industry best practices.
I have a requirement to create an API regression test suite which will supports multiple environments(Dev, UAT, Pre-Prod etc).
My question is, is that possible to create a single test suite which can be executed in different environments with assertions according to the environment if not what is the best approach?
Ex: There is an API to retrieve person data. I want same to be executed in different environments and also assert the data based on the environment and also change the request data automatically when the environment is changed.
Thanks in advanced 🙂
- Here is the thread with details regarding usage of different environments with just properties (what richie was referring to)
https://stackoverflow.com/questions/37655778/soapui-ability-to-switch-between-database-connections-for-test-suite/37659250#37659250
NOTE: the above approach doesn't require to use Environments feature yet it is simple and flexible.