What are SDLC and STLC?
SDLC is the life cycle of developing a product from requirements to maintenance, and STLC is the sequence of testing activities inside it. A common STLC model has six steps: requirements analysis, planning, test design, environment setup, execution and closure, each with entry and exit criteria. STLC is not a stage after coding: requirements analysis and test design start earlier, and in Agile they repeat in every iteration.
QA Fundamentals · Testing basics
Does testing start only when development is done? Then why do they ask about STLC?
A newcomer pictures a tester's job like this: developers finished, a build arrived, I test. In a real team, by that moment the QA Engineer has already read the requirements, asked about risks, written cases and prepared data. That is why two terms exist: SDLC describes how a product is born, STLC describes what testing does in the meantime. The lesson shows how they connect and why STLC is not a "stage after code".
How it works
SDLC (Software Development Life Cycle) is the development life cycle: requirements, design, development, testing, release, maintenance. It is organised by a model: sequential (Waterfall, V-model), iterative or incremental. Agile is not another model in this row but a set of values and practices applied to iterative development.
STLC (Software Testing Life Cycle) is the sequence of testing activities inside SDLC. A common model has six steps: requirements analysis, planning, test design, environment setup, execution with defect reports, closure with a report. Each step has entry and exit criteria: when it can start and when it counts as done.
What testing does at each stage
Why STLC is not "after code". The earlier testing gets the requirements, the earlier it finds contradictions in them, and the cheaper they are to fix. Test design and data preparation do not depend on finished code: they can be done while developers write. What remains for the execution stage is what really needs a build.
Where testing sits in time
Phases follow one another. Testing waits for finished development, and feedback about requirements arrives late.
A short cycle of requirements, development, test, release repeats every sprint. STLC happens in miniature in each iteration.
In ISTQB CTFL 4.0 the same chain is called the test process, and the groups of activities there are different: planning, monitoring and control, analysis, design, implementation, execution, completion. They can run iteratively or in parallel and not necessarily in sequence. For an interview it helps to know both versions: the six-step "STLC" from vacancies and the seven ISTQB activity groups.
Example: a "Promo code" story in a sprint
The task: the user enters a promo code in the cart and gets a discount. Here is what testing does while the story moves:
| STLC step | Concrete action |
|---|---|
| Requirements analysis | Questions to the analyst at grooming: do discounts stack, what about a code valid until midnight, is delivery counted. |
| Planning | What is in scope (cart, payment), what is not (admin), which risks (rounding), who tests and when. |
| Test design | Cases by classes and boundaries: valid, expired, unknown code, minimum amount. Prepare accounts and codes. |
| Environment | A build on the test environment, test promo codes, a payment sandbox. |
| Execution | Run cases, bug reports, recheck fixes, regression of the cart. |
| Closure | A report: what passed, what is open, what remains by risk. Lessons go to the retrospective. |
Entry and exit criteria are fixed at planning. A minimal example:
Entry: requirements agreed, build on the test environment,
test promo codes created
Exit: all P1 cases passed, no open critical/major defects,
cart regression is green
Limits and alternatives
- The six-step STLC is a teaching model, not a standard. In a team the set of steps depends on the process: where there is no separate "environment setup" stage, the pipeline plays its role.
- In Agile STLC does not disappear but compresses: requirements analysis is grooming, planning is sprint planning, closure is the retrospective and the demo.
- Testers do not do every step. DevOps often prepares the environment and data depends on the backend. Responsibility for a step and its execution may belong to different people.
Common mistakes
- Testing only after development. Requirements let you find defects before code, and without that testing merely catches expensively what could have been prevented.
- Not fixing entry and exit criteria. Then "ready for testing" and "can release" mean different things to different people.
- Confusing SDLC with Scrum or Agile. SDLC is the general cycle, Scrum and Waterfall are ways to organise it.
- Skipping closure. Without a report and lessons the same problems return in the next release.
Check yourself
The build is not ready yet, development is in progress. Which STLC steps can a tester already do?
Answer
Requirements analysis, planning and test design, plus data preparation. They depend on the requirements, not on the code. Test execution on the build stays for later, but these early steps are what make it fast.
Why does nobody in Agile say testing is a "stage after development"?
Answer
Because the cycle of requirements, development, test repeats every sprint, and STLC runs in each iteration in parallel with development: questions to requirements at grooming, cases before the story is ready, regression every time. There is no separate stage at the end.