REST APIs tests using postman for The Coop APIs.
- NodeJS
- newman
npm install -g newman
- newman-html-reporter
npm install -g newman-reporter-html
- Download The_Coop_API.postman_collection.json file
- Open postman to view and run tests:
Import > File > Choose Files > Select The_Coop_API.postman_collection.json
- Download the
The_Coop_API.postman_collection.json
file - No need to download the environment file as the token has expiration time and will be generated and saved as environment variable. Only use the same file name or exchange it in the following command
newman run The_Coop_API.postman_collection.json -e Dev_The_Coop.postman_environment.json -r html
- This will create a directory "newman" that will contain html report
All passing except 3 failed tests with prefix "INTENDED FAILURE".
TODO: Report the 3 issues in Issues tab