The software testing life cycle (STLC) is the ordered set of phases a release’s testing passes through: requirement analysis, test planning, test case development, environment setup, test execution and test closure. Each phase takes an input, produces an artefact and ends on a checkable condition. The six-phase list is a convention, and the ISTQB syllabus never uses the term.
What are the six phases of the software testing life cycle?
Sources rename and merge the phases: some call the third one test case design, and the last one test cycle closure. Baeldung’s overview folds them into four: planning, design, execution and closure. The exit conditions below are typical, and a team writes its own into the plan.
| Phase | What goes in | What comes out | Exit condition |
|---|---|---|---|
| 1. Requirement analysis | Requirements, stories, acceptance criteria | Test conditions | Every requirement in scope has a condition, or a reason it cannot be tested |
| 2. Test planning | The conditions, the strategy, the release scope and dates | The test plan, with entry and exit criteria | The people the plan binds have agreed it |
| 3. Test case development | The conditions and the plan | Test cases, scripts, procedures and data | Cases are reviewed and each traces to a condition |
| 4. Environment setup | The environment and data needs in the plan | A test environment with build, accounts and data loaded | A smoke check passes on the deployed build |
| 5. Test execution | The build, the environment, the approved cases | Test logs, defect reports, a test report per cycle | The exit criteria are met, or a named owner accepts the shortfall |
| 6. Test closure | The results, the open defects, the plan | The closure report, archived testware, lessons learned | The report is delivered and every open defect has an owner |
The third column holds the artefacts. Search calls the set test artifacts, and ISTQB calls it testware. Phases three and four can run in parallel, and phase five repeats once per build.
Entry and exit criteria in the STLC
The second column of the table holds each phase’s entry criteria, and the fourth its exit criteria. A phase starts when its entry criteria are met and ends when its exit criteria are, so the exit of one phase is usually most of the entry to the next.
The ISTQB syllabus groups typical entry criteria as “availability of resources”, “availability of testware” and the “initial quality level of a test object (e.g., all smoke tests have passed)”. Typical exit criteria are “measures of thoroughness” such as coverage and unresolved defects, and “binary ‘yes/no’ criteria” such as “planned tests have been executed”. Source: ISTQB syllabus, section 5.1.3.
A criterion has to be checkable by someone other than its author. “Testing is complete” is a wish. “Every case in the plan has a recorded outcome on build 4.2, and no open defect is above minor” is a criterion.
Requirement analysis and test planning
Requirement analysis is reading. Testers go through the requirements, stories and acceptance criteria and list what can be checked. A requirement with no derivable expected result is sent back now, before any code depends on it. Where coverage has to be proved, each condition is entered against its requirement in a requirements traceability matrix.
Test planning turns the list into commitments for one release, written into the test plan template: scope, people, schedule, environments, risks and the criteria that open and close each later phase. The plan inherits its standing rules from the strategy (test plan vs test strategy, test strategy template). Exhaustive testing is out of reach, so the plan also records what is left out.
Test case development and environment setup
Test case design derives the cases from the conditions with a technique, and a test scenario names each situation before any steps exist. The cases go into the test case template. A test script then carries a case out, a test procedure puts cases in running order, and test data is chosen for what each case checks.
Environment setup produces a deployment whose differences from production are known. Both phases end at a test readiness review, where the entry criteria for execution are checked against evidence.
Test execution
Test execution runs the cases against the build and records each outcome as passed, failed, blocked or skipped. A failure the product caused becomes a defect report, which moves through the bug life cycle under the team’s defect management rules. Each build that fixes defects gets a cycle of regression testing.
The ISTQB Foundation Level syllabus (v4.0.1) lists eleven items a defect report logged during dynamic testing typically includes, among them identification of “the test object and test environment” and “any relevant test logs, database dumps, screenshots, or recordings”. Source: ISTQB Foundation Level syllabus, section 5.5.
A failure found by a script arrives with the runner’s log. One found by a person carries what that person wrote down, in the fields of the bug report template. This is the one phase where Notarus applies. Its widget captures the page the reporter is looking at, and console logs, network activity, page URL, viewport and browser travel with the report (evidence capture). Capture settings, browser support and performance budgets decide what is available.
Test closure
Test closure checks the exit criteria against what was done, gives every open defect an owner, archives the testware and writes the closure report. The report is written once, for whoever plans the next release.
One feature through the six phases
A web team adds a password reset to its sign-in page. The release is small, and every phase still has work in it.
- Requirement analysis. The story says a user can reset a forgotten password by email. Testers list the conditions: the link arrives, it works once, it expires, an unknown address gets the same message as a known one. The expiry time is missing from the story, so it goes back to the product owner, who sets it at one hour.
- Test planning. The plan puts the reset flow in scope on the three browsers the team supports, leaves the email provider’s own delivery out of scope, and sets the exit criteria: every case run on the release build, no open defect above minor.
- Test case development. Each condition gets cases, including a link used twice and a link opened after an hour. Test data is two accounts, one with an expired token prepared in advance.
- Environment setup. Staging gets the build and an email sandbox. The smoke check sends one reset email and opens the link.
- Test execution. The first cycle finds that the link works a second time in one browser. The defect report carries the steps, the browser and the network request that accepted the used token. The fix ships in the next build, and the second cycle re-runs the reset cases and the sign-in regression set.
- Test closure. The report states that the exit criteria are met, lists one minor wording defect deferred to the next sprint with an owner, and archives the cases for the next change to sign-in.
Is the software testing life cycle defined by a standard?
The six-phase STLC is a convention. The syllabus testers are certified against never uses the term.
The ISTQB Foundation Level syllabus (v4.0.1, September 2024) describes a test process of seven groups of activities: test planning, test monitoring and test control, test analysis, test design, test implementation, test execution and test completion. Source: ISTQB syllabus, section 1.4.1.
The same section says that although many of these activities “may appear to follow a logical sequence, they are often implemented iteratively or in parallel”. The syllabus draws no mapping to the six phases. The table is this page’s reading, and every quotation in it comes from section 1.4.1.
| STLC phase | ISTQB test activity | What the syllabus says |
|---|---|---|
| Requirement analysis | Test analysis | “analyzing the test basis to identify testable features” |
| Test planning | Test planning | “defining the test objectives and then selecting an approach that best achieves the objectives” |
| Test case development | Test design, then test implementation | “elaborating the test conditions into test cases and other testware”, then “Manual and automated test scripts are created” |
| Environment setup | Test design, then test implementation | “designing the test environment”, which then “is built and verified to be set up correctly” |
| Test execution | Test execution | “running the tests in accordance with the test execution schedule” |
| Test closure | Test completion | “A test completion report is created and communicated to the stakeholders” |
| No phase of its own | Test monitoring and test control | “the ongoing checking of all test activities and the comparison of actual progress against the plan” |
Monitoring and control run through every phase, so the six-phase list has no row for them.
The international standard on the subject is ISO/IEC/IEEE 29119-2:2021, the part titled Test processes, published in October 2021 as a second edition. Its published abstract says the document “specifies test processes that can be used to govern, manage and implement software testing for any organization, project or testing activity”. The abstract lists no phases.
How does the STLC sit inside the SDLC?
The software development life cycle (SDLC) is the whole route from requirement to maintenance, and the STLC is the testing strand that runs along it. One reading puts the whole STLC inside the SDLC’s testing stage, after coding. Only execution and the last step of environment setup need a running build. The earlier phases work from documents.
The ISTQB syllabus lists four good testing practices that hold in any SDLC model. The first reads: “For every software development activity, there is a corresponding test activity, so that all development activities are subject to quality control”. Source: ISTQB syllabus, section 2.1.2.
Requirement analysis can start on a draft requirement. Planning and case development can run during design, and scripts, data and the environment are prepared while the build takes shape. Closure hands the archived testware to maintenance, where each change reuses it for a regression run.
For sequential models, the syllabus says testers in the initial phases “typically participate in requirement reviews, test analysis, and test design”, and that dynamic testing waits for executable code (section 2.1.1).
How do the phases compress in agile delivery?
A sequential project passes through the six phases once for a release. An agile team passes through them again in every sprint.
The ISTQB syllabus says that in iterative SDLCs “typically two kinds of planning occur: release planning and iteration planning”. Source: ISTQB syllabus, section 5.1.2.
The placements below are typical ones.
| STLC phase | Where it runs in a sprint | What it shrinks to |
|---|---|---|
| Requirement analysis | Backlog refinement | Testable acceptance criteria on each story |
| Test planning | Release and iteration planning | Testing tasks on each story |
| Test case development | Before and during coding | Examples and automated checks written with the story |
| Environment setup | The delivery pipeline | An environment built for each change |
| Test execution | On every change | Pipeline runs and exploratory sessions |
| Test closure | Sprint review and retrospective | Open defects moved to the backlog, lessons for the next sprint |
The artefacts get lighter in step. The syllabus notes that agile projects favour “lightweight work product documentation and extensive test automation” (section 2.1.1). Entry and exit criteria survive under other names. Exit criteria “are often called Definition of Done”, and the entry criteria a story must meet are the Definition of Ready (section 5.1.3).
The agile testing quadrants check that a sprint holds more than one kind of test. Where each check sits in the sprint and who owns it is the subject of QA in agile happens at three sprint boundaries.
What goes wrong when a phase is skipped?
A skipped phase does its damage later, in a phase that looks unrelated to the cause.
“Early testing saves time and money” is the third of the seven testing principles in the ISTQB syllabus. The principle continues, “Defects that are removed early in the process will not cause subsequent defects in derived work products.” Source: ISTQB syllabus, section 1.3.
| Phase skipped | What happens next | Where it surfaces |
|---|---|---|
| Requirement analysis | Cases are written against requirements nobody checked for testability | Case development, as cases with no checkable expected result |
| Test planning | Scope, owners and exit criteria are never agreed | Execution, which ends when the date arrives |
| Test case development | Testing is improvised on the day | The test report, which cannot say what was covered |
| Environment setup | Tests run on an environment nobody verified | Execution, as blocked tests and failures the product did not cause |
| Test execution | The release ships on the evidence of earlier phases | Production, where users find the defects |
| Test closure | Open defects lose their owners and testware is not archived | The next release, which starts without a record |
The syllabus says that if entry criteria are not met, “it is likely that the activity will prove to be more difficult, time-consuming, costly, and riskier” (section 5.1.3).
Stopping early is a different act from skipping. The same section accepts running out of time or budget as a valid exit, provided “the stakeholders have reviewed and accepted the risk to go live without further testing”. The exit condition is what turns a phase into a gate, the argument of a QA process is a set of gates.
Related terms and guides
- Software testing life cycle: the short definition
- Test artifacts: the work products of testing
- Test condition: a testable aspect found in analysis
- Requirements traceability matrix: requirements mapped to tests
- Test plan vs test strategy: the per-release document and the standing one
- Entry and exit criteria: what opens and closes a phase
- Exhaustive testing: why a plan has to choose
- Test case design: deriving cases with a technique
- Test scenario: a one-line situation worth testing
- Test script: the instructions that carry a case out
- Test procedure: cases in running order
- Test data: the inputs and records a case needs
- Test environment: the deployment set aside for testing
- Test readiness review: the checkpoint before execution
- Test execution: running cases and recording outcomes
- Bug life cycle: the states a defect passes through
- Defect management: the rules a defect queue follows
- Regression testing: re-running tests after a change
- Test report: the summary of one cycle
- Test closure: ending the effort on a record
- Agile testing quadrants: a matrix for planning tests
- QA strategy: what it decides and how to write one: the decisions a plan inherits
- A QA process is a set of gates, not stages: the question at each handover
- QA in agile happens at three sprint boundaries: testing inside a sprint
- How to write test cases worth a second run: a case worth keeping
- Match a test environment where the bugs live: which differences to close
- Testing metrics that count activity prove nothing: numbers a report can trust