Skip to content
Course outline: Foundations

Module 01 · Foundations

The software development life cycle (SDLC)

How software goes from an idea to production, phase by phase, and how each model changes when and how you test.

  • 10 min read
  • Free, no sign-up

What you'll be able to do

  • Describe the six phases of the SDLC and what QA does in each.
  • Choose between Waterfall, the V-model and Agile for a project, and say how each changes testing.
  • Use the terms of Scrum (sprint, user story, definition of done) the way a team does.
  • Place a test in the agile testing quadrants, and spot a quadrant a team is missing.

What is SDLC?

SDLC is a process followed for a software project within a software organization. It consists of a detailed plan describing how to develop, maintain, replace, and alter or enhance specific software. The life cycle defines a methodology for improving the quality of software and the overall development process.

Why We Need SDLC

  • ✓Execute projects with a proven framework
  • ✓Define clear roles and responsibilities
  • ✓Enforce planning and control
  • ✓Ensure consistency among deliverables
  • ✓Increase productivity by executing systematically
  • ✓Reduce rework effort and project risks

SDLC Phases

1. Planning / Initial

Define goals, scope, stakeholders, and create a project management plan. Determine who will use the system, how, and what data is involved.

Roles: Business Analyst (BA), System Architects, Project Manager/Product Owner, Project Sponsor, UX/UI Designer, QAs, Software Engineering

Outcome: System Requirements Specification (SRS)

2. Requirement Analysis

Transform needs into unambiguous (measurable and testable), traceable, complete, consistent, and stakeholder-approved requirements. Analyze validity and feasibility.

Roles: Dev & QA team, Architects, Project Managers, Product owners

Outcome: Final SRS approved by customer, Technology selection for both Dev & QA.

QA Involvement:QA ensures requirements are testable and clear.

3. Design

Create architecture, database design, UI design, select algorithms, and perform detailed technical design based on requirements.

Roles: Architects & Team

Outcome: Technical Design Document (TDD) in case applicable

QA Involvement:QA can provide input on testability and review design documents.

4. Development / Coding / Implementation

Actual coding begins. Work is divided into modules/units. This is often the longest phase.

Activities:

  • Create Test Data
  • Create Source Code
  • Generate Object Code
  • Create Operating Documentation
  • Plan Integration
  • Perform Integration

Roles: Developers and Architects

Outcome: Programs or Application or Module to be Testable

QA Involvement:QA prepares test cases, test data, and supports developers with early defect detection.

5. Testing

Execute test cases against the application, report defects, and retest fixed defects to ensure quality standards.

Activities:

  • Plan Verification and Validation
  • Execute Verification and Validation Tasks
  • Collect and Analyze Metric Data
  • Plan Testing
  • Develop Test Requirements
  • Execute Tests

Roles: Testers, Developers

Outcome: Issues and bugs, Test Summary Report, Test Plan, Test Case document

QA Involvement:QA executes tests, logs defects, retests fixes, and ensures quality standards are met.

6. Deployment & Maintenance

Deliver the product, perform User Acceptance Testing (UAT) in a real-time environment. Address production issues and enhance features over time.

Activities:

  • Plan Installation
  • Distribution of Software
  • Installation of Software
  • Accept Software in Operational Environment
  • Operate the System
  • Provide Technical Assistance and Consulting
  • Maintain Support Request Log

Roles: Testers, Developers, Customer, Business team, Architects, Project Manager, and Delivery Manager

Outcome: Quality Product, Enhancements & Production Issues (Maintenance)

QA Involvement:QA performs regression testing on updates, ensures no existing functionality breaks, and maintains product quality over its lifecycle.

SDLC Models

Waterfall Model

A linear, sequential approach where each phase must be completed before the next begins. One cannot visit the 2nd phase unless the 1st phase is complete.

QA Involvement: QA typically gets involved after development, focusing on defect detection late in the cycle.

When to Use:

  • Requirements are very well known and stable.
  • Product definition is stable.
  • Technology is understood.
  • New version of an existing product or porting to a new platform.
  • Example: A project with stable government regulations like a legacy payroll system update.

Advantages:

  • Simple and easy to understand/use.
  • Easy to manage due to rigidity.
  • Phases completed one at a time.
  • Good for management control (plan, staff, track).
  • Works well when quality is prioritized over cost/schedule.

