Your regression suite has grown to 3 hours. How do you bring feedback time under 15 minutes?
What the interviewer wants to hear
- Measure where time goes and find the slowest tests
- Move checks down the pyramid and delete duplicates
- Parallelise and shard across machines
- Speed up setup with API login and data creation
- Test impact analysis to run only affected tests on pull requests
- Full suite runs nightly or before release
Model answer
I start by measuring: which tests are slowest, which spend most time in setup, and which overlap. Usually a few patterns dominate. UI login and data creation in every test, so I replace them with API setup and reused authenticated state. Business rules tested through the UI, so I move them to API or unit tests and keep one UI check. Duplicate tests covering the same path, which I remove. Then I parallelise: multiple workers per machine and sharding across, say, 10 CI machines, which only works once tests are independent. For pull requests, I add test impact analysis or tags so only tests related to the changed areas run, plus a fast smoke suite, while the full suite runs on merge or nightly. I also remove fixed sleeps and slow third-party calls with mocks. With these steps, getting from 3 hours to 10 or 15 minutes is realistic.
Can you answer it under time pressure?
Take a timed hard round and get scored on every answer.
More hard Automation Test Engineer questions
- Design a test automation strategy for a product with 15 microservices, a web app and a mobile app.
- What does testing in production mean, and how would you do it safely?
- What is your view on AI-based and self-healing test automation tools in 2026?
- Developers keep changing the UI and breaking your tests. How do you fix this at the team level, not just in your code?
- How do you measure whether your test automation is healthy and worth the investment?
- Your company has 2,000 Selenium tests and wants to move to Playwright. How would you plan the migration?
- The E2E suite fails on about 30% of runs and developers now ignore it. How do you turn this around?
- How do you design automated tests for an event-driven microservices system where services talk through a message broker?
- Your product adds an AI assistant built on a large language model. Its answers vary between runs. How would you automate testing for it?