Blog
Software Testing Life Cycle: STLC Phases Explained

Rishabh Kumar
Published on

Table of contents
The software testing life cycle (STLC) is the sequence of activities a team follows to plan, design, run and close testing. It sits inside the software development life cycle (SDLC), which covers everything from requirements to release. Knowing both, and how they connect, decides when quality checks happen, who does them and how quickly defects are found.
Traditional approaches pushed testing to the end of development, creating bottlenecks, late feedback and expensive fixes. Modern teams test throughout the SDLC, using shift-left practices and continuous testing in their delivery pipelines.
This guide explains the six STLC phases, the testing levels that run across the SDLC, how waterfall, agile and DevOps teams organise them, and how AI-assisted test automation helps testing keep pace with development.
STLC vs SDLC
SDLC | STLC | |
|---|---|---|
What it covers | The whole life of the software, from requirements to release and maintenance | The testing activities within that life |
Main goal | Build and deliver working software | Confirm the software meets its requirements and quality standards |
Who’s involved | Product, design, development, QA and operations | Mainly QA, with developers and business stakeholders |
Phases | Requirements, design, development, testing, deployment and maintenance | Requirement analysis, test planning, test case development, environment set-up, test execution and test closure |
How they connect | Contains the STLC | Runs inside the SDLC, ideally alongside every SDLC phase rather than after development |
The Six Software Testing Life Cycle Phases
Each of the testing phases has a clear start point, a set of activities and an output you can check before moving on.

