Entry criteria vs exit criteria, DoR vs DoD (ISTQB CTFL)
Entry criteria are the preconditions for starting an activity. Exit criteria state what must be achieved before the activity can be declared complete. ISTQB's CTFL v4.0 syllabus wants both set for every test level. In Agile development, a user story's entry criteria are called the Definition of Ready and exit criteria the Definition of Done.
What are typical entry criteria?
The syllabus gives three groups. Resources are available: staff, time, budget, tools, environments and test data. Testware is available: for example the test basis, requirements that can be tested, user stories and test cases. Initial quality level of the test object: for example, all smoke tests have passed.
If entry criteria are not met, the activity is likely to be more difficult, more time-consuming, more costly and riskier.
What are typical exit criteria?
There are two kinds. Measures of thoroughness: the level of coverage achieved, the number of unresolved defects, defect density, the number of failed test cases. Yes/no criteria: the planned tests were run, static testing was done, every defect found has been reported, and the regression tests are all automated.
Entry and exit criteria differ from one test level to another, because the test objectives differ.
Can testing end when time or budget runs out?
Yes, under a condition. The syllabus treats running out of time or budget as a valid exit criterion. Testing can end without the other exit criteria being satisfied provided the stakeholders have looked at the risk of going live with no more testing and have accepted it.
Definition of Ready vs Definition of Done
Agile teams often call their exit criteria the Definition of Done. It sets the objective measures an item must meet before the team treats it as releasable.
The Definition of Ready is the set of entry criteria a user story has to satisfy before work on it, development or testing, begins. A rule such as 'acceptance criteria are written before the story enters an iteration' is a Definition of Ready item.
Where the exam catches people
Classing 'smoke tests have passed' as an exit criterion: it describes the initial quality level of the test object, which is an entry criterion.
Classing 'test cases are available' or 'the environment is ready' as exit criteria: availability of testware and resources is checked on entry.
Swapping the Agile terms: Definition of Ready is entry criteria for a user story. Definition of Done is exit criteria.
Believing testing can never stop while exit criteria are unmet: it can, once stakeholders have considered the risk and accepted it.
Using one set of criteria for all test levels: each test level gets its own, and they differ with the test objectives.