Lompat ke konten

Labs · 9618 AS 12.2–12.3

Test Plans and Hidden Bugs

Write a test plan with normal, boundary and abnormal data, and see which hidden bugs your tests catch. Then label a state-transition diagram and match testing methods.

4 levelsFree bench

In the exam

9618/21 October/November 2021 · Question 4 · 7 marks

A sensor value should be an integer from 0 to 40 inclusive. (a) Complete the test plan (test data value, explanation, expected outcome); the first line is 23, normal data, data is accepted. (b) Heaters switch on below 10 and off above 20: complete the state-transition diagram.

Points that gain marks

  • (a) 0, boundary data, data is accepted.
  • 40, boundary data, data is accepted.
  • 41 or more, abnormal data, data is rejected.
  • −1 or less, abnormal data, data is rejected.
  • (b) Temp < 10 on the arrow from Heaters Off to Heaters On.
  • Temp > 20 on the arrow from Heaters On to Heaters Off.
  • A label on each state's own loop (the heaters stay as they are) that does not contradict these.

In this lab: Levels 1 and 3 are this question.

9618/23 October/November 2022 · Question 6(a) · 5 marks

Complete the test plan for five tests that could be performed on function Status(). The tests should address all possible outcomes.

Points that gain marks

  • One mark per row. For example, with Min 290 and Max 315:
  • 300 → 'A'
  • more than 317 → 'R'; 317 → 'C'
  • 288 → 'C'; less than 288 → 'R'

In this lab: Level 2 uses the same function, and hidden bugs at each edge.

IGCSE 0478/22 February/March 2024 · Question 2 · 8 marks

(a) Match each test data type (abnormal, boundary, extreme, normal) to its description. (b) An algorithm tests if an integer that is input is in the range 5 to 10 inclusive. Identify an example of suitable test data for each test data type.

Points that gain marks

  • (a) Normal: a value that is accepted. Abnormal: a value that is rejected.
  • (a) Extreme: the highest or lowest value to be accepted.
  • (a) Boundary: the highest or lowest value to be accepted, and the value next to it that is rejected.
  • (b) Normal, for example 6; abnormal, for example 31; extreme 5 or 10; boundary 4 and 5, or 10 and 11.

In this lab: Level 'A test plan' (IGCSE splits this lab's boundary data into extreme and boundary).

More real experiments

Masuk atau buat akun

IGCSE, A-Level & AP