Bird
0
0

Given a CI pipeline that runs Selenium tests on every commit, what is the expected result if a test fails?

medium📝 Predict Output Q4 of 15
Selenium Python - CI/CD Integration
Given a CI pipeline that runs Selenium tests on every commit, what is the expected result if a test fails?
AThe pipeline ignores the failure and continues
BThe pipeline stops and reports failure immediately
CThe pipeline deletes the failed test automatically
DThe pipeline reruns the test indefinitely
Step-by-Step Solution
Solution:
  1. Step 1: Understand CI pipeline behavior on test failure

    CI pipelines usually stop and report failure to prevent bad code from merging.
  2. Step 2: Analyze other options for feasibility

    Ignoring failures or deleting tests is unsafe; rerunning indefinitely is impractical.
  3. Final Answer:

    The pipeline stops and reports failure immediately -> Option B
  4. Quick Check:

    CI stops on test failure = A [OK]
Quick Trick: CI stops pipeline on test failure [OK]
Common Mistakes:
  • Assuming pipeline ignores failures
  • Thinking tests auto-delete on failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes