SDLC Models, Testing as a Driver, Shift-Left & DevOps
Compare sequential, iterative and incremental SDLC models, distinguish TDD/ATDD/BDD, and explain shift-left and DevOps in terms the syllabus actually tests.
An SDLC model is an abstract representation of how development phases relate to each other. Sequential models (Waterfall, the V-model) run each phase once, in order — the V-model pairs every development phase with a matching test level planned alongside it. Iterative models (spiral, prototyping) and incremental models (Unified Process) — and Agile approaches generally — deliver working increments in repeated cycles: both static and dynamic testing can happen at every test level, in every iteration, which is why Agile favors lightweight documentation and heavy test automation to keep regression testing fast.
TDD, ATDD and BDD are all test-first approaches to development, each implementing early testing and shift-left because tests are written before the code: Test-Driven Development (TDD) directs coding through test cases instead of upfront design — write a failing test, write code to pass it, refactor. Acceptance Test-Driven Development (ATDD) derives tests from acceptance criteria as part of system design (detailed in chapter 4's Collaboration-Based Test Approaches). Behavior-Driven Development (BDD) expresses desired behavior in natural language test cases stakeholders can read, usually Given/When/Then, which then get translated into executable tests.
DevOps is an organizational approach that bridges development (including testing) and operations toward common goals, typically via continuous integration (CI) and continuous delivery (CD). Benefits for testing include fast feedback on code quality, CI encouraging shift-left (component tests and static analysis accompanying every submission), stable automated test environments, and reduced regression risk at scale — but it isn't free: the delivery pipeline itself must be built and maintained, CI/CD tooling needs upkeep, and manual testing (especially from the user's perspective) is still needed even with heavy automation.
Shift-left — moving testing earlier in the SDLC — is achieved through concrete practices:
- Reviewing specifications from a tester's perspective (catching ambiguity before code exists).
- Writing test cases before the code and running it in a test harness during implementation.
- Using CI/CD for fast feedback with automated component tests.
- Running static analysis before dynamic testing.
- Starting non-functional testing at the component level rather than waiting for a full system.
It costs extra effort earlier, to save more later — and it only works if stakeholders are bought into the idea. Separately, retrospectives, held at the end of an iteration or project, are where the team examines what worked and what didn't for continuous process improvement.
Real-world use case
A team's CI pipeline runs component tests and static analysis on every pull request before a human ever reviews it — DevOps' promised fast feedback in practice. But the pipeline itself broke silently for two weeks because nobody owned its maintenance, which is exactly the syllabus's warning that DevOps tooling isn't self-sustaining: it's a system that itself needs test effort spent on it.
Example code
Exercise
For each scenario, name which test-first approach (TDD/ATDD/BDD) it best represents, or which specific shift-left practice from the lesson it illustrates.
Read-only here — open the English track at /learn to write and edit this exercise.
Quiz (4)
1. What does the V-model add over a plain sequential Waterfall description?
2. In an iterative model like Scrum, what happens to the traditional test levels?
3. Which test-first approach expresses desired behavior in natural language, usually Given/When/Then, so non-technical stakeholders can read it?
4. Which of these is a real risk of adopting DevOps, per the syllabus?