Testing Phase | Main Activities | Entry Criteria | Exit Criteria and Outputs |
|---|---|---|---|
1. Requirement analysis | Review requirements, find what’s testable, clarify gaps | Requirements, user stories and acceptance criteria are available | Testable requirements and a traceability matrix |
2. Test planning | Set scope, approach, effort, tools, risks and schedule | Requirements have been analysed | An approved test plan |
3. Test case development | Write test cases and scripts, prepare test data | The test plan is approved | Reviewed test cases, automation and data |
4. Environment set-up | Prepare environments, configuration and integrations | The test plan and environment needs are agreed | A ready environment and a passing smoke test |
5. Test execution | Run tests, log defects, retest fixes | Test cases and the environment are ready | Results, defect reports and updated traceability |
6. Test closure | Review results, report, record lessons learned | Execution is complete and critical defects are fixed or accepted | A closure report and a release recommendation |
Phase 1: Requirement Analysis
In the first of the testing phases, your team studies the requirements, user stories and acceptance criteria to work out what can be tested and how.
Identify testable requirements and the types of testing you’ll need
Clear up vague or missing details with product owners and analysts
Note risks, dependencies and areas that need extra attention
Start a traceability matrix that links each requirement to the tests that will cover it
A vague requirement caught here takes a conversation to fix. The same gap found after the code is written takes a rebuild.
Phase 2: Test Planning
Next, the test lead sets out how testing will run.
Define the scope, objectives and anything out of scope
Choose the approach, testing types and how much to automate
Estimate effort and assign responsibilities
Pick tools and environments
Identify risks and how you’ll manage them
Agree entry and exit criteria for each testing phase
A good plan sets the direction for every testing phase that follows, and our guide to test planning walks you through what to include and how to build one your team will actually use.
Phase 3: Test Case Development
Now your team designs and writes the tests.
Write test cases with clear steps, data and expected results
Build or update automated tests for checks you’ll repeat
Prepare test data, including edge cases
Review test cases with peers and business stakeholders
Update the traceability matrix
Clear steps, realistic data and specific expected results are what separate a useful test case from a vague one, and you can see formats, templates and real examples in our guide to test cases.
Phase 4: Test Environment Set-Up
You prepare the environment the tests will run in, often while test cases are still being written.
Set up servers, databases, configuration and integrations
Load or generate test data
Confirm the team has access
Run a smoke test to check the environment is usable
Phase 5: Test Execution
This is where you run the tests and record what happens.
Run manual and automated tests according to the plan
Log defects with clear steps, evidence and severity
Retest fixes and run regression to catch side effects
Track progress against the plan and update traceability
Phase 6: Test Closure
In the last of the testing phases, you wrap up testing for the release.
Check the exit criteria have been met
Summarise results, coverage and open defects
Recommend whether the release is ready
Record lessons learned for the next cycle
Archive test assets and evidence
The closure report is where testing turns into a release decision, so it needs to name residual risk and give a clear recommendation, not just list pass rates.
Also read: our guide to writing a test closure report that release stakeholders will actually use.
Testing Levels Across the SDLC
Alongside the software testing life cycle, testing happens at different levels. Each level checks a different part of quality, and people often call these “testing phases” too, so it helps to keep the two ideas separate.
Testing Level | What It Checks | Who Does It | When It Runs |
|---|---|---|---|
Individual functions, methods and classes | Developers | Throughout development | |
How components and systems work together | Developers, QA and automation engineers | As components are combined | |
The complete application against requirements | QA teams | When features are complete, ideally inside the sprint | |
Whether the application meets business needs | Business users and stakeholders | Before release | |
That changes haven’t broken existing features | QA, usually automated | After every change, and before every release |
Unit Testing
Unit testing checks small pieces of code in isolation. Developers write unit tests alongside the code, then run them locally and in CI on every commit.
Checks inputs produce the expected outputs
Covers edge cases and boundaries
Confirms errors are handled properly
Runs through the logic branches in the code
Many teams aim for somewhere between 70% and 90% coverage of business logic, as a rule of thumb. Unit tests can’t catch integration problems, UI issues or broken end-to-end workflows, so you still need the other levels.
Integration Testing
Integration testing checks that separately built components work together. It catches interface mismatches, data format problems and failures in how systems talk to each other.
Integration Level | Example |
|---|---|
Component integration | Authentication, payments and reporting working together |
System integration | Your application connecting to payment gateways, third-party APIs, databases and messaging |
Enterprise integration | Several applications working together, such as ERP with CRM and finance systems |
System Testing
System testing checks the complete application against its requirements, the way users will experience it, in an environment that mirrors production.
System Testing Type | What It Checks |
|---|---|
Functional | Features work as specified |
Performance | The application handles expected load and response times |
Security | It’s protected against vulnerabilities and unauthorised access |
Usability | The interface is clear and easy to use |
Compatibility | It works across browsers and operating systems |
User Acceptance Testing
UAT confirms the application meets business needs before release. Business users run realistic scenarios, such as processing orders, producing reports or handling service requests, rather than technical test cases.
When your automated tests are written in business-readable language, business users can see what’s already been proven and spend their UAT time judging business fit.
Regression Testing
Regression testing confirms that changes haven’t broken anything that already worked. It runs after every change in CI, overnight, and before every release.
Regression suites grow as your application grows, and scripted automation can break with every UI change. Keeping them fast and easy to maintain is one of the hardest parts of the software testing life cycle.
Also read: our guide to automated regression testing shows how teams run regression continuously without the maintenance piling up.
How Waterfall, Agile and DevOps Teams Run the Testing Phases
Waterfall
Waterfall follows fixed stages, with testing after development:
That leads to familiar problems:
Developers hear about defects weeks after writing the code, when the context has gone
Defects cost more to fix the later they’re found
All the testing phases get squeezed into one window, which delays releases
Deadlines force testing to be cut short
Agile
Agile teams run the testing phases inside each sprint. Test design starts alongside development, automated tests run as features are finished, and defects get fixed before the sprint ends. The same six STLC phases still happen, just in small, fast cycles for each feature.
Running all six testing phases inside a two-week sprint takes a different mindset as well as different tools. Our guide to agile testing explains the principles, practices and team habits that make it work.
DevOps and Continuous Testing
DevOps adds continuous integration and delivery. Automated tests run on every change, so you get fast feedback and can release more often.
Pipeline Stage | Tests | Typical Duration |
|---|---|---|
Commit | Unit tests and a short smoke suite | Minutes |
Acceptance | Functional and integration tests for the change | Under an hour |
Deployment verification | Smoke tests after deployment | Minutes |
Once tests run on every commit, the pipeline itself becomes part of your testing strategy. To see how teams design that set-up, from pipeline stages to quality gates, read our guide to DevOps testing.
Shift-Left Testing: Starting the Testing Phases Earlier
Shift-left testing moves the testing phases earlier in the SDLC. You find defects during requirements, design and development, instead of in system testing or UAT.
Why Earlier is Cheaper
Defects get more expensive the longer they survive. A gap in a requirement can be fixed in a meeting. The same gap found in production can mean an emergency fix, unhappy customers and damage to your reputation.
The exact cost varies between organisations, so track your own cost per defect at each stage to build your case.
Testing from Requirements
The furthest you can shift left is designing tests from requirements before any code exists. Tests written from user stories and acceptance criteria:
Expose vague or contradictory requirements straight away
Give developers clear acceptance criteria to build against
Are ready to run as soon as the feature is built
Remove the wait between development finishing and testing starting
In-Sprint Automation
In-sprint automation means building automated tests in the same sprint as the feature. Without it, automation falls behind: development finishes sprint 5 while the automated tests are still catching up on sprint 3.
To keep automation inside the sprint, you need:
Fast test creation, for example through plain English authoring
Low maintenance, so time goes on new tests rather than repairs
More people able to automate, including manual testers and business analysts
Making the Testing Phases Work Across the SDLC
Run Testing Phases in Parallel Where You Can
Parallel Pattern | Example |
|---|---|
Unit and integration | Developers run unit tests locally while CI runs integration tests on recent builds |
System testing and UAT preparation | QA runs system tests while business analysts prepare UAT scenarios |
Regression and feature testing | Overnight regression covers existing features while sprint testing covers new ones |
Prioritise by Risk
Not everything needs the same depth of testing.
Risk Level | Approach |
|---|---|
High, such as revenue, regulation or complex integrations | Thorough testing at every level, plus exploratory testing |
Medium | Standard automated coverage |
Low | Targeted checks on critical workflows |
Judge risk by business impact, technical complexity, how often an area changes and its history of defects.
Automate at Every Level
Testing Level | Typical Automation |
|---|---|
Unit | xUnit frameworks such as JUnit, pytest and NUnit |
Integration | API testing tools, or platforms that check the UI, APIs and database together |
System | UI automation that copes with interface changes |
UAT | Business-readable tests stakeholders can review |
Regression | Full suites running continuously in CI/CD |
Keep Requirements and Tests Linked
A traceability matrix, or a platform that links tests to requirements for you, shows what’s covered in every testing phase and makes the closure report quick to put together.
How AI is Changing the Software Testing Life Cycle
Drafting Tests from Requirements
AI can read requirements, user stories and process documents and draft test scenarios, including edge cases and negative paths, for your team to review and approve. That speeds up test case development and makes testing from requirements practical.
Keeping Tests Up to Date
AI can identify elements from several signals and propose repairs when the interface changes, so your suite keeps up with each release. The best AI testing tools let your team review every repair before it’s kept.
Faster Failure Analysis
AI can compare a failed run with the last passing one and suggest the likely cause, using screenshots, network logs and DOM snapshots. That shortens the gap between a failure and a fix.
Better Insight Across the Cycle
Results over time show you defect-prone areas, duplicate tests and coverage gaps, which feed straight into planning for the next cycle.
Supporting Every Testing Phase with Virtuoso QA
Virtuoso QA supports each phase of the software testing life cycle for browser-based applications, and links every test back to the requirement it proves.
Testing Phase | How Virtuoso QA Helps |
|---|---|
Requirement analysis | Touchstone reads your specs, user stories and Jira tickets and drafts requirements, citing the source for each one, and a named person approves every requirement before it’s built |
Test planning | Requirements and their linked tests show coverage and gaps from day one |
Test case development | Touchstone drafts tests from approved requirements, your testers and analysts write tests in plain English, each step runs live as it’s written, and StepIQ suggests the next check |
Environment set-up | API steps create the data each test needs in a known state, and AI test data generation produces realistic data when you need it |
Test execution | Journeys check the UI, APIs and database together, run in parallel across 2,000+ browser and OS combinations, and start from Jenkins, Azure DevOps or GitHub Actions |
Defects and retesting | Failures show up beside the last passing run, with screenshots, network data and a likely cause, and repairs for interface changes are proposed for your review |
Test closure | Every run records the requirement, result, approver and build, so your closure report and release evidence are already there |
Business Process Orchestration runs processes that cross several systems as one journey, which suits integration and system testing. And because tests read like plain business language, business users can review them during UAT.
Also read: Virtuoso QA’s agentic test generation explains how AI agents draft tests from your requirements while your team keeps sign-off.
Related Reads
Automated Shift-Left Testing - Early QA with AI-Driven Automation
Software QA Process - 7 Stages, Best Practices, and Examples
Software Testing Pyramid: 3 Levels, Benefits, and Best Practices
Software Testing Life Cycle FAQs
What are the six phases of the software testing life cycle?
What’s the difference between the STLC and the SDLC?
Are unit, integration and system testing STLC phases?
What are entry and exit criteria?
How do the testing phases work in agile?
What is shift-left testing?
Written by
Rishabh Kumar
AI Testing & Quality Engineering Contributor
Rishabh leads business development and marketing at Virtuoso QA. He writes about AI-powered test automation, end-to-end testing, self-healing tests, and quality engineering, exploring how these capabilities can improve test coverage, reduce test maintenance, and support reliable software releases.









