Product Lifecycle

Companies use many different methodologies to build software, but most of them belong to two families: the sequential V-cycle (a refinement of the waterfall model) and the iterative Agile methods. The family you work in changes everything about testing: when tests are written, who writes them, when they run, and how quality is decided.

The V-cycle (waterfall)

Plan everything, then build, then verify

In the waterfall model, the project goes through sequential phases: requirements, specifications, design, development, testing, release. Each phase starts when the previous one is finished and approved. The V-cycle (or V-model) is the variant used in most industries: it pairs each definition phase on the left of the "V" with the test level that verifies it on the right.

V-cycle
  • Requirements are verified by acceptance testing
  • Specifications (functional and technical) are verified by system testing
  • Architecture and design are verified by integration testing
  • Code is verified by unit testing

Tests can be designed as soon as the matching document exists (acceptance tests from the requirements, system tests from the specifications...), but they are executed on the way up, once the code exists. The V-cycle suits projects whose requirements are stable and known upfront, with contractual or regulatory constraints, long hardware or certification cycles, and large teams that need a precise plan: aeronautics, defense, medical devices, automotive, public sector. Its main weakness is the late feedback: a misunderstood requirement may only be detected at acceptance, when it is the most expensive to fix.

Product and test lifecycle in a V-cycle

Phases, teams and gates

In a V-cycle, the product goes through 5 main phases, one after the other:

Product lifecycle in a V-cycle: requirements, specifications, development, validation, release

Responsibilities

These phases are usually handled by separate teams, handing their deliverables over to the next one:

  • The product definition team (product management, business analysts) writes the requirements
  • The product development team writes the specifications and develops the product
  • The quality assurance team develops the tests in parallel, then validates the product before its release
Who does what in a V-cycle product lifecycle

Development of the tests

The crucial phase is the one where the product and the tests are developed concurrently. Design testing (unit and integration tests) follows the implementation closely and feeds it back early; system tests are designed and implemented from the specifications while the product is being developed, and executed once it is available, the bugs found going back to development for debugging.

Development and test development in a V-cycle

Tests execution

Looking deeper at the execution, the testing is split into stages, each one closed by a milestone (a quality gate) that must be approved before going further: unit and integration testing of the components, then a smoke test of the whole system, then the system testing campaigns (black-box and regression, white-box, negative, performance and security, operational testing). Running development and testing in parallel saves time to market, but it only works if these gates are respected.

Detailed test execution phases and milestones in a V-cycle

Each type of testing finds a different share of the bugs at a different moment: few bugs in the smoke test, many in the functional (black-box) and structural (white-box) testing, then fewer in the negative, performance, security and operational testing. The following graph gives an idea of this distribution; it varies a lot depending on the system under test.

Bugs found over time by each type of testing in a V-cycle: design testing, smoke, regression, black-box, white-box, negative, stress, performance, penetration, operational and acceptance testing

Agile methodologies

Build, test and learn in short iterations

Agile methods were formalized in 2001 by the Agile Manifesto, which values individuals and interactions over processes and tools, working software over comprehensive documentation, customer collaboration over contract negotiation, and responding to change over following a plan. Instead of planning the whole project upfront, the team delivers a working, tested increment of the product in short iterations, and uses the feedback to decide what comes next. Agile suits projects whose requirements are uncertain or change often, where getting feedback early matters more than following a fixed plan.

Agile is a family of frameworks and practices:

  • Scrum: fixed-length sprints (1 to 4 weeks), a product owner, a scrum master and a cross-functional team, with planning, daily meetings, review and retrospective. The most widely used. See the Scrum tutorial.
  • Kanban: a continuous flow of work on a board, with limits on the work in progress instead of fixed iterations. See a fresher view on Kanban and testing.
  • XP (eXtreme Programming): engineering practices such as test-driven development (TDD), pair programming, continuous integration and small releases. See XP below.
  • Crystal, DSDM (Dynamic Systems Development Method) and Lean software development
  • SAFe, LeSS and other frameworks to scale Agile to several teams working on the same product

RUP (Rational Unified Process) is sometimes listed with them: it is iterative, but it is a heavier, plan-driven process and is not usually considered Agile.

eXtreme Programming (XP)

XP, created by Kent Beck in the late 1990s, is the most engineering-oriented of the Agile methods. Few teams apply it as a whole today, but its practices are used by most Agile teams, often inside Scrum:

  • Design: keep the design as simple as possible, and refactor the code frequently
  • Coding: shared coding standards, collective ownership of the code, pair programming, and frequent, small integrations (continuous integration)
  • Testing: unit tests written before the code (test-driven development), all code covered by unit tests that must pass before any release, a non-regression suite, and acceptance tests derived from the customer's requirements
  • Planning and team: small and frequent releases, an on-site customer available to the team, a sustainable pace

