Posts

API Testing Suite using Docker

Image
Introduction This Docker Assignment focuses on building a containerized API testing environment using Docker and Newman (Postman’s CLI). The project is divided into three parts each progressively adds new functionality such as orchestration, persistence, and documentation. The final setup automates API testing, generates reports, and provides a clear technical record of the entire process. Objectives of Part 1 Build a minimal Newman container using node:18-alpine . Run a Postman collection inside the container. Generate an HTML test report. Verify containerized API testing and establish a reusable base image. Objectives of Part 2 Implement Docker Compose for orchestration. Add volume mapping ( ./reports:/etc/newman/reports ) to persist reports. Enable generation of both HTML and JSON reports. Run and manage tests with a single docker compose up command. Objectives of Part 3 Prepare documentation for Parts 1 and 2, detailing the complete process. Explain ...