Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3  You need to create your testing environment. The environment is a text file without extension written in JSON. It has the following format:


You can use this as a template. Create a file with this format, replace the values for the name, the host and your API addresses and put it in the same folder as the postman collections.

4  Now create the right script or batch file for your platform (either Windows or Linux/Mac), put it in the same folder and run script execution command.

...

 For example, you can use a batch file (runtest.bat) which would look like the following example:
 

set http_proxy=http://proxyinternet.tesa:8080
newman -c DSTestedAPITestCollection.postman_collection -e TMFENV -H DSTestedAPICTKResult.html -o DSTestedAPICTKResult.json
pause >nul

...