SoftwareTestPilot
Software Testing FundamentalsPublished: Updated: · 1 week ago11 min read

STLC Stages: 6 Phases of the Software Testing Life Cycle

The 6 software testing life cycle stages explained with entry and exit criteria, deliverables, a worked login-feature example and common mistakes.

SoftwareTestPilot
QA Editorial Team
Share:XLinkedInWhatsApp
STLC Stages: 6 Phases of the Software Testing Life Cycle: Software Testing Fundamentals article cover, SoftwareTestPilot.com
STLC Stages: 6 Phases of the Software Testing Life Cycle: Software Testing Fundamentals article cover, SoftwareTestPilot.com

Short answer: the 6 STLC stages

Short answer: The software testing life cycle (STLC) has six stages: requirement analysis, test planning, test case design, test environment setup, test execution, and test cycle closure. Each stage has entry criteria (what must be ready before it starts), activities, and exit criteria (what must be true before you move on), and each produces a deliverable the next stage depends on.

This guide walks through every stage, then follows one feature through all six so you can see how they connect in real work.

What the STLC is (and what it is not)

The STLC is the testing part of the wider software development life cycle (SDLC). The SDLC covers the whole product: requirements, design, build, test, release and maintenance. The STLC zooms in on how testing itself is planned, done and wrapped up.

Two terms you will see in every stage:

  • Entry criteria: conditions that must be met before a stage begins, such as "requirements are signed off".
  • Exit criteria: conditions that must be met before a stage is considered done, such as "all high-priority test cases executed".

The six-stage model is a common industry convention used in training and interviews, not a formal standard. The ISTQB Foundation syllabus describes a similar set of test activities (planning, monitoring and control, analysis, design, implementation, execution, completion). Teams rename, merge or overlap stages to suit their process.

The 6 STLC stages at a glance

#StageEntry criteriaKey activitiesExit criteria / deliverable
1Requirement analysisRequirements or user stories availableReview requirements, find testable items, raise questionsClarified requirements, draft RTM
2Test planningAnalysed requirementsDefine scope, approach, effort, roles, risks, toolsApproved test plan
3Test case designApproved test planWrite test scenarios, test cases and test dataReviewed test cases, updated RTM
4Test environment setupPlan and environment needs knownPrepare servers, builds, accounts, data; smoke testReady, smoke-tested environment
5Test executionCases ready, environment ready, build deliveredRun tests, log defects, retest fixes, regressionExecution results, defect reports
6Test cycle closureExecution complete or exit criteria metEvaluate results, report, record lessonsTest closure report

Stage 1: Requirement analysis

Goal: understand what needs testing before anything is written.

Activities:

  1. Read requirements, user stories and acceptance criteria.
  2. Mark each requirement as testable or not, and note which types of testing apply (functional, performance, security, accessibility).
  3. Raise questions where a requirement is vague. "The page should load fast" is not testable; "the page loads within 2 seconds on a standard connection" is.
  4. Start a requirement traceability matrix (RTM) that maps each requirement to the tests that will cover it. See our guide to the requirement traceability matrix.

Why it matters: a defect found in a requirement costs a conversation; the same defect found after release costs a fix, a retest and a deployment.

Stage 2: Test planning

Goal: decide how testing will be done, by whom, and with what.

A test plan usually covers scope (in and out), approach, test levels and types, environments, tools, roles, schedule, effort estimates, risks with mitigations, and the entry and exit criteria for the remaining stages. Our test plan template guide shows a full structure.

Limitation: in agile teams the "test plan" is often a short page per release or sprint rather than a long document. The thinking still has to happen; only the format shrinks.

Stage 3: Test case design

Goal: turn requirements into concrete checks.

Activities:

  • Write test scenarios (what to test) and break them into test cases (exact steps, data and expected results). Our 15 worked test scenario vs test case examples show the difference.
  • Apply design techniques such as equivalence partitioning, boundary value analysis and decision tables.
  • Prepare test data.
  • Get cases peer-reviewed and link each one in the RTM.

For writing style, see the test case template and writing guide.

Stage 4: Test environment setup

Goal: a place where tests can actually run and give trustworthy results.

This includes the right build, configuration, browsers or devices, test accounts, test data and access to dependent services. It is often handled by DevOps or developers, and can run in parallel with stage 3.

Finish with a smoke test: a short check that the build installs and its main paths work. If the smoke test fails, execution should not start; you would only log environment noise as defects.

Stage 5: Test execution

Goal: run the tests and record what happened.

  1. Execute test cases and mark each Passed, Failed, Blocked or Not Run.
  2. Log a defect for every failure, with steps, expected vs actual result, and evidence.
  3. Retest fixed defects, then run regression tests around the change.
  4. Keep the RTM updated so you can show which requirements are covered and passing.

