Blog / Stages of Software Testing: The 6 STLC Phases and 4 Test Levels
Guide

Stages of Software Testing: The 6 STLC Phases and 4 Test Levels

Stages of software testing can mean six STLC phases or four test levels. Get each phase's entry and exit criteria, and what a weekly team can compress.

You’re asked to set up a testing process, and the first two guides you open on the stages of software testing hand you lists that don’t match. One runs from requirement analysis to test closure. The other climbs from unit tests to acceptance tests. Both are right, and a team that merges them builds a process with a gap in what it tests.

The first list is the software testing life cycle (STLC), and the second is the test levels. If your team ships every week, you’ll leave knowing which part of each phase can shrink and which decision can’t.

What you’ll learn

  • The difference between STLC phases and test levels, and what a process misses when it tracks only one
  • Entry criteria, work and exit criteria for each of the six phases
  • How unit, integration, system and acceptance tests move through those phases
  • Which phases a weekly release can shrink, and the decision each one still has to make

What Are the Stages of Software Testing?

The stages of software testing are the steps testing moves through between a requirement and a release, and the term covers two different lists. The STLC phases say what testing should be doing at a given moment. The test levels say how big a piece of the system a given test is checking.

STLC phasesTest levels
What it ordersThe work of testing, in timeThe scope of the thing under test
The listRequirement analysis, test planning, test case development, environment setup, test execution, test closureUnit, integration, system, acceptance
The question it answersWhat should testing be doing right now?How much of the product does this test touch?
Who owns itWhoever owns quality for the releaseDevelopers at the bottom, QA in the middle, the business at the top
A gap here meansA decision got skipped, like what done meansA whole class of bug has no test that can see it

The two lists cross. Every level goes through every phase, each on its own clock.

The one-sentence version

STLC phases are when testing does what, and test levels are how much of the system a test touches.

The 6 STLC Phases, With Entry and Exit Criteria

Each phase starts when its entry criteria hold and ends when its exit criteria do, and the exit of one phase is the entry of the next. A phase that starts before its entry criteria hold is working from a guess.

#PhaseStarts whenThe workDone when
1Requirement analysisRequirements or user stories exist, even rough onesRead them for what can be tested, find the gaps, raise questionsEach requirement is testable or has an open question with an owner
2Test planningTestable requirements and a target releaseSet scope, owners, levels, the automation approach, and what done meansA plan the release owner has agreed to
3Test case developmentAn agreed planWrite cases and the data each one needs, mapped to requirementsEvery in-scope requirement has a reviewed case
4Environment setupKnown cases and their data needsStand up the environment, seed data and test accountsA smoke test passes on the build you mean to test
5Test executionA ready environment and the build under testRun cases, log defects, retest fixes, rerun the regression setThe plan’s exit bar is met, such as no open critical defects
6Test closureExecution’s exit bar is met, or a decision to ship with known issuesRecord what was tested, what wasn’t, and what escapedThe release decision and next cycle’s changes are written down

1. Requirement Analysis

Analysis reads each requirement the way a tester would, looking for what can’t be checked yet. I’ve been part of many companies with different QA philosophies, and the weakest kind of QA is too married to the spec. A requirement says what one feature should do, and checking exactly that misses how people actually move through the product. Great QA isn’t possible without understanding the product, so testers spend this phase learning the product as well as the ticket.

2. Test Planning

Planning turns testable requirements into decisions about scope and ownership. The one that matters most is what counts as done, because execution can’t finish without it. The test plan is where those decisions get written down.

3. Test Case Development

Test case development writes each case as steps and an expected result, with the data it needs. It’s also where you pick which cases get automated, ranked by payoff against upkeep the way a test automation strategy orders them. Newer AI testing tools have started drafting cases here too, which moves the human work toward reviewing them.

4. Environment Setup

Cases need somewhere to run that behaves like production. A test environment covers everything around the build, from servers to seeded test data, that makes a result carry over to real users. The exit criterion is a smoke test on the exact build you mean to test, so a broken environment gets caught before any case runs against it.

5. Test Execution

Execution runs the cases and logs each defect with the steps to reproduce it. Once fixes land, it reruns the regression testing set, so a fix for one defect doesn’t break something that worked last week. Execution ends when the plan’s exit bar is met.

6. Test Closure

Closure writes down which bugs got past testing, whether your team caught them after release or a user did. Keep the output short. Pair each escaped bug with the case that would have caught it, and put that case in the next cycle’s plan.

Start Test Cases From a Draft

Skip the blank page. Review the tests Pie drafts from your app.

The 4 Test Levels and How They Cross the Phases