Disadvantages:

  • Difficult to go back once in testing.
  • No working software until late.
  • High risk if requirements change.
  • Poor model for complex or long projects.
  • Inhibits flexibility; integration is 'big bang'.
  • Little customer preview opportunity.

V-Model (Verification & Validation)

An extension of Waterfall with corresponding test phases for each development stage. For every development phase, there is an associated testing phase. Highly disciplined.

QA Involvement: QA activities run in parallel with development phases, ensuring verification and validation steps occur early.

When to Use:

  • Requirements are well-defined and fixed.
  • Small to medium-sized projects.
  • Sufficient technical resources available.
  • Systems requiring high reliability (e.g., hospital patient control).
  • Solution and technology are known.
  • Example: Embedded systems for automotive or aviation software needing strict requirement traceability.

Advantages:

  • Simple and easy to use.
  • Testing activities planned early.
  • Proactive defect tracking (early detection).
  • Emphasizes early verification & validation planning.
  • Each deliverable must be testable.

Disadvantages:

  • Very rigid and least flexible.
  • Not good for complex projects.
  • No early prototypes produced.
  • Midway changes require updating requirement and test documents.
  • Doesn't easily handle concurrent events or iterations.

Iterative & Incremental Model

Breaks the project into smaller parts. Each part is developed, tested, and added incrementally. Great for projects where requirements might change or aren't clear initially.

Iterative Development: Repeating the development cycle, adding/refining features each time based on feedback.

Incremental Development: Delivering software in small, usable releases, allowing early testing and feedback.

Examples of Models using this approach:

  • Agile (Scrum, Kanban, XP, FDD, RAD, DSDM, Lean, Crystal)
  • DevOps
  • Scaled Agile Framework (SAFe)

Real-World Examples:

  • Microsoft Windows OS
  • Agile Software Development Projects
  • Amazon Web Services (AWS)
  • Google Search Algorithm Updates

Agile Model

An iterative and incremental approach emphasizing collaboration, flexibility, customer feedback, and rapid delivery of working software. Tasks are broken into smaller iterations.

QA Involvement: QA is integrated continuously, working closely with developers and product owners, testing features in each iteration for immediate feedback.

When to Use:

  • When frequent changes are required or expected.
  • New changes need to be implemented at low cost.
  • Limited planning needed to start.
  • Highly qualified and experienced team available.
  • Customer is available for constant interaction.
  • Project size is small to medium.

Advantages:

  • Customer satisfaction via continuous delivery.
  • Constant interaction between customers, developers, testers.
  • Working software delivered frequently.
  • Continuous attention to technical excellence.
  • Late changes in requirements are welcomed.

Disadvantages:

  • Difficult to assess initial effort.
  • Can get off track if customer representative is unclear.
  • Requires senior programmers for decision-making.

Agile Manifesto Core Values (2001)

Individuals and Interactions over Processes and Tools

Focuses on the importance of effective communication and collaboration among team members.

Working Software over Comprehensive Documentation

Prioritizes the delivery of functional software as the primary measure of progress.

Customer Collaboration over Contract Negotiation

Encourages customers and stakeholders to have active involvement throughout the development process.

Responding to Change over Following a Plan

Embraces flexibility and the ability to adapt to changing requirements, even late in development.

Scrum Framework

An Agile method focusing on managing tasks in small, empowered teams (7-9 members). Derived from rugby.

Scrum Master: Sets up team, sprint meetings, removes obstacles.
Product Owner: Creates & prioritizes backlog, responsible for iteration delivery.
Scrum Team: Self-manages work to complete the sprint.

Product Backlog: Repository of requirements (user stories) prioritized by Product Owner.

Scrum Practices: Include Sprint Planning, Daily Stand-ups, Sprint Review, Sprint Retrospective.

Kanban Method

Focuses on visualizing workflow, limiting Work In Progress (WIP), and improving flow. Uses visual signals (kanban) to control work. Great for teams with varying request priorities/sizes.

Agile Terminologies

Backlog Grooming

Process of adding/re-prioritizing user stories, creating estimates, and breaking down large stories. Often done once per iteration.

Daily Standup

Short (5-15 min) daily team meeting for status updates.

Definition of Done (DoD)

Team-agreed criteria for accepting work as completed (e.g., developed, unit tested, code reviewed, functionally tested).

Epic

A very large user story, often a placeholder for new ideas, broken down into smaller stories later.

Estimation

Team process (e.g., planning poker) to agree on a size measurement for backlog items.

Feature

A coherent business function, usually comprising many user stories.

