1. What is automation, really?
- Automation is the use of software tools to execute pre-scripted tests instead of a human clicking through the application.
- It does not replace a tester — it replaces repetitive manual clicks so the tester can focus on exploratory work, edge cases, and user experience.
- Real definition: automation = assertions executed by code on behalf of a human.
2. The Test Pyramid (Mike Cohn)
- Unit tests (bottom, fastest, cheapest) — written by devs, run on every commit.
- Integration / API tests (middle) — verify components talk correctly.
- UI / End-to-end tests (top, slowest, most fragile) — what Playwright excels at.
- Rule of thumb: lots of unit tests, fewer E2E tests.
/\
/UI\ ← few, slow, brittle
/----\
/ API \ ← more, faster, stable
/--------\
/ UNIT \ ← many, fastest, cheapest
/____________\3. ROI of Automation — When does it pay off?
Use this simple formula:
ROI = (Manual cost − Automated cost) / Automated cost × 100
Example: 200 test cases × 15 min each = 50 hours of manual regression. A 3-day automation investment that runs in 8 minutes pays off after the 4th cycle.
Manual regression: 200 tests × 15 min = 50 hrs / cycle Automation build: 3 days (~24 hrs) Automated run: 8 min (~0.13 hrs) / cycle Break-even cycle ≈ 24 / (50 − 0.13) ≈ cycle 4
Break-even is usually between the 3rd and 5th regression cycle.
4. What this lab teaches you
- Identify which layer of the pyramid a given test belongs to.
- Estimate ROI for a candidate test before automating it.
- Recognize anti-patterns: flaky tests, over-automated UI flows, snapshot-only suites.
5. Hands-on task (concept, no code)
- Given 10 candidate test cases, label each as Unit / API / E2E.
- Pick one E2E flow and estimate break-even using the formula above.
6. What's next
Continue to Module 01 / Lab 2: Install Node, Playwright, and VS Code.
Up next in the learning path
Install Node, Playwright, VS Code