Practical guidance

Risk-Based Testing

Choose testing based on the failure you need to detect and the evidence you need to retain.

In this guide

Scripted testing

Use defined steps and expected results when exact outcomes, repeatability and retained evidence matter. Examples include calculations, critical limits, approval restrictions and error handling.

Unscripted and exploratory testing

Unscripted testing lets knowledgeable testers challenge functionality without a detailed sequence of pre-approved steps. Define the objective, relevant risks and what results will be recorded.

Exploratory testing combines learning, test design and execution. Use it to investigate behavior, unusual sequences and interactions. Record what was explored, what happened and any follow-up.

Match the method to the question

SituationUseful approach
Calculate a product acceptance resultIndependently determine expected results; challenge boundaries and invalid inputs
Change a CAPA approval branchCheck required and unauthorized paths, including open records
Change a dashboard layoutExplore representative tasks, roles and unusual display states
Reuse standard supplier functionalityReview relevant supplier evidence, then test local configuration and uncovered risks

Scripted and unscripted work can be combined. The method label alone does not establish adequate coverage.

Keep useful evidence

Record the version and setup, activity performed, expected and observed behavior where relevant, tester, date, findings and conclusion. Keep defects and retest references connected to the affected requirement.

Review supplier testing before deciding what to repeat locally.

Detailed practice, examples and references

Scripted testing

Use a controlled sequence when exact preconditions, input values, expected results, and comparison are important. Examples include expiry at a defined time boundary, an acceptance calculation, or a signature remaining connected to an approved revision.

Completed test example — fictional: Input a result of 10.004 where the approved rule specifies comparison using the unrounded result against an upper limit of 10.000. Expected: unacceptable. A display rounded to 10.00 must not change the underlying decision. The approved specification must define this behavior; a tester must not invent a rounding rule during execution.

Exploratory testing

The tester learns about the system while designing and executing checks within a defined purpose. A useful charter states the scope, risks, starting conditions, and evidence to retain. Record what was explored and what was discovered.

Example charter: “Explore the CAPA reassignment workflow with active, inactive, and unauthorized users. Look for ways an item can lose ownership or bypass escalation. Record tested role combinations, relevant state transitions, findings, and evidence references.”

Exploratory testing is not an undocumented browsing session. It can expose combinations a rigid script did not anticipate. It may be combined with precise follow-up scripts for discovered failures.

Ad hoc checks

A focused check may answer an immediate narrow question, such as whether a corrected label is visible in the affected view. Capture its purpose, version, activity, result, and conclusion as appropriate to the decision. Use your organization’s terminology consistently; do not relabel a weak test to make it appear more rigorous.

Automated testing

Automation helps repeat checks and examine larger input sets. Its usefulness depends on the expected result, coverage, environment, and failure reporting. A test that only checks whether an API returns HTTP 200 may pass even when the wrong lot status is returned.

Example: For a LIMS interface, compare sample ID, analyte, value, units, specification version, status, and transaction identity. Challenge duplicate messages, reordered messages, and invalid values. Retain enough output to explain individual failures.

Negative and boundary testing

Negative tests challenge what should be rejected or prevented. Boundary tests examine where behavior changes. Examples include an unauthorized approval, a missing required field, an exact specification limit, an expired certificate, or the transition from one effective procedure revision to the next.

Evidence that helps another reviewer

Record the system/configuration, tested use, test conditions, expected outcome, actual outcome, relevant observations, exceptions, and conclusion. Reference machine logs, data comparisons, or screenshots where they help substantiate the result. A screenshot is useful when it shows something important; it is not a substitute for a meaningful test.

Handle failures without rewriting history

Preserve the observed failure. Assess the cause and impact. Record the correction, required retesting, and any broader regression need. If the expected result was wrong, explain and approve its correction through the applicable process. Do not silently convert a failure to a pass.

Exercise: All 400 automated checks passed, but none evaluates whether the correct approver received the task. Is CAPA routing supported?

Answer: The pass count does not answer that question. Add or identify evidence that tests routing against the approved rules, including exception paths.

Map the test strategy to IQ, OQ, PQ, and UAT

Traditional labels can still be useful. IQ confirms that the approved environment, version, components, and configuration are installed or provisioned as intended. OQ challenges functional controls and defined operating ranges. PQ or UAT demonstrates that trained users can perform the approved process with representative data and procedures. A protocol may combine these activities when that is clearer. Record prerequisites, test data, expected and actual results, objective evidence, tester, date, deviations, retest, and approval. Link critical tests to the URS, FRA, and RTM.

Choose testing by asking what you still need to learn. This method considers failure consequence, complexity and variability, existing evidence, and the need for precise reproducibility.

Worked selection

QuestionActivityWhy it helps
Does expiry block access at the exact boundary?Scripted boundary testPrecise time and expected state matter
Can users strand a CAPA during reassignment?Exploratory charter plus recorded findingsInteraction combinations may be difficult to predict
Are all valid unit mappings correct?Automated data-driven comparisonRepeats defined checks across the mapping set
Does the corrected label appear?Focused documented checkAnswers a narrow changed-behavior question
Does an interface recover safely?Controlled fault and recovery scenarioChallenges interrupted state and reconciliation

These activities can be combined. Exploratory work can discover a failure that becomes a scripted regression test. Automation can execute a precise test repeatedly but still use a poor expected result.

Completed rationale — fictional

Routing rules require controlled comparisons for each approved decision branch and relevant invalid inputs. Exploratory testing will examine reassignment and cancellation interactions. Existing engine tests support standard transition mechanics. Local evidence will address configured roles and rules. The approach will be revised if new dependencies emerge.

Reusable worksheet

State the uncertainty, failure, consequence, existing evidence, proposed activity, expected-result basis, coverage, retained evidence, limitations, and acceptance decision.

Common mistake: “The function is lower risk, so no record is needed.” Even a narrow validation decision needs an appropriate basis. The record may be concise, but it should explain what supports the conclusion.

Practitioner guidance by Sandip Thorat · Simplified 17 September 2026. Apply the requirements and approved procedures relevant to your system. Report a correction.

Questions and discussion

Ask a question or share a perspective. Contributions are reviewed before publication.

Loading contribution options…