QA AND TEST AUTOMATION · PART 1 · MANUAL TESTING, PROPERLY · PRACTICE · 14 OF 112

Exploratory Testing: Charters, Heuristics, Notes

Exploratory testing done as a skill, not as random clicking: learning, designing and running tests at the same time, inside a time-boxed session with a charter, guided by heuristics and tours, with notes and a debrief that make it accountable. Worked on a ShopRung session in mystery mode, and how it fits next to scripted and automated tests.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 67
  63. 68
  64. 69
  65. 70
  66. 71
  67. 72
  68. 73
  69. 74
  70. 75
  71. 76
  72. 77
  73. 78
  74. 79
  75. 80
  76. 81
  77. 82
  78. 83
  79. 84
  80. 85
  81. 86
  82. 87
  83. 88
  84. 89
  85. 90
  86. 91
  87. 92
  88. 93
  89. 94
  90. 95
  91. 96
  92. 97
  93. 98
  94. 99
  95. 100
  96. 101
  97. 102
  98. 103
  99. 104
  100. 105
  101. 106
  102. 107
  103. 108
  104. 109
  105. 110
  106. 111
  107. 112
1 / 14

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Learn, design and run together
  • charter and time box
  • heuristics, tours, oracles
  • notes and debrief

Notes

The problem

Many teams say exploratory when they mean ad hoc: click around for a bit and see what happens. That finds a few bugs, but there is no goal, no record and no idea of what was covered. Real exploratory testing keeps the freedom, but adds structure: a mission, a time box, techniques, notes and a debrief. The freedom is in how you test. The discipline is in knowing why, and being able to say what you did.

Ad hoc vs exploratory
  • ad hoc: "click around the app for a bit", no goal, no notes, no idea what was covered
  • exploratory: a mission, a time box, techniques, notes, a debrief
  • same freedom, very different
  • value

The idea

Exploratory testing is learning about the product, designing tests and running them, all at the same time. In scripted testing you design first and run later, the same way every time. In exploratory testing, what you see in one test decides the next. A strange total makes you try a slightly different cart. An odd message makes you try the same action as another user. Both styles are needed, because they find different kinds of bugs.

Exploratory testing is
  • simultaneous learning, test
  • design and test execution
  • scripted: design first, run later, same every time
  • exploratory: the result of this test decides the next
  • both are needed; they find
  • different bugs

The charter

A session starts with a charter, a one line mission. A popular template is: explore a target, with some resources or techniques, to discover some kind of information. For example: explore the cart and coupons, with boundary values and two browser tabs, to discover how totals and coupons can go wrong. A good charter is narrow enough to finish in one session, but open enough to follow what you find.

A charter template
  • Explore <target>
  • with <resources or techniques>
  • to discover <information>
  • example: Explore the cart and coupons
  • with boundary values and two browser tabs
  • to discover how totals and coupons can go wrong

The session

This approach is called session based test management. A session is a time box, usually forty five to ninety minutes, with one charter and no interruptions. Afterwards you note roughly where the time went: real testing, investigating bugs, or fighting with setup. If you find something interesting outside the charter, you write it down as an idea for a new charter instead of disappearing down a side path. That keeps sessions focused and countable.

Session-based testing
  • time box: 45 to 90 minutes
  • one charter per session
  • no meetings, no chat
  • track roughly where time went: testing / bug investigation / setup
  • off-charter finds become
  • new charters, not detours

Heuristics

Heuristics are quick rules of thumb that suggest the next test. Create, read, update and delete every kind of object. Goldilocks: too small, too big, and just right. Starve the system: no stock, no data, an empty cart. Interrupt it: press back, refresh, close the tab, log out mid flow. Follow the data: does the same total appear on the cart, the order and the order list? And make two users do the same thing at once.

Heuristics to steer by
  • CRUD: create, read, update, delete every object
  • goldilocks: too small, too big, just right
  • starve: no stock, no data
  • interrupt: back, refresh, close the tab, log out follow the data: does the total match everywhere?
  • two users, same thing

Tours

Tours give a session a shape, like a tourist with a theme. On a money tour you visit every place a price or total appears. On a boundary tour you visit every limit in the requirements. A back alley tour visits pages users rarely open, like error pages. A saboteur tour tries to break things with two tabs or a stale login. A landmark tour walks the main flow in an unusual order. Pick one or two tours per charter.

Tours of ShopRung
  • money tour: every place a price or total appears
  • boundary tour: every limit in the requirements
  • back-alley tour: pages users rarely open (/sql, errors)
  • saboteur tour: break things (two tabs, stale token)
  • landmark tour: the main flow in a different order

Oracles

With no scripted expected result, how do you know something is wrong? You use oracles. The requirements are one. Consistency is another: the cart total must match the order total, and the order list must match the order page. The product's own claims count too: the product page says you can buy one to ten. So do similar products and what worked last week. When you are not sure, write it down as a question, not as a bug.

