Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

SC 2.5: Writing a test plan

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

55 minutes

Nobody remembers what was tested

A technician says, "I tested the Wi-Fi sign-in. It was fine." A week later it fails for a new student.

Was the long password tested? The space in a name? Nobody wrote it down, so nobody knows.

By the end of this lesson

Note

I can write a plan of tests and record what really happened.

Key words

WordWhat it means
Test plana table that lists every test before you run it
Requirementsomething the system must do
Purposethe reason for a test
Test datathe values you feed into a test
Expected resultwhat should happen
Actual resultwhat really happened
Passthe actual result matches the expected result

The cells students fill in are left blank in this preview.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Five steps of a test plan

A plan has five steps, in this order.

  1. Identify the tests to carry out.
  2. Describe the purpose of each test.
  3. Choose the test data to use.
  4. Describe the expected result.
  5. Record the actual result after you run it.

You write steps 1 to 4 before you run anything.

Worked example: a sign-in plan

TestPurposeTest dataExpected resultActual result
T1A normal password works`Sunny2026`Signed inSigned in
T2Too short is refused`abc`Refused with a messageSigned in
T3Longest allowed works20 lettersSigned inSigned in
T4Empty is refusednothingRefused with a messageRefused with a message

The cells students fill in are left blank in this preview.

Read the plan

Note

The last two columns are the point. Where they match, the test passes. Where they differ, you have found a fault. Test T2 differs: a password that is too short was accepted.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The lesson goes on

5 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.