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.

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
| # | Stage | Entry criteria | Key activities | Exit criteria / deliverable |
|---|---|---|---|---|
| 1 | Requirement analysis | Requirements or user stories available | Review requirements, find testable items, raise questions | Clarified requirements, draft RTM |
| 2 | Test planning | Analysed requirements | Define scope, approach, effort, roles, risks, tools | Approved test plan |
| 3 | Test case design | Approved test plan | Write test scenarios, test cases and test data | Reviewed test cases, updated RTM |
| 4 | Test environment setup | Plan and environment needs known | Prepare servers, builds, accounts, data; smoke test | Ready, smoke-tested environment |
| 5 | Test execution | Cases ready, environment ready, build delivered | Run tests, log defects, retest fixes, regression | Execution results, defect reports |
| 6 | Test cycle closure | Execution complete or exit criteria met | Evaluate results, report, record lessons | Test closure report |
Stage 1: Requirement analysis
Goal: understand what needs testing before anything is written.
Activities:
- Read requirements, user stories and acceptance criteria.
- Mark each requirement as testable or not, and note which types of testing apply (functional, performance, security, accessibility).
- 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.
- 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.
- Execute test cases and mark each Passed, Failed, Blocked or Not Run.
- Log a defect for every failure, with steps, expected vs actual result, and evidence.
- Retest fixed defects, then run regression tests around the change.
- 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."
| Stage | What the tester does | Output |
|---|---|---|
| Requirement analysis | Asks: 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 planning | Scope: 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 design | Valid login; wrong password; 4 failed attempts then success; 5th failure locks; login during lock; uppercase email | 6 test cases linked to REQ-01/02 |
| Environment setup | Test build deployed, 3 test accounts created, lock timer set to 1 minute; smoke test passes | Ready environment |
| Test execution | 5 pass; "uppercase email" fails (treated as a new user). Defect logged, fixed, retested, regression on login passes | Results + 1 closed defect |
| Closure | Exit criteria met: all cases run, no open high-severity defects | Closure 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 Phase | Waterfall version | Agile 2026 version | Entry criteria | Exit criteria |
|---|---|---|---|---|
| Requirement analysis | 2-week doc review | 3-amigos meeting per story (30 min) | Story with draft acceptance criteria | Given/When/Then agreed, testability confirmed |
| Test planning | 30-page test plan | 1-page release strategy per epic, RACI, risk map | Epic scoped, environments named | Reviewed by PM + tech lead |
| Test case design | Full test cases in Zephyr | Executable BDD or checklist per story, linked to the ticket | Story kicked off | Peer-reviewed by second QA |
| Environment setup | Manual staging build | Ephemeral preview env on every PR | PR opened | Preview URL green in CI |
| Test execution | Sequential 3-day phase | Continuous during sprint + exploratory charters | Story deployed to preview | All checks green, exploratory session complete |
| Closure | End-of-project sign-off | Sprint review + retro + escaped-defect log | All stories done | Retro action items captured |
STLC vs SDLC
| SDLC | STLC | |
|---|---|---|
| Covers | The whole product life cycle | Testing activities only |
| Goal | Deliver working software | Confirm quality and find defects |
| Owned by | Whole team | Mainly QA / test team |
| Relationship | Contains the STLC | Runs 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.
