This project is a simple automation test for Postman APIs made using Newman and Docker Compose.
This project uses the vad1mo/hello-world-rest Docker image for the REST API.
Newman Automation
├── README.md # README file
├── LICENSE # License file
├── compose.yml # Docker compose file
└── src
├── postman_collection.json # List of APIs to be tested with Newman
├── postman_environment.json # Predefined environment variables from Postman
└── run-test.sh # Script to run the test
- Clone the Repository:
git clone https://gitlab.com/ordinal43/newman-automation-test cd newman-automation-test
- Start Docker Engine
- Inside your repo just run this:
docker compose up
- Let the test run, then extract the results from inside the container to anywhere you want:
docker cp postman-tests-newman:/app/report.html </your/target/directory>/report.html
- IMPORTANT: Don't forget to shut down the docker compose by running:
If you don't do this the container will remain active and store the previous state.
docker compose down