Defects then move through their own states; see the defect life cycle.

Stage 6: Test cycle closure

Goal: decide whether testing is done and learn from the cycle.

Activities: check exit criteria, summarise results (cases run, pass rate, open defects by severity), list known risks for release, archive test assets, and hold a short retrospective. The output is a test closure report that helps stakeholders make the release decision.

Common mistake: skipping closure. Without it, the same environment delays and unclear requirements repeat in the next release.

Worked example: one feature through all six stages

Illustrative example. Feature: "Users can log in with email and password; the account locks after 5 failed attempts."

StageWhat the tester doesOutput
Requirement analysisAsks: does the lock last a fixed time or until reset? Is the email case-sensitive?2 clarified rules, RTM rows REQ-01 (login), REQ-02 (lockout)
Test planningScope: web login only, mobile out of scope. Functional + basic security checks. Risk: lockout timer hard to test, so ask for a configurable timer in test.1-page plan for the sprint
Test case designValid login; wrong password; 4 failed attempts then success; 5th failure locks; login during lock; uppercase email6 test cases linked to REQ-01/02
Environment setupTest build deployed, 3 test accounts created, lock timer set to 1 minute; smoke test passesReady environment
Test execution5 pass; "uppercase email" fails (treated as a new user). Defect logged, fixed, retested, regression on login passesResults + 1 closed defect
ClosureExit criteria met: all cases run, no open high-severity defectsClosure note with one lesson: confirm email case rules at analysis

Notice how the failing case traces back to a question that stage 1 could have caught. That link is the whole point of following the stages.

STLC in agile and CI/CD

In Scrum, all six stages happen inside each sprint, usually overlapping: analysis during refinement, design while developers build, execution as stories finish, and closure in the sprint review or retrospective. In CI/CD pipelines, automated tests run execution continuously, but analysis, planning and closure still need people.

Each stage: waterfall version vs a 2-week sprint

Teams moving from waterfall to agile still run all six stages; they just shrink and repeat them per story. This table shows what each stage typically looks like in both setups.

STLC PhaseWaterfall versionAgile 2026 versionEntry criteriaExit criteria
Requirement analysis2-week doc review3-amigos meeting per story (30 min)Story with draft acceptance criteriaGiven/When/Then agreed, testability confirmed
Test planning30-page test plan1-page release strategy per epic, RACI, risk mapEpic scoped, environments namedReviewed by PM + tech lead
Test case designFull test cases in ZephyrExecutable BDD or checklist per story, linked to the ticketStory kicked offPeer-reviewed by second QA
Environment setupManual staging buildEphemeral preview env on every PRPR openedPreview URL green in CI
Test executionSequential 3-day phaseContinuous during sprint + exploratory chartersStory deployed to previewAll checks green, exploratory session complete
ClosureEnd-of-project sign-offSprint review + retro + escaped-defect logAll stories doneRetro action items captured

STLC vs SDLC

SDLCSTLC
CoversThe whole product life cycleTesting activities only
GoalDeliver working softwareConfirm quality and find defects
Owned byWhole teamMainly QA / test team
RelationshipContains the STLCRuns inside the SDLC

Common mistakes

  • Starting test design before requirements are clarified.
  • Treating entry and exit criteria as paperwork instead of real gates.
  • Starting execution on an environment that failed its smoke test.
  • Not updating the RTM, so coverage cannot be proven.
  • Skipping closure and losing the lessons learned.

Interview-ready answer

"The STLC has six stages: requirement analysis, test planning, test case design, environment setup, test execution and test closure. Each has entry and exit criteria and a deliverable, such as the RTM, the test plan, test cases and the closure report. In agile, these stages overlap inside each sprint."

Likely follow-ups: What are entry and exit criteria? Which stages can run in parallel? (design and environment setup) What is in a test closure report?

Next step

Practise the stages on real material: the free manual testing courses cover test design and defect reporting step by step, and you can browse checklists and templates in QA resources. Stuck on an STLC interview question? Ask it in the QA community.

For the official wording of test activities, see the ISTQB Foundation Level syllabus.

Frequently asked questions

1.How many stages are in the STLC?
Six in the common model. Some sources merge or split stages, so focus on the activities rather than the exact count.
2.Which STLC stage is most important?
Requirement analysis has the biggest effect on later cost, because unclear requirements produce wrong test cases and missed defects.
3.Can the STLC stages overlap?
Yes. Test case design and environment setup commonly run in parallel, and in agile all stages overlap within a sprint.