Skip to content
Course outline: Foundations

Module 01 · Foundations

The software testing life cycle (STLC)

Six phases, from reading the requirements to closing the test cycle, with what goes in and what comes out of each one.

  • 10 min read
  • Free, no sign-up

What you'll be able to do

  • Tell a BRS, an FRS and an SRS apart, and say what a tester looks for in each.
  • Walk a release through the six STLC phases, with what starts and what ends each one.
  • Write entry and exit criteria that a team can check rather than argue about.
  • Rank test work by risk, so the riskiest parts are tested first and deepest.

What is STLC?

STLC is a sequence of specific activities conducted during the testing process to ensure software quality goals are met. It involves both verification and validation activities. STLC is an integral part of SDLC but focuses solely on testing phases. It provides a step-by-step process to ensure quality software, starting as soon as requirements are defined. Early analysis and test case creation help reduce test cycle time and improve quality by finding bugs sooner.

Understanding Requirement Documents

Different documents capture requirements at various levels. Understanding their purpose is crucial for effective testing.

BRS (Business)

Created by the Business Analyst (BA) interacting with customers. Describes business rules, project scope, and client requirements in simple business language. Focuses on 'what' the business needs.

Example: "The Company would like to improve efficiency by tracking employee time spent on activities."

FRS (Functional)

Created by developers/engineers. Describes all functions the software must perform, detailing how components behave during user interaction. Focuses on 'how' a specific feature works step-by-step. Does not typically include use cases.

Example: "Enter Username: Textbox allowing registered email ID. Enter Password: Textbox, input masked ('*'). Submit Button: Validates credentials on click, shows 'Incorrect Username or Password' alert if invalid."

SRS (Software)

Created by the BA or System Analyst. Translates customer requirements (CRS/BRS) into a detailed document understandable by developers and testers. Describes how the software should be developed, including functional and non-functional requirements, and often includes use cases.

Example: "Proposed software modules: Login (authentication), Administrator (user/project management), Employee (effort entry), Reporting (admin reports, exportable)."

BRS vs FRS vs SRS Comparison

AspectBRSFRSSRS
Full NameBusiness Requirement SpecificationFunctional Requirement SpecificationSoftware Requirement Specification
Deals WithBusiness requirementsClient requirements / FunctionalityCompany resources / System behavior
Use CasesNot includedNot includedIncluded
Developed ByBusiness Analyst (BA)Developers / EngineersSystem Analyst
FocusWhat the customer wants (broad)Detailed page/feature functionalityFunctional & non-functional requirements
AnalogyThe 'Why' & 'What' (High-level)The 'How' (Detailed steps)The 'What' & 'How' (System view)

STLC Phases

Click on each phase to explore its activities, deliverables, and specific details in this structured testing process.

1. Requirement Analysis

Test team studies requirements from a testing perspective to identify testable requirements. Interaction with stakeholders (Client, BA, Tech Leads, Architects) is key to understand functional and non-functional requirements.

Key Activities:

  • Analyze requirements for testability.
  • Identify types of tests to be performed.
  • Gather details about testing priorities and focus.
  • Prepare Requirement Traceability Matrix (RTM).
  • Identify test environment details.
  • Define area of stress and performance testing.
  • Define procedures for data maintenance (backup, restore, validation).
  • Review documentation.
  • Catch ambiguous or unclear requirement criteria.

Deliverables: Requirement Traceability Matrix (RTM), Clarified Requirements

Requirement Traceability Matrix (RTM)

Links business requirements to functional requirements and test cases. Helps ensure all requirements are tested and track defects back to requirements.

Example from Cedar Books release 2.4: REQ-03 (one coupon code at checkout) is proved by TC-08 and TC-09. When TC-09 failed, the matrix showed at once which requirement was at risk, and BUG-07 traced straight back to REQ-03. The traceability matrix on the templates page has the whole example.

Worked example · Cedar Books

Release 2.4 through the six phases

