Skip to content

ArpitChoubey/Dockerized-test-environment-for-automation-framework

Repository files navigation

🚀 Dockerized Test Environment for Automation Framework (Playwright + Mock API + DB)

This repository demonstrates a complete, production-like test environment setup using Docker, designed specifically for automation testing with Playwright.

It simulates a real-world QA ecosystem, including:

UI Automation (Playwright) Mock APIs Database setup Containerized execution using Docker

📌 Why This Project?

In modern QA roles, especially SDET / QA Automation Engineer, it's critical to:

✅ Test in isolated environments ✅ Avoid "works on my machine" issues ✅ Run tests in CI/CD pipelines ✅ Handle dependencies like APIs & DB

👉 This project solves all of that using Dockerized test infrastructure

🧰 Tech Stack 🟢 Playwright – UI Automation Testing 🟡 Node.js – Test execution environment 🔵 Docker & Docker Compose – Container orchestration 🟠 Mock API – Simulated backend services 🟣 Database (DB) – Data validation & test scenarios

📂 Project Structure Docker-Test-Environment-Setup/ │ ├── db/ # Database setup & configuration ├── mock-api/ # Mock API service ├── tests/ # Playwright test cases │ ├── Dockerfile # Image configuration ├── docker-compose.yml # Multi-container setup ├── playwright.config.ts # Playwright configuration ├── package.json # Project dependencies ├── README.md # Documentation └── .gitignore ⚙️ Features

✨ Fully containerized test environment ✨ End-to-end testing using Playwright ✨ Mock API integration for controlled testing ✨ Database-backed test validation ✨ Scalable & CI/CD ready setup ✨ Clean and modular structure

🚀 How to Run the Project 1️⃣ Clone the Repository git clone https://github.com/ArpitChoubey/Docker-Test-Environment-Setup.git cd Docker-Test-Environment-Setup 2️⃣ Build & Start Containers docker-compose up --build 3️⃣ Run Tests npx playwright test 🧪 Use Cases

This setup is ideal for:

✔️ QA Automation Engineers ✔️ SDET Interviews / Portfolio ✔️ CI/CD pipeline integration ✔️ Testing microservices architecture ✔️ Learning Docker for QA 💡 Key Learnings Demonstrated

✔️ Dockerizing test environments ✔️ Running Playwright in containers ✔️ Handling dependencies (API + DB) ✔️ Writing maintainable test architecture ✔️ Real-world QA project structuring

🔥 Why Recruiters Should Notice This

This project highlights:

Strong hands-on automation skills Understanding of real-world test environments Knowledge of Docker & DevOps practices Ability to design scalable QA frameworks 📈 Future Enhancements CI/CD integration (GitHub Actions / Jenkins) Test reporting (Allure / HTML Reports) Parallel execution scaling Cloud execution (Docker + Kubernetes) 🤝 Contributions

Contributions, suggestions, and improvements are always welcome!

👨‍💻 Author

Arpit Choubey SDET | QA | Automation Engineer

🔗 LinkedIn: https://www.linkedin.com/in/arpitchoubey/

✍️ Medium: https://medium.com/@ArpitChoubey9

⭐ Support

If this repository helped you, please ⭐ star it to support and motivate further contributions in it.

About

test-environment-setup-with-docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors