Testing Strategies for Agile Teams | Quality Workflow
Integrate testing throughout sprints with QA alongside developers. GitScrum tracks test automation, bug severity levels, and quality metrics.
8 min read
Testing is not a phase - it's continuous. GitScrum helps teams integrate testing into every sprint and deliver quality software consistently.
Testing Pyramid
Test Levels
TESTING PYRAMID:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β /\ β
β / \ E2E TESTS β
β / \ Few, slow, expensive β
β /ββββββ\ Test user journeys β
β / \ β
β / \ INTEGRATION TESTS β
β / \ Medium amount β
β /ββββββββββββββ\ Test component interaction β
β / \ β
β / \ UNIT TESTS β
β / \ Many, fast, cheap β
β /ββββββββββββββββββββββ Test individual units β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β RATIO GUIDELINE: β
β 70% Unit tests β
β 20% Integration tests β
β 10% E2E tests β
β β
β KEY PRINCIPLE: β
β Faster feedback = lower in pyramid β
β Higher confidence = higher in pyramid β
β Balance both needs β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Testing in Sprints
Integrated Testing
TESTING WITHIN STORIES:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β STORY WITH TESTING BUILT-IN: β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β PROJ-200: User Registration ββ
β β ββ
β β ACCEPTANCE CRITERIA: ββ
β β β User can register with email/password ββ
β β β Email validation works ββ
β β β Password strength enforced ββ
β β β Confirmation email sent ββ
β β β Duplicate email prevented ββ
β β ββ
β β TESTING REQUIREMENTS: ββ
β β β Unit tests for validation logic ββ
β β β Integration test for registration flow ββ
β β β E2E test for happy path ββ
β β β Edge cases tested ββ
β β ββ
β β EDGE CASES TO TEST: ββ
β β β Invalid email formats ββ
β β β Weak passwords ββ
β β β Duplicate registration ββ
β β β Email service failure ββ
β β ββ
β β ESTIMATE: 5 points (includes testing) ββ
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β ANTI-PATTERN: β
β β Story: 3 points β
β β Separate "Testing" task: 2 points β
β β
β CORRECT: β
β β
Story: 5 points (testing included) β
β β
Not done until tests pass β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
QA Workflow
QA IN AGILE WORKFLOW:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β CONTINUOUS QA (not end-of-sprint): β
β β
β SPRINT TIMELINE: β
β β
β Day 1-2: β
β β’ Dev starts feature β
β β’ QA reviews acceptance criteria β
β β’ QA writes test cases β
β β
β Day 3-5: β
β β’ Dev completes feature β
β β’ QA tests as features complete β
β β’ Bugs fixed immediately β
β β
β Day 6-8: β
β β’ Full feature testing β
β β’ Regression testing β
β β’ Polish and bug fixes β
β β
β Day 9-10: β
β β’ Final verification β
β β’ Release preparation β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β NOT THIS: β
β β
β Day 1-7: Development β
β Day 8-10: QA (crammed, bugs found late) β
β β
β β Bugs found late are expensive β
β β Sprint ends with incomplete testing β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Test Automation
Automation Strategy
TEST AUTOMATION PLANNING:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β WHAT TO AUTOMATE: β
β β
β HIGH VALUE (Automate first): β
β β
Smoke tests (critical paths) β
β β
Regression tests (things that broke before) β
β β
Data validation β
β β
API contracts β
β β
Security checks β
β β
β MEDIUM VALUE: β
β β
Feature tests (stable features) β
β β
Integration tests β
β β
Performance baselines β
β β
β LOW VALUE (Keep manual): β
β β οΈ Exploratory testing β
β β οΈ UX testing β
β β οΈ Visual testing (unless using tools) β
β β οΈ One-time tests β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β AUTOMATION TASK: β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β TEST-100: Automate checkout flow ββ
β β ββ
β β Scope: E2E tests for checkout ββ
β β ββ
β β Test cases: ββ
β β β Guest checkout ββ
β β β Logged-in checkout ββ
β β β Apply coupon ββ
β β β Multiple payment methods ββ
β β β Shipping options ββ
β β β Order confirmation ββ
β β ββ
β β Framework: Cypress ββ
β β Run: CI pipeline + nightly ββ
β β ββ
β β Estimate: 3 days ββ
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Automation Debt
TEST AUTOMATION MAINTENANCE:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β AUTOMATION PROBLEMS: β
β β
β FLAKY TESTS: β
β β’ Random failures β Team ignores results β
β β’ Slow tests β Skip in CI β
β β
β MAINTENANCE BURDEN: β
β β’ UI changes break tests β
β β’ Tests coupled to implementation β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β AUTOMATION HEALTH TASK: β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β TEST-MAINT: Quarterly test suite maintenance ββ
β β ββ
β β REVIEW: ββ
β β β Identify flaky tests ββ
β β β List slowest tests ββ
β β β Find duplicate coverage ββ
β β β Check test/code ratio ββ
β β ββ
β β ACTIONS: ββ
β β β Fix or delete flaky tests ββ
β β β Optimize slow tests ββ
β β β Remove redundant tests ββ
β β β Update test utilities ββ
β β ββ
β β METRICS: ββ
β β Flaky rate: 5% β Target: < 1% ββ
β β Suite time: 45min β Target: < 20min ββ
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β ONGOING: β
β β’ Allocate ~10% of sprint for test maintenance β
β β’ Fix flaky tests immediately (don't skip) β
β β’ Review coverage regularly β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Test Environments
Environment Management
TEST ENVIRONMENT TASKS:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β ENVIRONMENTS: β
β β
β LOCAL: β
β Developer machine β
β Fast iteration, unit tests β
β β
β CI: β
β Automated pipeline β
β Unit + integration tests β
β β
β STAGING: β
β Production-like β
β Full E2E testing, QA testing β
β β
β PRODUCTION: β
β Real environment β
β Smoke tests, monitoring β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β ENVIRONMENT TASK: β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β ENV-01: Improve staging environment ββ
β β ββ
β β ISSUES: ββ
β β β’ Staging data is stale ββ
β β β’ External services not mocked ββ
β β β’ Environment often broken ββ
β β ββ
β β IMPROVEMENTS: ββ
β β β Weekly data refresh from anonymized prod ββ
β β β Mock external payment gateway ββ
β β β Add environment health checks ββ
β β β Auto-deploy on merge to main ββ
β β ββ
β β GOAL: ββ
β β Staging should be reliable enough to catch ββ
β β issues before production ββ
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Bug Tracking
Bug Workflow
BUG MANAGEMENT:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β BUG TASK TEMPLATE: β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β BUG-123: Login fails with special characters ββ
β β ββ
β β SEVERITY: High ββ
β β FOUND IN: Staging ββ
β β REPORTED BY: QA ββ
β β ββ
β β STEPS TO REPRODUCE: ββ
β β 1. Go to login page ββ
β β 2. Enter email: test+1@example.com ββ
β β 3. Enter password ββ
β β 4. Click Login ββ
β β ββ
β β EXPECTED: Login succeeds ββ
β β ACTUAL: Error "Invalid email format" ββ
β β ββ
β β ENVIRONMENT: ββ
β β Browser: Chrome 120 ββ
β β OS: Windows 11 ββ
β β ββ
β β ATTACHMENTS: ββ
β β [screenshot.png] ββ
β β ββ
β β ROOT CAUSE: (after investigation) ββ
β β Email validation regex doesn't allow + ββ
β β ββ
β β FIX: ββ
β β β Update regex ββ
β β β Add test case ββ
β β β Verify fix ββ
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β SEVERITY LEVELS: β
β β
β CRITICAL: System down, data loss β
β β Fix immediately, same day β
β β
β HIGH: Major feature broken β
β β Fix this sprint β
β β
β MEDIUM: Feature works with workaround β
β β Plan for next sprint β
β β
β LOW: Minor issue, cosmetic β
β β Add to backlog β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