Bird
0
0

In a test suite, testC depends on testB, and testB depends on testA. If testA is skipped, what happens to testB and testC?

hard📝 Application Q9 of 15
Selenium Java - TestNG Integration
In a test suite, testC depends on testB, and testB depends on testA. If testA is skipped, what happens to testB and testC?
AtestB runs, testC is skipped.
BBoth testB and testC are skipped.
CtestB is skipped, testC runs.
DBoth testB and testC run regardless.
Step-by-Step Solution
Solution:
  1. Step 1: Understand cascading skip

    If testA is skipped, testB (which depends on testA) is skipped.
  2. Step 2: Propagate skip to testC

    Since testC depends on testB, and testB is skipped, testC is also skipped.
  3. Final Answer:

    Both testB and testC are skipped. -> Option B
  4. Quick Check:

    Skipped dependency cascades skip downstream = A [OK]
Quick Trick: Skipped tests cause dependent tests to skip too [OK]
Common Mistakes:
  • Assuming dependent tests run despite skips
  • Confusing skip with fail
  • Not understanding cascading effect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Java Quizzes