In brief
Exploratory testing is testing in which the tester designs, executes and evaluates tests at the same time, learning about the system along the way. To keep it from becoming random clicking, it is run in sessions: the tester gets a test charter with a goal and an area, works within a fixed time, usually 60 to 120 minutes, and notes what was checked, what was found and which questions remain. After the session, a short debrief with the lead turns the notes into a report on coverage, defects and risks.
What exploratory testing is
The ISTQB Foundation Level 4.0 syllabus classifies exploratory testing as an experience-based technique. Tests are designed, executed and evaluated simultaneously, and the tester learns about the test object while doing so. The result of one test suggests the next: if the application form accepted a date of birth in the future, the next step is to check what the age calculation and the offer do with that date.
Another banking example: a session charter for a new cash loan wizard can focus on abandoning the process and coming back to it a few hours later. A scripted scenario rarely covers this, yet customers do it often.
The syllabus points out when exploration pays off most:
- when the specification is sparse or incomplete;
- when there is significant time pressure;
- as a complement to more formal test techniques.
Effectiveness depends on the tester: experience, domain knowledge and skills such as analytical thinking, curiosity and creativity. Exploratory testing does not mean testing without a plan. There is a plan, but it describes the goal and the area, not every step.
The test charter: the session goal in a few sentences
A test charter is a short description of the session's goal. The ISTQB syllabus presents it as the basis of session-based testing. A good charter fits on half a page and answers four questions:
| Field | Example for a public e-services system |
|---|---|
| What we explore | Submitting a certificate application with attachments |
| With what and how | Different file formats and sizes, quitting halfway, coming back after the session expires |
| What we look for | Data loss, unclear messages, accepting a file the system should reject |
| Time and data | 90 minutes, a test account with a power of attorney, the acceptance environment |
Charters come from risk analysis, from new features in the release and from defect history. An area that recently produced many defects deserves another session. Charters are ordered the same way as other tests, following the principles in the article on risk-based testing.
How to run a session
A session has a time limit and one goal. The tester turns off notifications and has test data and log access at hand. Simple heuristics help during the work, meaning questions worth asking of any system:
- Boundaries. An empty field, one character, the maximum length, a negative value, February 29.
- Interruptions. Closing the browser tab, losing the network, being signed out mid-process, the Back button.
- Order. The same steps in a different order, double-clicking Submit, two windows with the same application.
- Permissions. The same operation with a lower-privilege account, a URL copied from another user.
- Data from other systems. Non-ASCII characters in a surname, a foreign address, an account number from another country.
The tester takes notes as they go: what was checked, with which data, what they noticed, which questions they have for the analyst. The notes do not have to be pretty, but they must be enough to reproduce every defect after the session. A screen recording helps a lot. A defect found is reported following the rules in the article on a bug report a developer can fix the first time.
When an interesting thread outside the charter shows up during a session, the tester notes it as an idea for another session instead of abandoning the current goal.
For complex systems, pair sessions work well. One person drives the application, the other takes notes and suggests ideas. A pair notices unusual behavior sooner, and the notes are more complete because nobody has to stop testing to write something down.
The debrief and the report
The ISTQB syllabus mentions a debriefing after the session, in which the tester and the lead or stakeholders review the results. Ten to fifteen minutes is enough to agree what was checked, what is left and whether another session is needed. The results go into a short session report:
- charter: goal and area, duration, tester, system version and environment;
- coverage: what was checked, with which data and variants, what there was no time for;
- defects: ticket numbers with a short description;
- issues: things that got in the way of testing, for example missing data or an unstable environment;
- questions and risks: unclear requirements, suspicious areas, ideas for further sessions;
- time split: how much time went into testing, into reporting defects, into setup.
The last point says a lot about the state of the project. If most of each session goes into setting up the environment, the problem is not the testers. A report across many sessions gives the project manager a map: areas checked thoroughly, areas checked superficially and areas not yet touched.
Exploration, scripted tests and automation together
Exploratory testing does not replace scripted tests or automated ones, it complements them. Automated tests make sure that what worked keeps working. Scripted tests document that requirements were checked, which acceptance or an audit often expects. Exploration looks for what nobody anticipated in the test cases.
In practice this split works well:
- A new feature in the sprint: one or two exploratory sessions before the automated tests are written. The results often improve the acceptance criteria discussed in the article on BDD and acceptance testing.
- Before a release: automated regression plus exploratory sessions in the changed areas.
- After a production incident: a session in the incident's area, and the repeatable scenario goes into the automated suite, as described in the article on where to start with test automation.
In acceptance testing of large systems, exploratory sessions run by an independent team often find defects where processes meet, which the scripted scenarios did not cover. That setup is shown in the project on independent acceptance testing of a public e-services system.
Questions and answers
How is exploratory testing different from ad hoc testing?
Ad hoc testing has no goal, no time limit and no record. Exploratory testing run in sessions has a charter with a goal, a fixed time, notes and a report. That makes it possible to say what was checked and what was not, and the defects found can be reproduced. The tester's freedom is about the next steps, not about whether the result gets recorded.
How long should an exploratory testing session be?
Most often 60 to 120 minutes. A shorter session does not let you go deep into an area, a longer one is tiring and lowers attention. More important than the length is that the session has one goal and the tester does nothing else during that time. Large areas are split into several sessions with separate charters.
Can exploratory testing be measured?
Yes, but not by the number of steps executed. You measure the number of sessions per area, the coverage of areas from the risk map, the number and severity of defects found, and the split of session time between testing, defect reporting and setup. These numbers show where knowledge about the system's quality is complete and where it is still missing.
Who should do exploratory testing?
Ideally experienced testers who know the domain, because the ISTQB syllabus ties the effectiveness of exploration to experience and domain knowledge. Pair sessions are also valuable: a tester with a business analyst or with a developer. The analyst brings knowledge of the process, the developer knows where the code is fragile.