Test levels sort tests by scope, from one function up to the whole product in a user’s hands. Ham Vocke’s practical test pyramid, published on Martin Fowler’s site, describes the same idea as buckets of different granularity, with fewer tests the higher you go.

  • Unit: One function or class in isolation, with its dependencies swapped for stand-ins. Developers write and run these on every change.
  • Integration: Pieces working together with real dependencies, like a service and its database or two services over an API. Teams run these with the same frameworks they use for unit tests or with dedicated integration testing software.
  • System: The whole assembled product, tested end to end in an environment built like production. QA usually owns this level.
  • Acceptance: Whether the product meets the need it was built for, judged by product owners or users. User acceptance testing (UAT) lives here.

Each level runs through all six phases, and the clock stretches as you go up. A developer writing a unit test goes through all six in minutes, often without naming any of them. At the system level, each phase can have its own owner and its own meeting, and the cycle takes days. Test automation carries most of the lower levels on its own, which is why the phases blur there and stay visible at the top.

What a Weekly Team Can Compress, and What It Can’t Skip

A team shipping every week doesn’t have six phases of calendar time. It has the same six decisions to make. Each phase exists to settle one question, and the document around that question is the part you can shrink. DORA’s research puts the goal plainly: “fast feedback on the impact of changes throughout the software delivery lifecycle.” Phases that run as a block after development is done are the opposite of that.

PhaseThe decision you can’t skipThe weekly version
Requirement analysisWhat is testable, and what’s still unclearTen minutes on the ticket before work starts
Test planningWhat done means for this changeTwo or three lines in the ticket or pull request
Test case developmentWhich cases, and which get automatedAutomated cases written alongside the code
Environment setupWhether the environment behaves like productionBuilt once in code, rebuilt by the pipeline on every change
Test executionWhether the agreed cases passedThe pipeline on every merge, plus a scheduled full run
Test closureWhat escaped, and what changes next weekOne line per escaped bug, with the case that would have caught it

Two rows don’t shrink the way the others do. Environment setup is the one phase you pay for once instead of every release. Build it in code and each later cycle inherits it. Execution can move into the pipeline, but its exit bar can’t move with it. If nobody wrote down what done means in planning, execution has no point at which it ends, and the release ships on a feeling.

Pick the one decision your team made last release without a record, and put it in the ticket for the next one.

Where Pie Sits in the Testing Life Cycle

Pie takes the repeatable work out of two phases, test case development and execution. Here is what our agentic testing platform does there:

  • Draft tests: Pie explores your app’s flows and writes tests from what it finds, so test case development starts from a draft your team reviews.
  • Scheduled runs: A Loop runs your suite on a schedule you set, so execution doesn’t wait for somebody to start it.
  • Issue triage: Pie sorts a run’s related findings into issues, ready for your team to triage.

The other four phases run on what your team knows about the product. Planning sets the exit bar that Pie’s results are judged against. Pie tests the web URL or app build you give it, which keeps environment setup in your hands.

Six Decisions, Smaller Documents

The stages of software testing are two lists, and they answer different questions. Phases put testing’s work in order, and levels decide how much of the product each test can see. A process with all six phases and only unit tests has no test at three of the four levels.

The phases were written for long release cycles, and the documents around them can shrink to fit a weekly one. The decisions can’t. Find the one decision your team skips, settle it at the next sprint planning, and keep the document around it as short as it can be.

Put Test Execution on a Schedule

Pie drafts the tests and runs them on your schedule. Your team keeps the six decisions.

Frequently Asked Questions

The term covers two lists. The software testing life cycle has six phases that order the work, from requirement analysis to test closure. The four test levels are unit, integration, system and acceptance, ordered by how much of the product a test touches. Every level goes through every phase.
Six, in order. Requirement analysis decides what can be tested. Planning sets scope and what done means. Test case development writes the cases. Environment setup builds a place to run them. Execution runs them and logs defects. Closure records what escaped and what changes next cycle.
Test levels group tests by how much of the system they touch. Unit tests check one function or class, integration tests check pieces working together, system tests check the whole assembled product, and acceptance tests check that it does what the business asked for.
Entry criteria are the conditions that must hold before a phase starts, such as an approved plan before test case development. Exit criteria are the conditions that end it, such as no open critical defects before execution closes. One phase's exit is the next phase's entry.
Two splits come up most. Manual testing has a person run the checks, and automated testing has code run them. Functional testing checks what the software does, and non-functional testing checks how well it does it, such as speed, security and accessibility.
It's an informal rule of thumb that splits a project's effort into about 40% planning and design, 20% coding and 40% testing. A team shipping weekly rarely fits it, because testing overlaps coding instead of following it.
It can skip the documents, not the decisions. Each phase exists to settle one question, like what done means or whether the environment is ready. A weekly team can settle several in one conversation, but a skipped decision comes back as a bug in production.
Pie takes the repeatable work in two phases. In test case development it explores your app's flows and writes tests for your team to review. In execution it runs the suite on a schedule you choose and sorts related findings into issues for triage.
Dhaval Shreyas
Dhaval Shreyas
CEO & Co-founder at Pie

13 years building mobile infrastructure at Square, Facebook, and Instacart. Now building the QA platform he wished existed the whole time. LinkedIn →