Release 2.4 of Cedar Books, the Academy's practice shop, adds coupon codes and a one-page checkout. Its test plan (a worked example on the templates page) takes it through the six phases. Each phase has a condition to start (entry criteria) and a condition to end (exit criteria):

Release 2.4 through the six STLC phases, with entry and exit criteria
PhaseStarts whenWork on release 2.4Ends when
1. Requirement analysisThe SRS for 2.4 is sharedRead REQ-01 to REQ-08 for testability; ask what happens to a coupon when a book is removed; start the RTMEach requirement is clear or has a question with an owner; the RTM is drafted
2. Test planningRequirements are clarified and the release date is knownWrite the plan: scope, approach, environment, schedule, risks and rolesThe QA lead and the product owner approve the plan (30 Nov)
3. Test case developmentThe plan is approved1 to 4 Dec: scenarios and cases by partitions and boundary values; test data: accounts, coupons, test cardsEvery requirement has at least one reviewed case in the RTM
4. Environment setup (beside phase 3)The list of hardware, software and access is readyStaging with the release candidate, a copy of the catalogue and the payment sandbox; a smoke test on each new buildThe candidate is on staging, its unit tests pass and the test data is loaded
5. Test executionPhase 4 is done and the smoke test passesCycle 1 (7 to 11 Dec), cycle 2 and regression (14 to 17 Dec): run cases, log bugs, retest fixes, update the RTMEvery planned case has run, or the report says why not
6. Test cycle closureExecution has finished18 Dec: check the exit criteria; write the test summary report and the lessons learnedEvery Must requirement has a passed case, no critical or high defect is open, regression passes 100%, the checkout meets its Lighthouse targets

The plan also says when to stop: if checkout or sign-in is broken for every user, or staging is down for more than two hours, testing is suspended, and it resumes on a build that fixes the cause, starting with a smoke test.

Written down before testing begins, entry and exit criteria end the argument at the end. On 18 Dec the team does not debate whether testing was "enough": it checks four lines.

Try it: The test plan, worked example · The test plan lab

Risk-based testing

There is never time to test everything equally (exhaustive testing is impossible), so test planning decides where the effort goes. Risk-based testing decides it by risk: how likely a problem is, times how much harm it would do. A risk that is both likely and harmful is tested first, with the most techniques, and kept in the regression suite. A risk that is unlikely and minor gets a quick check.

There are two kinds of risk. A product risk is something that could go wrong for the users: a wrong total, a lost order, a page nobody can use with a keyboard. A project risk is something that could stop the testing itself: an environment that is down, rules that change late, too few people. The test plan of release 2.4 lists project risks; here are the product risks of its checkout, scored with high = 3, medium = 2 and low = 1:

Product risks of the Cedar Books checkout, release 2.4
RiskLikelihoodImpactScoreHow much testing
A wrong amount charged after a coupon (REQ-03, REQ-04)High (3): new code, many rulesHigh (3): money and trust9First: partitions, boundary values and a decision table; two exploratory sessions; automated for regression
A declined or slow payment handled wrongly (REQ-07)Medium (2)High (3)6Every test card, and a 10-second wait for the slow bank
The confirmation shows the wrong total (REQ-08)Medium (2)Medium (2)4A planned case for each requirement
Checkout not usable with a keyboard (NFR-02)Medium (2)Medium (2)4A planned keyboard pass of the whole checkout
An unclear message for an expired code (REQ-06)Medium (2)Low (1)2One case, run last

The scores are a team's judgement, not a measurement: agree them with the product owner and the developers, and score again when something changes. The point is the order. When time runs short, the risks at the bottom of the table are the ones left untested, never the ones at the top.

Sign in to keep your progress: a tick here lives in this browser only.

Test yourself

Quiz: STLC

10 questions, about 8 minutes. Sign in to take the quiz.

Sign inRequest accessStart freeGet started

10 questions, about 8 minutes, no time limit. 7 right answers pass, and passing marks the lesson as read. Every new quiz draws new questions.

Put the lessons to work on a real site

Describe a user journey in plain English. QAIA walks it in a real browser and hands back the test cases, the automation code and the evidence of every step.