Skip to content

Flaky Tests interview questions — Hard

125 hard-level Flaky Tests questions from our Automation Testing bank, each with the correct answer and an explanation of why it is correct.

This topic slice is available to practise but is not yet part of our indexed set.

What this covers

Flaky Tests appears throughout Automation Testing interviews. At hard level, interviewers are typically checking depth under pressure — edge cases, failure modes, performance characteristics, and the trade-offs you accepted. Work through these, then explain your answer out loud; the second part is what interviews actually test.

4 example questions

  1. 1. Regarding Flaky Tests, which of the following is a false statement?

    • A. Time-of-day can never affect the outcome of an automated test.correct
    • B. Test data collisions in shared environments cause intermittent failures under parallel runs.
    • C. Playwright traces, videos, and screenshots make diagnosing flaky failures far easier.
    • D. Time and timezone dependencies (e.g., tests that fail at midnight) are classic flakiness sources.

    Why: The selected statement is false. The other options are accurate statements about Flaky Tests.

  2. 2. Which of the following statements about Flaky Tests is FALSE?

    • A. Adding longer sleep() calls is the recommended permanent fix for flakiness.correct
    • B. Hard-coded sleeps are a leading cause of flakiness and should be replaced with condition-based waits.
    • C. A flaky test passes and fails intermittently without any code change.
    • D. Measuring a flake rate per test over many runs identifies the worst offenders objectively.

    Why: The selected statement is false. The other options are accurate statements about Flaky Tests.

  3. 3. Which statement about Flaky Tests is NOT correct?

    • A. Time and timezone dependencies (e.g., tests that fail at midnight) are classic flakiness sources.
    • B. Measuring a flake rate per test over many runs identifies the worst offenders objectively.
    • C. Retrying a failed test can mask real defects if used as a permanent fix.
    • D. Automatically retrying tests forever is a root-cause fix for flakiness.correct

    Why: The selected statement is false. The other options are accurate statements about Flaky Tests.

  4. 4. Identify the INCORRECT statement about Flaky Tests:

    • A. Playwright traces, videos, and screenshots make diagnosing flaky failures far easier.
    • B. Time and timezone dependencies (e.g., tests that fail at midnight) are classic flakiness sources.
    • C. Measuring a flake rate per test over many runs identifies the worst offenders objectively.
    • D. Tests sharing global state never influence each other.correct

    Why: The selected statement is false. The other options are accurate statements about Flaky Tests.

Related Automation Testing topics