Bird
0
0

A test case fails intermittently without any code changes. What is the best first step to debug?

medium📝 Debug Q7 of 15
Testing Fundamentals - Why Software Testing Matters
A test case fails intermittently without any code changes. What is the best first step to debug?
ARewrite the entire test case from scratch.
BCheck for environment or data issues causing instability.
CIgnore the failure since it is not consistent.
DAssume the application is broken and report a bug immediately.
Step-by-Step Solution
Solution:
  1. Step 1: Understand intermittent failures

    Such failures often come from unstable test environments or test data.
  2. Step 2: Investigate environment and data

    Check if external factors like network, database, or test data cause the issue.
  3. Final Answer:

    Check for environment or data issues causing instability. -> Option B
  4. Quick Check:

    Intermittent failure = check environment first [OK]
Quick Trick: Intermittent issues often come from environment [OK]
Common Mistakes:
  • Rewriting tests without root cause
  • Ignoring flaky failures
  • Jumping to bug reports too soon

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes