QA AND TEST AUTOMATION · PART 0 · INTRODUCTION AND CAREERS · PROCESS · 4 OF 112

SDLC Models, Agile, Scrum and DevOps for Testers

How software is built and where testing fits at every step: the phases of the SDLC, Waterfall and the V-model with its test levels, Agile values, Scrum roles and events, a ShopRung coupon story tested inside one sprint, Kanban, DevOps and the CI/CD pipeline, shift left and right, and the DORA delivery metrics.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 67
  63. 68
  64. 69
  65. 70
  66. 71
  67. 72
  68. 73
  69. 74
  70. 75
  71. 76
  72. 77
  73. 78
  74. 79
  75. 80
  76. 81
  77. 82
  78. 83
  79. 84
  80. 85
  81. 86
  82. 87
  83. 88
  84. 89
  85. 90
  86. 91
  87. 92
  88. 93
  89. 94
  90. 95
  91. 96
  92. 97
  93. 98
  94. 99
  95. 100
  96. 101
  97. 102
  98. 103
  99. 104
  100. 105
  101. 106
  102. 107
  103. 108
  104. 109
  105. 110
  106. 111
  107. 112
1 / 17

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Phases every product passes
  • V-model test levels
  • Scrum sprints
  • test as stories land
  • CI runs it all

Notes

The idea

The software development life cycle, or SDLC, is the set of phases every product passes through. Decide what to build. Design how it will work. Build it. Test it. Release it to users. Then operate it, watching how it behaves and learning what to change, which feeds new requirements. Every process model has these phases. What differs is how big each step is, and how often a team goes round the loop: once a year, or many times a day.

SDLC, in one line
  • the software development life
  • cycle: the phases a product
  • goes through, from idea to running in production
  • requirements → design →
  • build → test → release →
  • operate, and back again
  • models differ in how often
  • they go round the loop

Testing in every phase

Notice that test is only one of six boxes, but a tester has work in all of them. During requirements, you review the rules and ask questions, such as, does a coupon from fifty dollars include exactly fifty? During design, you check that the feature can be tested. During build, developers write unit tests and you review them. Then you run and explore. At release you smoke test and help decide go or no go. In operation you watch errors and real usage.

Tester work per phase
  • requirements: review them, ask "what about $50.00?"
  • design: review for testability
  • build: unit tests, code review
  • test: run and explore
  • release: smoke test, go / no-go
  • operate: watch errors, learn what users really do

Waterfall

Waterfall runs the phases once, in order. Each one is finished and signed off before the next begins. That suits fixed scope, strict contracts and some regulated work, where everything must be documented up front. The risk is timing. Testing happens near the end, sometimes months after the requirement was written. If the requirement itself was wrong, the team only discovers it after building the whole thing, when changing it is slow and expensive.

Waterfall
  • one pass, phase by phase
  • each phase signed off first
  • good for: fixed scope, strict contracts, regulated work
  • risk: testing starts late, so a wrong requirement is found after it is built

The V-model

The V model is Waterfall with testing planned from the start. Picture a letter V. Down the left side you define: requirements, system design, architecture, and the design of each module. Coding sits at the bottom. Up the right side you test at matching levels: unit tests check modules, integration tests check how parts talk, system tests check the whole product, and acceptance tests check the requirements. The big idea is to plan each test level while writing its left side.

The V-model
define                 verify
requirements  <---->  acceptance
 system design <---->  system test
  architecture <---->  integration
   module design <-->  unit tests
            \        /
             coding

plan each test level while
writing its left-hand side

Agile

Agile flips the timing. Instead of one big pass, the team builds a small slice of value, tests it, shows it, and repeats every week or two. The Agile Manifesto from two thousand and one lists four values: people and conversation over process and tools, working software over heavy documents, working with the customer over arguing about contracts, and responding to change over following a plan. Note the wording. The things on the right still matter. The left matters more.

Agile Manifesto (2001)
  • we value: individuals and interactions over processes and tools working software over comprehensive docs customer collaboration over contract negotiation responding to change over following a plan
  • the right side still matters

Scrum

Scrum is the most common Agile framework. A product owner decides what matters most. A scrum master helps the team work well. The developers build and test, and in Scrum language testers count as developers too. Work happens in sprints of one month or less, often two weeks. Each sprint has planning, a fifteen minute daily scrum, a review to show the work, and a retrospective to improve. And every item must meet the team's Definition of Done.

Scrum Guide (2020)
  • roles: product owner, scrum master, developers (testers count as developers)
  • events: the sprint (1 month or less, often 2 weeks), planning, daily scrum (15 min), review, retrospective
  • artifacts: product backlog, sprint backlog, increment
  • done = the Definition of Done

A tester in a sprint

Here is a tester's sprint. Before it starts, you help refine stories and write acceptance criteria. In planning, testing work is sized with everything else. During the sprint, you meet in three amigos sessions, a business person, a developer and a tester talking through one story. You test each story as soon as it lands, not all at the end, and automate as you go. The last days hold regression and the demo. The retrospective asks what slowed testing down.

Two-week sprint
  • before: refine stories, write acceptance criteria
  • day 1: planning; size testing work with the rest
  • days 2-8: three amigos, test each story as it lands, automate as you go
  • days 9-10: regression, demo
  • after: retrospective

Worked example

A worked example from ShopRung. The story is the SAVE10 coupon, rule price three: ten percent off from fifty dollars. In three amigos, the tester asks, does exactly fifty count? The rule says fifty or more, so it does. Two mugs at fifteen dollars and a t-shirt at twenty make exactly fifty. The discount is five dollars. Forty five is under seventy five, so shipping is four ninety nine, and the total is forty nine ninety nine. At forty nine ninety nine, the coupon is refused.

Story: SAVE10 (PRICE-3)
Scenario: SAVE10 at exactly $50.00
  Given 2 Green Build Mugs ($15.00)
  And 1 Ship It T-Shirt ($20.00)
  When I apply coupon "save10"
  Then the discount is $5.00
  And shipping is $4.99
  And the total is $49.99

Scenario: SAVE10 at $49.99
  Then I see "This coupon needs
    a subtotal of at least $50.00"

Kanban

Kanban is another Agile approach, with no sprints at all. Work flows across a board, from to do, through development and test, to done. Each column has a work in progress limit. If the test column allows two items and already holds two, developers do not start new work. They help test instead. This makes a testing bottleneck visible straight away, instead of letting untested work pile up. Many teams mix ideas from Scrum and Kanban.

Kanban board
To do | Dev (3) | Test (2) | Done
------+---------+----------+-----
 C-14 |  C-11   |   C-09   | C-07
 C-15 |  C-12   |   C-10   | C-08
      |  C-13   |          |

(n) = WIP limit: Test is full,
so developers help test before
they start anything new

DevOps

DevOps joins development and operations, so the team that builds the software also ships it and runs it. Automation holds it together. Continuous integration means merging small changes often, each one built and tested automatically. Continuous delivery means the product is always ready to release, at the press of a button. Continuous deployment goes one step further: every change that passes the pipeline goes live with no human step. Interviewers love that last distinction.

DevOps
  • development and operations
  • work as one team: you build
  • it, you ship it, you run it
  • continuous integration: merge small changes often, test each one automatically
  • continuous delivery: always ready to release
  • continuous deployment: every green change goes live

The pipeline

Here is a typical pipeline, in a tool such as GitHub Actions or Jenkins. On every push, build and lint the code, run the unit tests, deploy to a test environment, then run API tests and a small set of UI tests. Before release, deploy to staging and smoke test. Fast checks go first, so a broken change fails in minutes. If any step goes red, the line stops, and fixing it comes before new work. Your automated tests are only useful once they run here.

A typical pipeline
on every push:
  1 build + lint          ~1 min
  2 unit tests            minutes
  3 API tests on a test env
  4 a few UI tests
before release:
  5 deploy to staging, smoke
  6 release (canary first)

red at any step = stop and fix

Shift left and right

Two phrases you will hear constantly. Shift left means moving testing earlier: reviewing stories, three amigos, unit and API tests in the pipeline. Shift right means continuing to learn after release. A canary release sends a new version to a small slice of users first, say five percent, and watches the errors. A feature flag lets the team switch a feature off without a new deploy. Monitoring and alerts catch what tests missed. Modern teams do both.

Both directions
  • shift left: test earlier review stories, three amigos unit and API tests in CI
  • shift right: learn from production canary: 5% of users first feature flags to switch off monitoring and error alerts

Numbers worth knowing

Some numbers worth knowing. A sprint is one month or less, and two weeks is common. The daily scrum is fifteen minutes. A widely used rule of thumb is that the pipeline should give feedback in about ten minutes. And the DORA research program measures delivery with a small set of metrics: how often you deploy, how long a change takes to reach production, how often a change causes a failure, and how fast you recover. Recent reports also track rework.

Numbers worth knowing
  • sprint: 1 month or less, 2 weeks is common
  • daily scrum: 15 minutes
  • CI feedback: aim for about 10 minutes on each push
  • DORA delivery metrics: deployment frequency lead time for changes change failure rate failed deployment recovery time (and rework rate)

Common mistakes

The most common mistake is a mini Waterfall inside each sprint: developers code for eight days and testers get everything on the last two. Another is believing Agile means no documentation. Acceptance criteria are documentation, and they are essential. Teams also mark stories done before they are tested, write automation that never runs in the pipeline, or ignore what production is telling them. Each of these pushes bugs later, where they cost more.

Common mistakes
  • a mini Waterfall in every sprint: test in the last days
  • "Agile means no docs": acceptance criteria are docs
  • stories marked done before they are tested
  • automation that never runs in the pipeline
  • ignoring production signals

Say it like this

A favourite question: how does testing work in an Agile team? Try this. Testing runs through the whole sprint, not at the end. I join refinement and three amigos sessions to agree the acceptance criteria before code is written. I test each story as soon as it lands, and automate the important checks so the pipeline runs them on every push. A story is only done when its tests pass. After release, I watch the monitoring for what we missed.

In the interview
  • "Testing runs through the sprint. I join refinement and three amigos to agree the acceptance criteria, test each story as it lands, and automate it so CI runs it on every push. A story is done only when its tests pass."

Interview questions

Q1What is the SDLC?

The software development life cycle: the phases a product passes through, usually requirements, design, build, test, release and operation. Process models such as Waterfall, the V-model, Scrum and Kanban differ in how big each step is and how often the team goes round the loop.

Q2What is the V-model and how does it relate to testing?

A sequential model where every development step on the left is paired with a test level on the right: module design with unit tests, architecture with integration tests, system design with system tests, and requirements with acceptance tests. Each test level is planned while its left side is written.

Q3What is the role of a tester in Scrum?

Scrum has no separate tester role; testers are part of the Developers. They help refine stories and acceptance criteria, test each story during the sprint, automate checks, and make sure work meets the Definition of Done.

Q4What is the difference between acceptance criteria and the Definition of Done?

Acceptance criteria are specific to one story, such as "SAVE10 gives 10% off from $50.00". The Definition of Done applies to every story, such as "code reviewed, tests automated and passing in CI, no open critical bugs".

Q5What is the difference between continuous delivery and continuous deployment?

With continuous delivery every change that passes the pipeline is ready to release, but a person decides when. With continuous deployment every change that passes goes to production automatically, with no manual step.

Q6What are the three amigos?

A short conversation about one story between a business person (often the product owner), a developer and a tester, held before coding starts, to agree on examples and acceptance criteria and to surface questions early.

Q7You join a team where testers only get stories in the last two days of the sprint. What would you change?

Split stories smaller so they finish earlier, test each story as it lands, pair with developers, join refinement to agree criteria up front, and use a WIP limit or a team agreement so nobody starts new work while testing is backed up.

Q8What are the DORA metrics?

Delivery measures from the DORA research program: deployment frequency, lead time for changes, change failure rate and failed deployment recovery time, with rework rate added in recent reports. They balance speed against stability.