QA
Lesson 8 of 8About 3 min readSuggest an edit

Risk-based testing and quality strategy

You never have time to test everything equally. A quality strategy decides where effort goes, based on what could go wrong and how much it would hurt.

Assessing risk

For each feature, component or change, estimate two things:

  • likelihood: how probable is a defect? Complex logic, new technology, a history of bugs and many integrations all raise it.
  • impact: how bad would it be? Consider money, data loss, security, legal exposure, users affected and how easily it can be undone.

Risk = likelihood x impact. A rough score is enough; the value is in the conversation it forces.

Area Likelihood Impact Approach
Payment capture Medium High Deep: unit, contract, e2e, canary
New tax rules High High Deep: decision tables, review with finance
Profile avatar upload Medium Low Light: a few API tests
Footer links Low Low Minimal: covered by a smoke check

Deep versus light

High-risk areas get several layers of defence: thorough test design, automated checks at more than one level, exploratory sessions and a cautious rollout. Low-risk areas get a few automated checks. Revisit the scores when things change: a quiet module that becomes central to a new feature is no longer low risk.

Write down what you test lightly, so the decision is shared rather than an accident.

Shifting quality left

Defects are cheapest to fix before they are written. Shifting left means moving quality work earlier:

  • requirements: ask “how will we know this works?” during refinement and write examples as acceptance criteria;
  • design: favour testable designs, such as injected clocks and dependencies, small pure functions and clear boundaries;
  • code review: review tests alongside code, and look for missing error handling and edge cases;
  • static analysis: types, linters and security scanners catch whole classes of bugs for almost no effort.

Exploratory testing charters

Scripted tests check what you expected. Exploratory testing finds what you didn’t. A charter gives a session focus without scripting it. A common template is “explore a target with some resources to discover some information”:

Charter:  Explore bulk import with malformed and very large
          CSV files to discover how errors are reported and
          whether partial imports leave bad data.
Timebox:  60 minutes
Notes:    steps tried, questions, bugs, ideas for new tests
Debrief:  15 minutes with the developer and product owner

Rotate charters around the team. Findings feed new automated tests and sharper risk scores.

Metrics that help

Good metrics show outcomes and trends, and prompt action:

  • escaped defects: bugs found in production, by severity and by where they could have been caught;
  • change failure rate: the share of deployments that cause an incident or need a fix;
  • time to restore: how quickly you recover when something does break;
  • flaky rate: the share of test runs that fail without a code change;

Vanity metrics look productive but don’t reflect quality: number of test cases, bugs logged by QA, raw coverage, or a 100% pass rate reached by skipping failing tests. Once people are rewarded for a number, they optimise the number instead of the quality.

The QA role across the team

In a strong team, quality is everyone’s job, and the QA engineer makes that practical. Instead of being the last gate, you:

  • coach developers in test design and help them write better tests;
  • bring risk thinking into planning and refinement;
  • build and maintain tools, test data and pipelines that make testing easy;
  • advocate for users, including accessibility and failure cases;
  • make quality visible with honest metrics and clear risk calls.

How to build a strategy

  • List the areas of your product and score each for likelihood and impact.
  • Agree the testing depth for each level of risk, and write it down.
  • Add one shift-left practice where escaped defects are clustering.
  • Run regular exploratory sessions on the highest-risk areas.
  • Track a small set of outcome metrics and review them each month.

Test what you just read

The QA assessment picks questions near your level and explains every answer.