QA Interview Hub · Knowledge base · Quizzes · Українська

QA Fundamentals › Testing basics

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

SDLCSTLCRequirementsAnalyse reqsDesignPlan, test designDevelopmentEnvironment, dataTestingExecute, defectsReleaseReport, lessons
Figure 1. STLC runs in parallel with SDLC: requirements analysis and planning start long before the first build.

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

Sequential model

Phases follow one another. Testing waits for finished development, and feedback about requirements arrives late.

Iterative, Agile

A short cycle of requirements, development, test, release repeats every sprint. STLC happens in miniature in each iteration.

Figure 2. SDLC models change not the set of testing activities but how early and how many times they happen.

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 stepConcrete action
Requirements analysisQuestions to the analyst at grooming: do discounts stack, what about a code valid until midnight, is delivery counted.
PlanningWhat is in scope (cart, payment), what is not (admin), which risks (rounding), who tests and when.
Test designCases by classes and boundaries: valid, expired, unknown code, minimum amount. Prepare accounts and codes.
EnvironmentA build on the test environment, test promo codes, a payment sandbox.
ExecutionRun cases, bug reports, recheck fixes, regression of the cart.
ClosureA 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.

In an interview. Junior: SDLC is the product development life cycle from requirements to maintenance. STLC is the testing life cycle inside it: requirements analysis, planning, test design, environment setup, execution and closure with a report. Middle/Senior: STLC is not a stage after code: requirements analysis and test design start earlier. In ISTQB it is the test process with activity groups of planning, monitoring and control, analysis, design, implementation, execution and completion, which can be iterative. In Agile I go through these steps in every sprint and fix entry and exit criteria at planning.

More articles in this chapter