Skip to main content
Strategy & Process
DEFINITION

What is STLC (Software Testing Life Cycle)?

The Software Testing Life Cycle (STLC) is the sequence of phases that structure a testing effort: requirement analysis, test planning, test case design, test environment setup, test execution, and test closure, each with defined entry and exit criteria.

Free to start · 7-day trial on paid plans

IN DEPTH

In depth.

STLC gives testing the same kind of structure the SDLC gives development. The phases are: requirement analysis (understand what to test and assess testability), test planning (scope, strategy, resources, schedule), test case design (write cases and prepare test data), test environment setup (stand up the environment and smoke-test it), test execution (run cases, log defects, retest and regress), and test closure (confirm exit criteria, archive artifacts, capture metrics and lessons learned).

The important nuance, and the interview-winning one, is that each phase has entry and exit criteria, the conditions to start and to be considered done. That is what stops a team from, say, executing tests against a broken build or declaring testing complete with critical defects open.

STLC runs in parallel with the SDLC rather than only after it, in modern, shift-left teams, testing activities start as early as requirement analysis, not at the end. Reciting the phases is fine; explaining the entry/exit criteria and the shift-left overlap with development is what shows depth.

Concrete entry and exit criteria are what interviewers listen for, so anchor each phase with an example. Requirement analysis enters when requirements are baselined and exits with a testability review and the skeleton of a requirements traceability matrix (RTM). Test planning exits with an approved test plan covering scope, risks, estimates, and the exit criteria for execution itself. Test design exits when cases are peer-reviewed and test data is prepared, environment setup exits on a passing smoke test, execution exits when planned cases have run and defect thresholds are met (for example, zero open Critical defects), and closure exits with the test summary report, metrics such as defect density and escape rate, and archived artifacts.

In agile and continuous testing, the six phases do not disappear; they compress into every sprint and even every pull request. Requirement analysis happens in backlog refinement and three-amigos sessions, planning shrinks to a lightweight test approach per story, design and execution interleave as automation is written alongside the code, environments become ephemeral (spun up per pipeline run with Docker or preview deployments), and closure becomes sprint-review metrics and dashboards instead of a formal document. The entry/exit thinking survives as CI quality gates: a merge cannot proceed unless the suite passes, coverage holds, and no blocker defects are open.

Interviewers rarely stop at naming the phases. Expect follow-ups such as: what are the entry and exit criteria of test execution, what artifact does each phase produce (test plan, RTM, test summary report), how STLC differs from SDLC, and how you would run the STLC inside a two-week sprint. Weak candidates recite six phase names; strong candidates attach one criterion, one artifact, and one agile adaptation to each phase, which proves they have operated the process rather than memorized it.

WHY IT MATTERS

Why interviewers ask about this.

STLC is a foundational interview topic, especially for QA process and lead roles. Knowing the phases plus their entry and exit criteria, and that STLC shifts left to run alongside the SDLC, signals real process understanding rather than rote memorization.

EXAMPLE

Example scenario.

A team applies STLC explicitly: test planning defines exit criteria (95% pass, zero open Critical defects), test environment setup is gated by a passing smoke test, and test closure produces a summary report with lessons learned. The entry/exit gates keep each phase honest and the release decision objective.

TIP

Interview tip.

List the phases, but do not stop there: emphasize that each has entry and exit criteria, and that STLC overlaps the SDLC (shift-left) rather than running only at the end. That combination is what separates a memorized answer from an experienced one.

FAQ

Frequently asked questions.

What are the phases of the STLC?

Requirement analysis, test planning, test case design, test environment setup, test execution, and test closure. Each phase has defined entry and exit criteria that govern when it can start and when it is complete.

What is the difference between STLC and SDLC?

The SDLC (Software Development Life Cycle) covers building the software end to end; the STLC (Software Testing Life Cycle) covers the testing activities specifically. STLC runs in parallel with the SDLC, especially in shift-left teams where testing starts at requirement analysis.

What are entry and exit criteria in the STLC?

Entry criteria are the conditions required before a phase can start, and exit criteria define when it is complete. For example, test execution might require a deployed build that passed a smoke test (entry) and finish only when all planned cases have run with no open Critical defects and a 95% pass rate (exit). They keep phase transitions objective instead of schedule-driven.

Is the STLC still relevant in Agile teams?

Yes, but compressed: the six phases repeat inside every sprint rather than running once per release. Requirement analysis happens in backlog refinement, test design and execution interleave with development, environments are spun up per pipeline run, and closure becomes sprint-review metrics. The entry/exit mindset survives as CI quality gates on every merge.

What artifacts does each STLC phase produce?

Requirement analysis produces a testability review and the requirements traceability matrix (RTM); planning produces the test plan and estimates; design produces reviewed test cases and test data; environment setup produces a configured environment with smoke-test results; execution produces run logs and defect reports; and closure produces the test summary report with metrics such as defect density and escape rate.

Related Resources

Dive deeper with these related interview prep pages.

FREE TOOLS  /  no signup

Free QA career tools, no account needed

Instant and private, everything runs in your browser. Try them before you sign up.

EXEC.NOW

Ready to Ace Your QA Interview?

Practice explaining stlc (software testing life cycle) and other key concepts with our AI interviewer.

Join 1,200+ QA engineers already practicing with AssertHired.

Start your free QA interview

Curious how it works first? See the QA mock interview

FREE.TO.START  ·  7.DAY.TRIAL ON PAID PLANS
Written by Aston Cook, Senior QA EngineerLast updated July 2026