Lesson 14 of 17 · 15 min read

Agile & Scrum Testing in Practice

See how testers work inside Scrum teams: roles, ceremonies, user stories, Gherkin acceptance criteria, Definition of Done and shift-left testing.

Learning objectives

  • Describe Scrum roles, ceremonies and the tester's contribution to each
  • Analyse user stories and write acceptance criteria in Given/When/Then format
  • Apply the Definition of Done to decide when a story is truly complete
  • Explain shift-left testing and plan a tester's day within a sprint

Most Indian product companies and a large share of service-based projects now work in Agile, usually using the Scrum framework. In Agile, testing is not a phase that starts after development finishes. Testers are part of the team from day one, review requirements, write acceptance criteria with the product owner and test each story as soon as it is ready. This lesson shows you what that looks like in a real sprint.

Agile in One Paragraph

Agile delivers software in small, working increments, collects feedback quickly and adapts. The Agile Manifesto values individuals and interactions, working software, customer collaboration and responding to change. For testers this means shorter cycles, constant collaboration with developers, and a strong focus on regression because the product changes every few weeks.

Scrum Roles

RoleResponsibilityHow testers work with them
Product Owner (PO)Owns the product backlog, defines and prioritises user storiesClarify requirements, agree acceptance criteria, raise priority questions
Scrum MasterFacilitates Scrum events, removes blockers, coaches the teamEscalate blockers such as a broken test environment
DevelopersEveryone who builds the increment, including testersTesters are part of this group and share responsibility for quality
No separate "tester" role in Scrum

The Scrum Guide calls everyone who builds the product a "Developer". In practice, companies still hire QA engineers, but within the team, quality is everyone's job.

Scrum Ceremonies (Events)

EventWhenTester's contribution
Sprint PlanningStart of sprintEstimate testing effort, highlight test data and environment needs, flag risky stories
Daily ScrumEvery day, about 15 minutesShare what you tested, what you will test today, and any blockers
Backlog RefinementMid-sprint, ongoingAsk "what if" questions, identify edge cases, help write acceptance criteria
Sprint ReviewEnd of sprintHelp demo completed stories; capture stakeholder feedback
Sprint RetrospectiveAfter the reviewSuggest process improvements, e.g. earlier builds or better test data

User Stories and Acceptance Criteria

A user story describes a requirement from the user's point of view:

As a registered customer, I want to pay for my order using a UPI ID, so that I can complete checkout without entering card details.

Good stories follow INVEST: Independent, Negotiable, Valuable, Estimable, Small and Testable. Acceptance criteria are the specific conditions a story must satisfy to be accepted by the product owner. They are the tester's most important input, because each criterion becomes one or more test cases.

Writing Acceptance Criteria in Gherkin

Many teams write acceptance criteria in Gherkin, a structured format using Given (context), When (action) and Then (outcome). It is readable by business people and can later be automated with BDD tools such as Cucumber.

Feature: Pay for an order using a UPI ID

  Scenario: Successful payment with a valid UPI ID
    Given the customer has items worth Rs 1,250 in the cart
    And the customer is on the payment page
    When the customer enters a valid UPI ID "priya@okbank"
    And approves the collect request in the UPI app
    Then the order status should be "Confirmed"
    And an order confirmation SMS should be sent

  Scenario: Invalid UPI ID format
    Given the customer is on the payment page
    When the customer enters the UPI ID "priya.okbank"
    Then the error "Enter a valid UPI ID" should be displayed
    And the Pay button should remain disabled

  Scenario: Payment request expires
    Given a collect request has been sent to the customer
    When the customer does not approve it within 5 minutes
    Then the payment status should be "Failed"
    And the cart items should remain available for retry

Definition of Done (DoD)

The Definition of Done is a shared checklist that applies to every story. A story is not "done" just because the code is written. A typical DoD includes:

  • Code is complete, peer-reviewed and merged.
  • Unit tests are written and passing.
  • All acceptance criteria are tested and passed in the QA environment.
  • No open Critical or High defects against the story.
  • Regression tests for impacted areas are passed.
  • Test cases are updated in the test management tool.
  • The product owner has accepted the story.
DoD vs Acceptance Criteria

Acceptance criteria are specific to one story. The Definition of Done is common to all stories. Interviewers often ask for this difference.

A Tester's Day in a Two-Week Sprint

TimeActivity
9:30 AMCheck overnight automation results and new builds deployed to QA
10:00 AMDaily Scrum: update on stories under test and blockers
10:30 AMTest stories marked "Ready for QA"; log defects in Jira
1:30 PMWrite test cases for upcoming stories; clarify doubts with the PO
3:00 PMRetest fixed defects; run regression on impacted modules
4:30 PMBacklog refinement or pairing with a developer on an edge case
5:30 PMUpdate Jira statuses and test execution results

Shift-Left Testing

Shift-left means moving testing activities earlier in the life cycle. Instead of waiting for a build, testers review stories during refinement, question ambiguous requirements, write test cases before code is ready, and test APIs before the UI exists. A defect found in a requirement review costs minutes to fix; the same defect found in production can cost days and customer trust. Shift-left directly supports the testing principle "early testing saves time and money".

Key takeaways

  • In Scrum, testers are part of the team from sprint planning to retrospective
  • Acceptance criteria turn user stories into testable conditions
  • Given/When/Then makes criteria readable and automation-ready
  • Definition of Done applies to all stories; acceptance criteria to one story
  • Shift-left testing finds defects earlier, when they are cheapest to fix
✓ You're subscribed! Job alerts arrive daily at 9 AM.
Scroll to Top