Retrospective

End-of-sprint meeting for the team to reflect on processes and identify improvements.

Sprint

A set period (typically 2-4 weeks) during which specific work is completed.

Sprint Planning

Meeting before a sprint starts where the team identifies tasks and commits to story points.

User Story

Describes work needed for a feature; the basic unit of planning and communication.

Task

Specific, trackable units of work needed to complete a user story.

Worked example · Cedar Books

Release 2.4 in Scrum, with testing in the definition of done

Release 2.4 of Cedar Books, the Academy's practice shop, adds coupon codes and a one-page checkout (the test plan example in the Academy's templates). Suppose the team builds it in Scrum, in two-week sprints. The product owner, Omar Saleh, keeps the product backlog. One of its user stories:

As a shopper, I want to enter a coupon code at checkout,
so that I pay less.

Acceptance criteria (REQ-03, REQ-06):
1. A valid code lowers the total once.
2. A second code replaces the first.
3. Expired, used-up and malformed codes are refused
   with a clear message.

In backlog grooming, the tester asks the questions that make these criteria testable. What does "once" mean when Apply is clicked twice? Does WELCOME5 still count if the basket drops below 25.00? The answers become examples, and the examples become tests.

The team agrees one definition of done for every story of the release. Testing is written into it, so no story counts as done while it is untested:

  1. The code is reviewed by a second developer.
  2. Unit tests cover the new logic and pass, such as the discount sum.
  3. Every acceptance criterion has a passing test, agreed with the product owner.
  4. The regression suite passes 100% on the build: the 2.3 suite plus the story's new cases.
  5. No critical or high bug is open against the story.
  6. The new screens work with a keyboard (NFR-02) and from 320 px wide (NFR-05).

A story that misses one of these is not done: it goes back to the backlog, and its points do not count toward the sprint. The tester also has a part in every Scrum event:

The tester in each Scrum event of release 2.4
EventWhat the tester does
Sprint planningAsks how each story will be tested, and adds the test work to the estimate
Daily stand-upSays what was tested, what is blocked, and which bugs need a developer
Sprint reviewShows the tested stories, and says plainly which are not done
RetrospectiveRaises what slowed testing, such as a late build or missing test data

Try it: Test estimation tool · The test plan lab

Agile testing quadrants

Agile teams test all through each sprint, so they need a way to see whether their tests cover enough. The agile testing quadrants, first drawn by Brian Marick and made popular by Lisa Crispin and Janet Gregory's book Agile Testing, sort tests along two lines: do they face the business or the technology, and do they support the team while it builds, or critique the product once it exists?

A healthy team has tests in all four quadrants. The numbers are names, not an order: a team works in all four in the same sprint. Here is release 2.4 of Cedar Books in each one:

The four agile testing quadrants with Cedar Books examples
QuadrantIts testsCedar Books, release 2.4
Q1: technology-facing, supports the teamUnit and component tests, written by developers and automatedA unit test of the discount sum: CEDAR10 takes 1.90 off 19.00
Q2: business-facing, supports the teamFunctional and story tests, examples agreed with the product owner, prototypes; automated or by hand"Given a basket of 19.00, when I apply CEDAR10, then the total is 17.10", agreed before coding
Q3: business-facing, critiques the productExploratory and usability testing, user acceptance, alpha and beta tests; mostly by handAn hour exploring the checkout as a first-time shopper; the shop owner's acceptance check
Q4: technology-facing, critiques the productPerformance, load, security and accessibility checks; mostly with toolsA Lighthouse audit of the Offers page against NFR-01; the account lock of NFR-03

Q1 and Q2 tests help the team build the right thing from the start, and they run on every build. Q3 and Q4 tests look at the product as a whole, the way its users and the outside world will meet it. A team with tests only in Q1 and Q2 ships code that works as written but may still disappoint; a team with only Q3 tests finds its bugs late, when they cost the most.

Model Comparison

AspectWaterfallV-ModelAgile
RequirementsFixed upfrontFixed upfrontEvolving, flexible
Customer InvolvementMinimal after startLimitedHigh, continuous
Testing ApproachAfter developmentParallel with devContinuous, every iteration
FlexibilityLowLow to mediumHigh
Risk ManagementHigh risk of late issuesEarlier detectionOngoing mitigation
Use CaseStable projects, known reqsCritical systems, known reqsRapid change, evolving reqs

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

Test yourself

Quiz: SDLC

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.