Module 3. Practice: from requirements to automated tests · Lesson 29 of 41 · 22 min

End-to-end project: from requirement to release verdict

We take the "Promo code in the cart" feature from the document to Go/No-Go: questions, test design, cases, API, SQL, bugs, automation, CI and the report.

The path of one feature

The full path of one feature1. Requirementquestions2. Test designBVA, pairwise3. Test casesQA Tools4. API + SQLPostman5. Bugsreports6. Automationhooks, CI7. VerdictGo / No-Go
The full path of one feature. From the requirement to the release verdict: every step produces an artifact, and every artifact links to the previous one — that's how coverage and risks stay visible.

This lesson pulls the whole module into one story. Repeat it on any feature of your own or an open project — and you'll have the strongest item in your portfolio.

1. The requirement and the questions

We take US-214 from requirements analysis. After the review, the analyst answered:

  • "Quickly" = the discount applies without a page reload, API response under 800 ms.
  • Validity includes the last day, Eastern Time (the store's time zone).
  • The promo code doesn't stack with sale prices: the discount applies only to non-sale items.
  • Code length is 4–12 characters, Latin letters and digits, case-insensitive.

2. Test design

Technique What we got
Equivalence partitioning Valid, nonexistent, expired, inactive, empty code
Boundary values Length 3, 4, 12, 13; the last valid day at 11:59 PM and the next day at 12:00 AM
Pairwise Item type × shipping method × platform — 9 combinations instead of 27
Decision table Sale item yes/no × promo code valid yes/no

Calculate the boundaries with the boundary value calculator and the combinations with the pairwise generator.

3. Cases and the test plan

Add the cases to the release test plan (for example, in QA Tools): a "Promo code in the cart" section, critical priority for a valid code and the total, high for an expired code, medium for the messages. The smoke suite is assembled automatically from critical and high.

4. API and database

  • A Postman collection: apply, repeat, nonexistent code, case — see Postman in practice.
  • SQL after checkout: discount = 12.50, total = 112.50, one order row — see SQL for testers.

5. Defects

During testing we found:

ID Title Severity Priority
BUG-57 [Cart] Promo code expires at 11/30 00:00 UTC instead of 11:59 PM Eastern Major High
BUG-58 [Cart] The discount is applied to a sale item Critical Highest
BUG-59 [Cart] Lowercase code "sale10" is rejected Minor Medium

Each one has steps, expected/actual results, the x-request-id from DevTools and a screenshot.

6. Automation

  • API tests for every equivalence class — fast and stable.
  • One UI test of the critical path with hooks: the cart is created in beforeEach through the API and removed in afterEach — see Playwright with hooks.
  • The test for BUG-58 becomes a regression test: red before the fix and green after it.

7. CI

The tests run on every PR with sharding, the report is kept as an artifact, and results go to the test plan — see CI/CD for automated tests.

8. The verdict

Criterion State
All cases executed 38 / 38
Open Critical / Major 0 / 1 (BUG-57)
Open questions 0
Automated tests 41 / 42 green, 1 — BUG-57

Decision: Go with conditions — BUG-57 affects only the last hours of the code's validity, and the campaign starts on December 1; the fix goes into the next hotfix, and the risk is accepted by the product owner.

Homework

Pick a form on a public website (sign-up, search, cart) and go through all eight steps. The result — a test plan, 20–40 cases, 5+ bug reports, a Postman collection and 3–5 automated tests in a repository — is a ready-made portfolio for a junior QA interview.

Key takeaways

  • Every stage produces an artifact linked to the previous one: questions → cases → bugs → tests → verdict.
  • The release verdict rests on facts: execution, defects, open questions, automated tests.
  • The full path of one feature is the strongest item in a portfolio.

Check yourself

  1. 1. What do you do with an automated test that reproduces the not-yet-fixed BUG-58?

  2. 2. When is a "Go with conditions" verdict appropriate?

  3. 3. Why use pairwise in the test design for this feature?

Practice: Interview preparation