ISTQB 연습문제 풀이 - Exam C : Q#32

Test Execution Schedule (Priority + Dependencies)

1. Introduction

When creating a test execution schedule, we usually want to execute higher-priority test cases as early as possible. However, we must also respect dependencies between test cases.

This question asks which test case should be executed sixth when both factors are applied.

테스트 실행 일정(Test execution schedule)을 만들 때는 보통 우선순위가 높은 테스트를 최대한 빨리 실행하고 싶습니다. 하지만 테스트 케이스 간 의존성(선행 조건)도 반드시 지켜야 합니다. 이 문제는 이 두 가지를 동시에 고려했을 때 6번째로 실행할 테스트를 묻습니다.


2. Given Information

  • Test cases: TC1 ~ TC7
  • Priorities: 1 (highest) to 3 (lowest)
  • Dependencies are shown as arrows (A → B means A must run before B)

주어진 정보:

  • 테스트 케이스: TC1 ~ TC7
  • 우선순위: 1(가장 높음) ~ 3(가장 낮음)
  • 화살표 의존성: A → B이면 B는 A 이후 실행 가능

3. Goal: Run High Priority as Early as Possible (But Respect Dependencies)

If we look at priority only, the preferred order would start with:

  • Priority 1: TC5, TC7
  • Priority 2: TC1, TC3, TC4
  • Priority 3: TC2, TC6

But dependencies change what is actually possible:

  • To run TC7, we must first run TC4
  • To run TC5, we must first run TC4 and TC2
  • To run TC2, we must first run TC1

우선순위만 보면 1순위(TC5, TC7)를 먼저 실행해야 하지만, 의존성 때문에 바로 실행할 수 없는 케이스가 있습니다.

  • TC7 실행 전: TC4 선행 필요
  • TC5 실행 전: TC4, TC2 선행 필요
  • TC2 실행 전: TC1 선행 필요

4. Build the Best Schedule

To execute priority 1 tests as early as possible, we schedule prerequisites first:

  1. TC4 (needed for TC7 and TC5)
  2. TC7 (priority 1, now unblocked)
  3. TC1 (needed to unlock TC2)
  4. TC2 (needed to unlock TC5)
  5. TC5 (priority 1, now unblocked)
  6. TC3 (priority 2, higher than TC6)
  7. TC6 (priority 3)

So the full schedule is:

TC4 → TC7 → TC1 → TC2 → TC5 → TC3 → TC6

따라서 전체 실행 순서는 다음과 같습니다.

TC4 → TC7 → TC1 → TC2 → TC5 → TC3 → TC6


5. Answer

The sixth test case executed is TC3.

✅ Correct Answer: a) TC3


6. Why the Other Options Are Incorrect

  • b) TC5: TC5 is executed 5th (after TC4 and TC2)
  • c) TC6: TC6 has lowest priority and is executed last
  • d) TC2: TC2 must come after TC1 and before TC5, so it is 4th

  • TC5는 5번째
  • TC6는 최하 우선순위로 마지막
  • TC2는 TC1 이후, TC5 이전이므로 4번째

7. Final Takeaway

For ISTQB exams, remember:

Execution order = priority first, but dependencies always override what is possible.

시험에서는 이렇게 기억하세요.

우선순위를 먼저 고려하되, 의존성(선행조건)이 항상 실행 가능 여부를 결정한다.

Related: More ISTQB Posts | Next Question

다음 이전