Risk-based testing: one risk, one test
Risk-based testing is easy to agree with and hard to do. A simple discipline helps: for every reasonably foreseeable failure you identified there should be one clearly named assurance activity, and every test you run should trace back to a risk.
FDA’s CSA guidance recommends applying principles of risk-based testing, in which the management, selection, prioritization and use of testing activities and resources are consciously based on the corresponding types and levels of analyzed risk. “One risk, one test” is a practical way to make that visible.
Step 1: write the risk as a failure
Phrase each risk as what could go wrong with a specific feature, function or operation, for example “the system accepts a result outside the specification limit without flagging it”. Vague risks such as “data integrity” cannot be tested. The guidance asks you to consider failures that are reasonably foreseeable, not only the likely ones.
Step 2: decide the level of risk
Decide whether the failure is high process risk, meaning it may result in a quality problem that foreseeably compromises safety. Then note the controls that already exist: a second-person review, a downstream inspection, an alarm. They do not remove the risk, but the guidance allows them to reduce the assurance effort.
Step 3: choose one assurance activity
Pick the activity that gives the most confidence for the effort, and name it:
- Scripted testing, robust or limited: step-by-step test cases with expected results. FDA mentions scripted or hybrid approaches as options for high process risk functions.
- Unscripted testing: scenario testing, error guessing or exploratory testing, with objectives and pass/fail criteria where needed. FDA suggests these for functions that are not high process risk.
- Supplier evidence: for low-risk functions of a well-assessed product, the vendor’s testing plus your installation and configuration checks may be enough.
These are not rigid rules. FDA notes that unscripted testing may suit even some high process risk functions, and that automated scripted tests may be efficient for lower-risk ones. GAMP® 5 Second Edition likewise encourages exploratory and other unscripted techniques, and points out that automated testing brings benefits to coverage, repeatability and speed.
Step 4: one row in the traceability matrix
Each risk becomes a row: requirement or function, failure, risk level, existing controls, assurance activity, test reference and result. If a test has no risk in its row, ask why it exists. If a high-risk row has no test, you have found a gap before the auditor does.
Step 5: keep the evidence proportional
Capture what proves the function performs as intended for the risk identified, and no more. FDA’s examples show that a robust scripted test records a result for each test case, while unscripted testing records a summary of what was tested, the issues found, a conclusion, and who tested and when. The guidance also recommends using system logs, audit trails and other digital records instead of screenshots where they are reliable.
A worked example
A laboratory system calculates a final assay result and compares it with the specification limits. Failure: a wrong calculation or limit check lets an out-of-specification result pass without human review. Risk: high process risk, because no later control catches it. Activity: a scripted test with values just inside, on and just outside each limit, plus a check of the audit trail entry. The same system’s user-preferences screen can at worst show a wrong display setting; a short exploratory session, documented in one paragraph, is enough.
Where it goes wrong
- Many tests mapped to the same low risk, because the template had them.
- One huge test covering ten risks, so a single failure blocks the whole package.
- Risks copied from another system without asking whether they apply here.
One risk, one test does not mean exactly one test case. It means one deliberate, named decision per risk, so anyone can see what you tested, why, and how thoroughly.
Try it on your own system
ValidaFast turns these steps into a draft risk classification and a proportional validation plan, in your browser. The free tool needs no account, and nothing you type is uploaded.
Human review required. This article is general guidance, not legal or regulatory advice. Check the current version of each source, and have qualified personnel under your quality system make and approve the final validation decisions.
Sources
- FDA, Computer Software Assurance for Production and Quality Management System Software, guidance issued 3 February 2026, superseding the version of 24 September 2025. Quotes and summaries in this article refer to the 24 September 2025 text.
- ISPE GAMP® 5: A Risk-Based Approach to Compliant GxP Computerized Systems (Second Edition), July 2022.
- S. Wyn, C. Clark, What You Need to Know About GAMP® 5 Guide, 2nd Edition, Pharmaceutical Engineering (ISPE), January/February 2023.