Forum Discussion

richie's avatar
Community Hero
5 years ago

Using the Environments Override When The HOST doesn't determine the environment

Hey!   This is a little confusing - so I'm going to try and be as clear as I can - I'll add visual aids :)   Within my ReadyAPI! project I have maybe 18 REST Services with various resources, ...
  • nmrao's avatar
    5 years ago


    Provide payload as below



    You can define property file as show below, and create a file for each enrionment.


    And import the above file at project level, refer below documentation


    So, you can similarly, use properties for END POINTS / other varying values per environment into property file and use them in the project as mentioned in the payload content.


    Now all you need is single project, common test cases. No separate test suites / test cases per environment any more, just use appropriate property file, import them into project before running the tests.

    If you are running the tests command line, even properties can be directly loaded runtime without even modifying the existing values in the project.