Software testing life cycle (STLC): the six phases

The software testing life cycle (STLC) phase by phase: what goes in, the artefact that comes out, the exit condition, and how the phases compress in a sprint.

Six thick glass slabs rise as a staircase from left to right, the last step edged in orange

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.

PhaseWhat goes inWhat comes outExit condition
1. Requirement analysisRequirements, stories, acceptance criteriaTest conditionsEvery requirement in scope has a condition, or a reason it cannot be tested
2. Test planningThe conditions, the strategy, the release scope and datesThe test plan, with entry and exit criteriaThe people the plan binds have agreed it
3. Test case developmentThe conditions and the planTest cases, scripts, procedures and dataCases are reviewed and each traces to a condition
4. Environment setupThe environment and data needs in the planA test environment with build, accounts and data loadedA smoke check passes on the deployed build
5. Test executionThe build, the environment, the approved casesTest logs, defect reports, a test report per cycleThe exit criteria are met, or a named owner accepts the shortfall
6. Test closureThe results, the open defects, the planThe closure report, archived testware, lessons learnedThe 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.

  1. 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.
  2. 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.
  3. 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.
  4. Environment setup. Staging gets the build and an email sandbox. The smoke check sends one reset email and opens the link.
  5. 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.
  6. 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 phaseISTQB test activityWhat the syllabus says
Requirement analysisTest analysis“analyzing the test basis to identify testable features”
Test planningTest planning“defining the test objectives and then selecting an approach that best achieves the objectives”
Test case developmentTest design, then test implementation“elaborating the test conditions into test cases and other testware”, then “Manual and automated test scripts are created”
Environment setupTest design, then test implementation“designing the test environment”, which then “is built and verified to be set up correctly”
Test executionTest execution“running the tests in accordance with the test execution schedule”
Test closureTest completion“A test completion report is created and communicated to the stakeholders”
No phase of its ownTest 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 phaseWhere it runs in a sprintWhat it shrinks to
Requirement analysisBacklog refinementTestable acceptance criteria on each story
Test planningRelease and iteration planningTesting tasks on each story
Test case developmentBefore and during codingExamples and automated checks written with the story
Environment setupThe delivery pipelineAn environment built for each change
Test executionOn every changePipeline runs and exploratory sessions
Test closureSprint review and retrospectiveOpen 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 skippedWhat happens nextWhere it surfaces
Requirement analysisCases are written against requirements nobody checked for testabilityCase development, as cases with no checkable expected result
Test planningScope, owners and exit criteria are never agreedExecution, which ends when the date arrives
Test case developmentTesting is improvised on the dayThe test report, which cannot say what was covered
Environment setupTests run on an environment nobody verifiedExecution, as blocked tests and failures the product did not cause
Test executionThe release ships on the evidence of earlier phasesProduction, where users find the defects
Test closureOpen defects lose their owners and testware is not archivedThe 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.

Common questions

What is the software testing life cycle (STLC)?

The software testing life cycle (STLC) is the ordered set of phases the testing of a release passes through, from reading the requirements to closing the test effort. Each phase takes a defined input, produces an artefact such as a test plan or a test report, and ends on a condition somebody can check.

What are the six phases of the STLC?

The six phases of the STLC are requirement analysis, test planning, test case development, test environment setup, test execution and test closure. Environment setup can run in parallel with case development, and execution repeats as one cycle per build until the exit criteria in the test plan are met.

What is the difference between the STLC and the SDLC?

The SDLC, the software development life cycle, covers the whole route from requirements through design, coding, testing and release to maintenance. The STLC covers the testing activities within it. Test execution needs a running build, and the earlier STLC phases can start alongside the requirements and design stages of the SDLC.

Is the STLC defined by ISTQB or by an ISO standard?

The six-phase STLC is a convention. The ISTQB Foundation Level syllabus (v4.0.1) never uses the term and describes seven groups of test activities, from test planning to test completion. The published abstract of ISO/IEC/IEEE 29119-2:2021 says the standard specifies test processes, and the abstract lists no phases.

What test artifacts does each STLC phase produce?

Requirement analysis produces test conditions, test planning produces the test plan, and test case development produces cases, scripts, procedures and test data. Environment setup produces a verified test environment. Execution produces test logs, defect reports and a test report per cycle, and closure produces the closure report and the archived testware.

How does the STLC work in agile?

Agile teams run the same phases inside every sprint. Analysis happens as stories are refined, planning at release and iteration planning, case development and execution alongside coding, and closure at the sprint review and retrospective. The artefacts get lighter, and exit criteria appear as the definition of done.

What are entry and exit criteria in the STLC?

Entry criteria are the conditions that must hold before an STLC phase starts, such as an approved test plan or a test environment that passes a smoke check. Exit criteria are the conditions that close it, such as every planned case run and no open defect above an agreed severity. The test plan sets both for each phase.

Are there six or seven phases of the STLC?

Six is the usual count: requirement analysis, test planning, test case development, environment setup, execution and closure. Lists of seven split one of them, and the ISTQB syllabus describes seven groups of test activities, from test planning to test completion, with monitoring and control as one group. Some overviews use four. The count matters less than each phase having an input, an output and an exit.

What are the seven principles of testing?

The ISTQB Foundation Level syllabus (v4.0.1, section 1.3) lists seven principles: testing shows the presence, not the absence of defects; exhaustive testing is impossible; early testing saves time and money; defects cluster together; tests wear out; testing is context dependent; and the absence-of-defects fallacy. The third is the case for starting the STLC before code exists.

How do you explain the STLC in an interview?

Name the six phases in order, then say what makes it a life cycle: each phase has entry criteria, produces an artefact and ends on an exit condition. Add that environment setup can run alongside case development, that execution repeats once per build, and that agile teams run the phases inside each sprint. An example from a real release beats a definition.

What happens when an STLC phase is skipped?

A skipped STLC phase shows its cost in a later one. Skipped planning leaves execution with no agreed end, a skipped environment check fills the tracker with failures the product did not cause, and skipped closure leaves the next release with no record of what was deferred.

The Notarus team

The people who build Notarus. We write up the decisions behind the product when the reasoning is worth more than the changelog line.

Keep reading

Reports with the evidence attached.

Start free, one script tag.

<script src="…/widget.js" data-key="pb_pub_…">