Interview practice

QA Automation Engineer

0–2 years · Junior — Selenium / Playwright · API testing · Test design · CI integration · Python / Java · Debugging

0–2 years 2–5 years 5–8 years 8+ years
scenario CI Integration 1 of 6
Your automated tests are scheduled to run every night, but recently they have been timing out during execution. What do you investigate in the first 15 minutes?
What a strong answer covers

Checks log files for timeout errors; reviews the test suite for any slow-running tests; identifies resource bottlenecks in the CI environment; considers running tests locally to replicate the issue; discusses with the team if any new tests were added that might be causing delays.

The follow-up you would get

The team insists on adding more tests. How do you balance test coverage with execution time?

Could you have answered that?
technical Flaky tests 2 of 6
You notice that one of your tests fails 30% of the time without any code changes. What steps do you take to diagnose and fix the flakiness?
What a strong answer covers

Analyzes the test to determine if it depends on timing or external factors; implements retries with exponential backoff; checks for race conditions or timing dependencies; reduces reliance on hard-coded values; reviews the environment for stability.

The follow-up you would get

If the test is dependent on external APIs, what strategies would you employ?

Could you have answered that?
technical Test automation 3 of 6
You have a Selenium test that intermittently fails due to a 'stale element reference' error. How do you investigate and resolve this issue?
What a strong answer covers

Identifies the exact line causing the error; checks if the element is still attached to the DOM; uses waits to ensure the page is fully loaded; considers re-fetching the element before interacting; mentions using try-catch to handle exceptions gracefully.

The follow-up you would get

What specific type of wait would you use to prevent this error?

Could you have answered that?
technical Debugging 4 of 6
You have a test that runs successfully in isolation but fails when run with the full suite. What is your approach to debug this?
What a strong answer covers

Runs the tests in smaller batches to identify the conflicting tests; checks for shared state or dependencies between tests; uses logging to gather more context on the failure; verifies the test order does not impact results; considers flakiness due to timing issues.

The follow-up you would get

What tools can you use to help identify flakiness in tests?

Could you have answered that?
ownership A decision that cost 5 of 6
Describe a situation where you chose not to automate a test, and what led to that decision.
What a strong answer covers

Identifies a specific test case; explains the reasoning behind the decision, considering factors like stability, frequency of changes, or test execution time; describes alternative solutions implemented; reflects on the impact of the decision on the team and project; avoids blaming external factors.

The follow-up you would get

What feedback did you receive from the team about that decision?

Could you have answered that?
scenario Test Data Management 6 of 6
You need to run your test suite, but the test data is not set up correctly and results in inconsistent test outcomes. What do you do in the first 15 minutes?
What a strong answer covers

Identifies the data requirements for the tests; checks the current state of the test data repository; looks for existing scripts or procedures to set up the data; considers creating mock data if necessary; documents the issue for future reference.

The follow-up you would get

The test data setup process is time-consuming and frequently fails. How do you propose to improve this?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.