Product and test lifecycle in Agile

Every iteration is a complete small cycle

The phases of the V-cycle do not disappear in Agile, they shrink and repeat: in each iteration, a few user stories are refined, developed, tested and demonstrated. Testing is no longer a phase at the end of the project, it is an activity happening every day.

Product backlog Sprint planning Sprint (1 to 4 weeks) Refine stories, acceptance criteria Develop the code AND the tests Run tests: CI, regression, exploratory every day, by the whole team Review Retrospective Shippable increment feedback from users and stakeholders feeds the next iterations

The Agile lifecycle: the whole cycle, from requirements to a tested increment, happens in every iteration

Responsibilities

There are no hand-overs between a definition team, a development team and a QA team: quality is the responsibility of the whole team.

  • The product owner owns the backlog, writes the user stories with their acceptance criteria and accepts the result
  • Testers are members of the team: they take part in the refinement and the planning, help define "done", and test during the sprint, not after it
  • Developers write unit tests, often test-first (TDD), and share the automation work
  • The "three amigos" (business, development, testing) review each story before it is developed, to agree on its examples and acceptance criteria
  • The Definition of Done includes testing: a story is not done until its tests are written, run and passed
  • QA managers become coaches: they define the test strategy, the tools and the quality metrics shared by the teams

Development of the tests

  • Before coding: acceptance criteria are written as concrete examples, often in Gherkin (Given / When / Then) with Behavior-Driven Development (BDD). See Gherkin and BDD.
  • While coding: tests are developed at the same time as the code, following the test pyramid: many fast unit tests, fewer API and integration tests, a few end-to-end UI tests
  • At each commit: automated tests run in the continuous integration pipeline, so regressions are found within minutes. See DevOps and CI/CD.
  • During the sprint: testers run exploratory testing sessions on the new stories, where automation does not help. See exploratory sessions.
  • Before release: the regression suite, mostly automated, confirms that the increment did not break what already worked

The agile testing quadrants

A common way to make sure no kind of testing is forgotten in Agile is the four quadrants (Brian Marick, then Lisa Crispin and Janet Gregory):

  • Q1, technology-facing, supporting the team: unit and component tests, automated
  • Q2, business-facing, supporting the team: functional and story tests, examples, prototypes, automated or manual
  • Q3, business-facing, critiquing the product: exploratory testing, usability, user acceptance, mostly manual
  • Q4, technology-facing, critiquing the product: performance, load, security and other non-functional tests, tool-based

Tests execution and release

There are no long test campaigns at the end: each sprint ends with tested stories, and the review shows working software. Quality gates still exist, but they are automated in the pipeline (tests passed, coverage, no open critical bug) and summarized in shared dashboards. Some teams keep a short stabilization or "hardening" iteration before a major release, but it is a sign that testing is not fully part of each sprint.

V-cycle vs Agile at a glance

The same activities, organized differently
V-cycle (waterfall)Agile
PlanningWhole project planned upfrontJust in time, iteration by iteration
RequirementsComplete and frozen before developmentUser stories refined continuously, can change
Test designFrom the documents of each level of the VFrom acceptance criteria and examples, story by story
Test executionIn campaigns, once the code is deliveredContinuously, in every iteration and at every commit
Who testsA separate QA teamThe whole team, testers included in it
AutomationUseful, often focused on regressionEssential: regression runs at every build
DocumentationFormal deliverables at each phaseJust enough, living documentation (stories, tests)
FeedbackLate, at validation and acceptanceEarly, at the end of each iteration
Best suited toStable requirements, regulated and safety-critical systemsChanging requirements, fast time to market

Hybrid approaches

What most organizations actually do

In practice, few organizations are purely one or the other. Regulated industries often keep a V-cycle at the program level (requirements, formal validation, certification) while the teams develop in Agile iterations inside it. Others run Agile development followed by a separate acceptance phase ("water-scrum-fall"). What matters for testing is the same everywhere: tests linked to the requirements they verify (traceability), results kept for each version (baselines), and metrics that tell whether the product is ready (QA KPIs).

V-cycle, Agile or both, in one tool

XQual supports Agile, the V-model, Kanban or your own methodology: requirements or user stories, specifications, tests, campaigns, exploratory sessions and bugs, organized by projects, releases and sprints, with traceability and real-time metrics whatever the way you work.

SEE ALL THE FEATURES