Testing · lesson 7 of 10
Ideas in this lesson
AExploratory testinglearning, designing and running tests at the same time
BCharterwhat to explore, with what, to find what
CUsability and accessibilitycan people use it, all of them

Testing by hand

Last updated

Automated tests check what someone thought to check. The bugs that reach patients are often the ones nobody thought of. Finding those takes a person, poking at the software with curiosity and a plan. In this lesson you'll run an exploratory session on a new Pila build with a charter, the way Rina does, and see what else only people can test: whether Pila is easy to use, and whether everyone can use it.

By the end of this lesson you can

  • Run an exploratory testing session from a charter, and note what you find
  • Explain what usability testing with real people finds
  • Do simple accessibility checks by hand

What automation misses

An automated test checks one thing someone decided to check, the same way every time. That's its strength and its limit. It can't notice that the reply text is confusing, that a feature behaves strangely in a case nobody imagined, or that the counter page is hard to read in bright morning light.

Exploratory testing fills that gap. James Bach describes it as learning about the software, designing tests and running them all at the same time: each result suggests the next thing to try. It isn't random clicking. It's a skilled tester following their curiosity, with a purpose and a time limit.

Charters and sessions

Elisabeth Hendrickson's book Explore It! gives a simple shape for that purpose, the charter:

A charter
PartSaysExample
Explore…the target: a feature or areathe cancel feature
with…the resources: data, tools, situationsunusual texts and a busy morning
to discover…what information you’re afterwhat happens to everyone else’s number

A session is a stretch of uninterrupted exploring against one charter, often 30 to 90 minutes, with notes kept as you go: what you tried, what you found, questions, and ideas for next time. A short debrief afterwards turns the notes into bug reports, new tests and new charters.

Rina’s session

The new build has Jun's cancel feature: text CANCEL to give your number back. All its unit tests pass. Rina spends thirty minutes exploring it.

  1. 0:00 Charter
1 of 6 0:00. Rina writes her charter: explore the cancel feature, with unusual texts, to discover what patients will see. She sets a timer for 30 minutes.

Your session: explore cancelling

Finish what Rina ran out of time for. The build is in the next tab, pila_build.py. The starter runs her first tries. Add your own texts below the comment: give out several numbers, cancel one properly (in capitals), then let a new phone text, and call check(q). Keep going until the helper finds something.

Step 4 code
Edit the code, then run it again

Why does it happen? Read take_number and cancel in the build. The next number is worked out from how many phones hold one, and cancel removes a phone, so the count goes down and a number is given out twice. No unit test tried a cancel followed by a new number. Your exploring did.

Which is the most serious of the session’s finds?

Usability and accessibility

Two more things only people can test:

  • Usability. Can people do what they came to do, easily? The Nielsen Norman Group's advice is to watch real users try real tasks while a facilitator says as little as possible. Rina gives a basic phone to three lolas in the waiting room and asks them to get a number. One types the keyword with a space in it; one can't find where to read the reply. Neither is a bug in the code, and both stop a patient.
  • Accessibility. Can everyone use it, including people with poor eyesight or who use a screen reader? The W3C's Web Accessibility Initiative lists easy checks anyone can do by hand: zoom the counter page to 200% and see if it still works, use it with the keyboard only, check the text contrast (lesson 4.8), and give every image a text alternative. Tools find some problems automatically; a person has to judge the rest.

Spot the trap: “the tests passed”

Spot the trapJun

Jun’s cancel feature has twelve unit tests, all green. “The tests passed,” he says. “Can we release it tomorrow without Rina’s session?”

What happens if…

Check what you learned

What are the three parts of a charter?
What makes exploratory testing different from running a test script?
Which is an accessibility check anyone can do by hand?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development