Oracles: how you judge
  • the requirements (CART-2...)
  • consistency with itself: the cart total = order total
  • consistency with similar products and user habits
  • the product's own claims: "You can buy 1 to 10"
  • history: it worked last week
  • unsure? log it as a question

Notes

Write notes as you go, with times. What you tried, what you saw, bugs, questions and ideas for new charters. Short is fine. Ten oh five: four notebooks with save ten, refused at exactly fifty dollars, repeat to confirm. Ten twelve: quantity eleven accepted, which breaks cart two, take a screenshot. Notes turn a session into evidence. Without them, nobody can tell what was covered, and you will forget the exact steps for the bug report.

Session notes
  • charter, tester, start, length
  • 10:05 cart: 4 notebooks, SAVE10 → refused at $50.00 ?? BUG? repeat with hoodie
  • 10:12 qty 11 accepted (CART-2) BUG 1, screenshot
  • 10:20 Q: can admin buy?
  • bugs 2 · questions 1 · ideas 2

Debrief

After the session, a short debrief with a lead or a teammate. What did you cover, and what did you not get to? Which bugs did you find, and are they filed? Which questions need the product owner? What got in the way? Which new charters should run next? Some teams remember this as PROOF: past, results, obstacles, outlook and feelings. Ten minutes turns one person's session into knowledge the whole team can plan with.

Debrief questions
  • what did you cover?
  • what did you NOT get to?
  • bugs found (filed?)
  • questions for the product owner
  • what got in the way?
  • new charters to run
  • PROOF: past, results, obstacles, outlook, feelings

Mystery mode

ShopRung has a mode built for practising this. Start it in mystery mode and a hidden set of bugs switches on. The yellow bar tells you some bugs are on, but not which. Your charter: explore the cart, coupons and orders, with boundary values, two users and the API, to discover where the rules break. Sixty minutes, with notes. In the exploratory testing lab you then switch the bugs off and compare, to see what you found and what you missed.

Your first session
  • start ShopRung in mystery mode: SHOPRUNG_BUGS=mystery npm start
  • the yellow bar says some bugs
  • are on, not which charter: explore cart, coupons
  • and orders with boundaries, two users and the API to discover rule breaks
  • 60 minutes, then compare

Common mistakes

Mistakes that make exploratory testing look unprofessional. No charter and no time box. No notes, so nothing can be shown afterwards. Chasing one bug for the whole session instead of logging it and moving on. Only exploring the screens, never the API or the data behind them. Treating it as a replacement for regression checks, which belong in scripts and automation. And skipping the debrief, so the learning stays in one head.

Avoid these
  • no charter, no time box
  • no notes, so no evidence
  • chasing one bug for the whole session
  • only exploring the UI, never the API or data
  • treating it as a replacement for regression checks
  • skipping the debrief

Say it like this

In an interview, show the structure. Say: I run time boxed sessions, usually an hour, each with a charter that says what to explore, with which techniques, to find what. I steer with heuristics and tours, judge results with oracles like the requirements and consistency, keep timed notes, file bugs and questions, and debrief with the team. It complements scripted and automated tests, because it finds the bugs nobody wrote a test for.

In the interview
  • "I run time-boxed sessions
  • with a charter: what to explore, with which techniques, to find what. I
  • use heuristics and tours, judge with oracles like the requirements and consistency, keep timed notes, file bugs
  • and questions, and debrief.
  • It complements automation."

Interview questions

Q1What is exploratory testing?

Simultaneous learning, test design and test execution: the tester uses what each test reveals to choose the next, guided by a mission rather than a script.

Q2How is exploratory testing different from ad hoc testing?

Ad hoc testing has no goal, structure or record. Exploratory testing has a charter, a time box, techniques and notes, and ends with a debrief, so it is planned and accountable.

Q3What is a test charter?

A short mission for a session, often "Explore <target> with <resources> to discover <information>", narrow enough to finish in one time box.

Q4What is session-based test management?

Organising exploratory testing into uninterrupted, time-boxed sessions (45 to 90 minutes), each with a charter, notes, metrics on time spent and a debrief.

Q5What is a test oracle?

A way to decide whether a result is correct: requirements, consistency within the product, similar products, the product's own claims, past behaviour or user expectations.

Q6Name some exploratory heuristics or tours.

CRUD, goldilocks (too small, too big, just right), starve, interrupt, follow the data, the money tour, the back-alley tour and the saboteur tour.

Q7When is exploratory testing most valuable?

On new or changed features, when requirements are thin, under time pressure, and to find the unexpected; it complements scripted regression and automation.

Q8How do you report on exploratory testing?

With session notes and a debrief: charters covered, time split, bugs and questions raised, areas not reached, and new charters suggested.