Saltar al contenido

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

Exam questions on what this lab teaches, with the points that gain marks.

9618/21 October/November 2021 · Question 47 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

  1. (a) 0, boundary data, data is accepted.
  2. 40, boundary data, data is accepted.
  3. 41 or more, abnormal data, data is rejected.
  4. −1 or less, abnormal data, data is rejected.
  5. (b) Temp < 10 on the arrow from Heaters Off to Heaters On.
  6. Temp > 20 on the arrow from Heaters On to Heaters Off.
  7. 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

  1. One mark per row. For example, with Min 290 and Max 315:
  2. 300 → 'A'
  3. more than 317 → 'R'; 317 → 'C'
  4. 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 28 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

  1. (a) Normal: a value that is accepted. Abnormal: a value that is rejected.
  2. (a) Extreme: the highest or lowest value to be accepted.
  3. (a) Boundary: the highest or lowest value to be accepted, and the value next to it that is rejected.
  4. (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).

The question as printed in the exam paper

More real experiments

All labs →

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP