A validation protocol is a promise you make before you touch the system, and the validation report is the proof you kept it. Inspectors read both. They compare what you said you would test against what you actually tested, and they look at how you handled the moments when reality did not match the plan. Most validation findings do not come from a system that failed to work. They come from documents that were sloppy, test scripts that proved nothing, acceptance criteria that were written after the result was known, or deviations that were quietly buried instead of investigated.
This page covers the deliverable-level craft: how to write installation qualification (IQ), operational qualification (OQ), and performance qualification (PQ) protocols and their reports so they hold up. The mechanics of test scripts, the discipline of acceptance criteria, the rules for handling executed data, and the way a protocol deviation is supposed to flow from discovery to disposition. If you can write a clean script and defend it, you can do this job.
Where protocols and reports sit in the validation lifecycle
Validation is a lifecycle, not a binary. The framework most teams follow comes from GAMP 5 Second Edition (ISPE, 2022), which describes a specification-and-verification model: you define what the system must do, then you verify it does it. Protocols and reports are the verification half. For process validation, the parallel structure is in the FDA guidance “Process Validation: General Principles and Practices” (2011), which splits validation into Stage 1 design, Stage 2 process qualification, and Stage 3 continued process verification. For computerized systems, the regulatory anchors are 21 CFR Part 11 (electronic records and signatures) and EU GMP Annex 11 (computerised systems), both of which require documented evidence that a system is fit for its intended use.
Not every organization runs the classic IQ/OQ/PQ silos for equipment and facilities. ASTM E2500, the standard guide for specification, design, and verification of pharmaceutical and biopharmaceutical manufacturing systems and equipment, sets out a science- and risk-based verification model that many sites use instead of, or alongside, traditional qualification: critical aspects get targeted verification, non-critical ones get good-engineering-practice commissioning, and vendor documentation is reused rather than re-proven where the supplier has been properly assessed. See commissioning-qualification-astm-e2500 for the full model. The label on the document, an IQ/OQ/PQ protocol or a verification protocol, does not change what this page teaches: a script that proves something, an acceptance criterion set before execution, and objective evidence a reviewer can check independently are the same craft either way.
The plan-execute-report chain runs like this:
- A validation plan (often a Validation Master Plan, or a system-specific validation plan) defines scope, approach, deliverables, and roles. See validation-master-plan-and-periodic-review.
- Requirements define what the system must do. See user-requirements-and-traceability.
- A risk assessment decides how much testing each requirement needs. See csv-risk-assessment-methodology.
- Protocols (IQ/OQ/PQ) are written and approved, then executed to produce evidence.
- A summary report rolls up the results and supports release. See validation-summary-report-and-release.
The protocol is approved before execution. That sequence is not bureaucratic theater. An approved-before-execution protocol is the single best defense against the accusation that you reverse-engineered your acceptance criteria to match a result you already had. If your protocol approval signatures post-date your execution dates, an inspector will notice, and the entire data set becomes suspect.
For a map of the full deliverable set, see validation-deliverables-guide.
IQ, OQ, PQ: what each one proves
The three qualification stages answer three different questions. Mixing them up is a common rookie error, and it produces protocols that test the wrong thing at the wrong time.
Installation Qualification (IQ)
IQ proves the system is installed correctly and matches the design and purchase specifications. It is a verification of the as-built state against the as-specified state. Nothing dynamic happens in IQ. You are confirming that the right components are present, configured, and documented.
What IQ typically verifies:
- Hardware inventory: servers, workstations, instruments, model and serial numbers, asset tags.
- Software inventory: application version, operating system version, database version, patch level, service packs.
- Installation against the vendor installation manual or an approved configuration specification.
- Network connectivity, drive mappings, interfaces present.
- Required utilities and environmental conditions present (power, HVAC where relevant).
- Required documentation on hand: manuals, certificates, calibration records for measuring components.
- User accounts and security framework installed (the framework, not yet the behavior).
Operational Qualification (OQ)
OQ proves the system functions as intended across its operating range, under controlled, often challenge conditions. This is where you exercise functions: alarms, limits, calculations, access controls, audit trail capture, error handling, boundary values. OQ usually runs against specifications rather than real production data, frequently with test data designed to push edges.
What OQ typically verifies:
- Each functional requirement performs as specified.
- Boundary and limit testing: values just inside and just outside acceptable ranges.
- Alarms and interlocks trigger at the correct setpoints.
- Calculations produce correct results against hand-calculated or independently derived expected values.
- Security and access control: each role sees and does only what it should.
- Audit trail records the right events with the right metadata (who, what, when, old value, new value).
- Backup and restore behaves correctly.
- Error and exception handling: the system fails safely and informatively.
Performance Qualification (PQ)
PQ proves the system performs reliably and reproducibly in its actual operating environment, under real or production-representative conditions, with trained users running the real process. For a process, PQ overlaps with Process Performance Qualification (PPQ), where you run the commercial process at scale and confirm it consistently produces conforming product. See process-performance-qualification-ppq and process-validation-lifecycle.
What PQ typically verifies:
- The full end-to-end process or workflow performs as required in the production environment.
- Reproducibility across runs, operators, shifts, or batches.
- Real-world load, throughput, and data volumes.
- Integration with upstream and downstream systems under live conditions.
A useful shorthand: IQ is “is it built right,” OQ is “does it work right,” PQ is “does it work right every time in the real place.” Equipment qualification follows the same structure; see equipment-qualification-lifecycle. For computerized systems specifically, the modern risk-based view, Computer Software Assurance, FDA final guidance “Computer Software Assurance for Production and Quality Management System Software,” issued 3 February 2026, superseding the 24 September 2025 final guidance “Computer Software Assurance for Production and Quality System Software” (the intervening title picked up the word “Management” to align with the Quality Management System Regulation), lets you scale the rigor of testing to risk, so a low-risk configured function may get a lighter scripted or unscripted test while a high-risk function gets a full detailed-scripted protocol. See computer-software-assurance-fda and gamp5-csv-framework. This page covers how that risk call changes what you actually write in a script; see “Matching test rigor to risk” below.
IQ, OQ, and PQ at a glance: evidence and common deviation causes
The three stages do not just ask different questions, they tend to fail in different ways. Knowing the typical deviation cause for each stage is worth knowing before you write the protocol, not just after a test fails, because it tells you where to put your authoring effort.
| Stage | Proves | Typical objective evidence | Common deviation causes |
|---|---|---|---|
| IQ | The system is installed and configured as specified (as-built matches as-specified) | Component and version inventories, configuration exports, calibration certificates, network diagrams, signed installation checklists | The installed version does not match the purchase or design spec; a required document (manual, certificate) is missing at execution; a component was substituted without an approved change |
| OQ | The system functions correctly across its operating range under controlled challenge conditions | Screenshots of function outputs, calculation printouts with independently derived expected values, audit trail exports, denied-access messages, alarm logs with timestamps | A boundary value behaves unexpectedly; a role has more or less access than specified; an audit trail entry omits a required field; the test script itself contains a wrong expected value or test data reference |
| PQ | The system or process performs reliably and reproducibly under real or production-representative conditions with trained users | Production batch records, throughput and cycle-time logs, records spanning multiple runs, operators, or shifts, statistical summaries of repeated results | Reproducibility fails between operators or shifts (usually a training or procedure gap, not a software defect); real-world data volume exposes an issue never seen in a smaller test data set; an interface behaves differently against a live upstream or downstream system than it did in the isolated OQ environment |
IQ deviations are almost always about the installed state not matching the spec, something a good component and version inventory catches, not clever test steps. OQ deviations split between genuine functional problems and script-authoring mistakes, because OQ is where the heaviest scripted testing happens and scripts are where authoring errors surface. PQ deviations skew toward human and process factors, since the software itself was already proven functionally correct in OQ; if a PQ deviation turns out to be a software defect that OQ should have caught, that is worth investigating as an OQ coverage gap in its own right, not just fixing and moving on.
Anatomy of a qualification protocol
Every protocol, regardless of stage, shares a common skeleton. Templates differ across organizations, but the content below is what an inspector expects to find and what makes a protocol defensible.
1. Header and approval
- Document number, title, version, effective date.
- System or equipment name and unique identifier.
- Approval signatures with role and date. At minimum: author, system owner or SME, Quality Assurance. Approval must be dated before execution begins.
2. Purpose / Objective
One or two sentences stating exactly what this protocol will demonstrate. Specific, not generic. “This protocol verifies that the chromatography data system, version X, correctly enforces electronic signature requirements, captures audit trail entries for data modification, and restricts result reprocessing to authorized roles.” Not “This protocol validates the system.”
3. Scope
Defines boundaries: what is in, what is out. Which modules, which interfaces, which functions, which sites, which user roles. Explicitly state exclusions and why they are excluded (covered elsewhere, not used, out of GxP impact). Scope statements that say everything is in scope and nothing is out are a red flag, because they are almost never true and they signal the author did not think about boundaries.
4. References
The requirement document(s), risk assessment, validation plan, vendor manuals, SOPs, and any standards being verified against. The traceability backbone lives here.
5. Roles and responsibilities
Who executes, who reviews, who approves, who serves as SME, who from Quality provides oversight. Name the roles, not necessarily the individuals (individuals get recorded at execution).
6. Prerequisites / Entry criteria
What must be true before execution starts:
- Protocol approved.
- System installed (for OQ, IQ complete and approved).
- Test environment available and identified.
- Test data prepared and identified.
- Executors trained on the protocol and on the system.
- Required SOPs effective.
- Calibration of any measuring equipment used during testing current.
7. Assumptions, limitations, exclusions
State anything the reader needs to interpret the results correctly. For example, that testing was performed in a qualified test environment that mirrors production, or that a particular interface was simulated.
8. Test scripts
The core. Covered in detail below.
9. Acceptance criteria (protocol-level)
The overall bar for the protocol to be considered passed. Usually: all test scripts executed, all results meet their individual acceptance criteria, and all deviations are resolved and dispositioned with no unresolved impact on the conclusion.
10. Deviation handling
A reference to how deviations encountered during this execution will be documented and resolved (usually pointing to an SOP and including a deviation log within the executed protocol).
11. Attachments
Screenshots, printouts, raw data, query results, calibration certificates, training records, configuration exports.
Writing test scripts that prove something
A test script is the unit of evidence. It is where most protocols are won or lost. A well-written script can be executed by a competent person who has never seen the system, produce an unambiguous pass or fail, and leave behind objective evidence that a reviewer can independently verify months later.
Required elements of a test script
| Field | What it contains | Why it matters |
|---|---|---|
| Test ID | Unique identifier (e.g., OQ-012) | Traceability and cross-reference |
| Requirement reference | The requirement ID(s) this test verifies | Links evidence to the spec |
| Objective | One line: what this test proves | Keeps the test focused |
| Prerequisites | State the system must be in before step 1 | Reproducibility |
| Test data | Specific inputs to use, identified | Repeatability and traceability |
| Test steps | Numbered, atomic actions | One action per step, no ambiguity |
| Expected result | What should happen at the step(s) that matter | The pre-defined bar |
| Acceptance criteria | The pass condition | Objective pass/fail |
| Actual result | Recorded at execution | The evidence |
| Pass / Fail | Recorded at execution | The verdict |
| Objective evidence ref | Screenshot/printout/attachment number | Independent verifiability |
| Executed by / date | Initials/signature and date | Attributability (ALCOA+) |
| Reviewed by / date | Initials/signature and date | Second-person verification |
The discipline of writing steps
Each step is one action. “Log in as a QC Analyst and attempt to delete a result and observe the audit trail” is three steps crammed into one, and it makes failure impossible to localize. Split it:
- Log in to the application using the QC Analyst test account (analyst_test).
- Navigate to the results screen for sample TEST-SAMPLE-001.
- Attempt to delete the result for TEST-SAMPLE-001.
- Observe and record the system response.
- Open the audit trail and locate the entry generated by the attempted action.
Write expected results for the steps where something must be proven. Not every step needs an expected result (moving to a screen usually does not), but the steps that carry the proof do.
Worked example: an OQ test script for access control and audit trail
Test ID: OQ-012 Requirement reference: URS-045 (a QC Analyst role shall not be able to delete acquired results), URS-046 (all delete attempts shall be captured in the audit trail with user, timestamp, and action) Objective: Verify that the QC Analyst role is prevented from deleting acquired results and that the denied attempt is recorded in the audit trail. Prerequisites: System installed and IQ approved. Test account analyst_test configured with QC Analyst role. Sample TEST-SAMPLE-001 acquired and present in the system.
| Step | Action | Expected Result | Actual Result | Pass/Fail | Evidence |
|---|---|---|---|---|---|
| 1 | Log in as analyst_test | Login succeeds; role displayed as QC Analyst | SS-012-1 | ||
| 2 | Open result for TEST-SAMPLE-001 | Result displays | SS-012-2 | ||
| 3 | Attempt to delete the result | Delete is blocked; system displays an authorization-denied message; no result is removed | SS-012-3 | ||
| 4 | Open the audit trail filtered to TEST-SAMPLE-001 | An entry exists showing user analyst_test, the date and time of the attempt, and the action (delete attempt denied) | SS-012-4 |
Acceptance criteria: Steps 1-4 all pass. The delete is prevented, the result remains intact, and the audit trail contains a complete, attributable record of the denied attempt. Executed by / date: ____________ Reviewed by / date: ____________
Notice what makes this defensible: a named test account, a named sample, a specific expected behavior (denial plus an intact record plus an audit entry with named metadata fields), and a referenced screenshot for each evidentiary step. A reviewer can confirm every line without asking the executor what happened.
Worked example: a PQ test script for reproducibility across production batches and shifts
A PQ script looks different from an OQ script because it is not proving a single challenge condition, it is proving that the same result holds up across repeated real-world execution. The following illustrates a PQ test for an electronic batch record workflow in a manufacturing execution system (MES), where the requirement is reproducibility across operators and shifts, not a single pass or fail on one run.
Test ID: PQ-007 Requirement reference: URS-118 (the MES shall guide the electronic batch record for the packaging line through each required step in sequence, blocking progression on any incomplete or out-of-tolerance step, regardless of operator or shift), URS-119 (the electronic batch record shall be reproducible: three independent production batches, run by three different qualified operators across at least two shifts, shall each complete without a workflow-caused deviation) Objective: Verify that the MES electronic batch record for the packaging line performs correctly and reproducibly across three real production batches, run by different operators, across at least two shifts, in the production environment. Prerequisites: OQ approved and all OQ deviations closed. MES production environment. Three production batches scheduled with three qualified, trained operators across at least two shifts. Batch records approved for use.
| Run | Batch / operator / shift | Expected Result | Actual Result | Pass/Fail | Evidence |
|---|---|---|---|---|---|
| 1 | Batch A, Operator 1, Day shift | Batch record completes end to end; every step sequenced and blocked correctly; no workflow-caused deviation | BR-A | ||
| 2 | Batch B, Operator 2, Night shift | Same as Run 1 | BR-B | ||
| 3 | Batch C, Operator 3, Day shift | Same as Run 1 | BR-C |
Acceptance criteria: All three runs complete with the batch record fully executed in the correct sequence, no step skipped or bypassed, and no deviation attributable to the MES workflow itself (a deviation attributable to an operator’s manual error outside the MES is assessed separately and does not by itself fail this test). If any run fails, the root cause is investigated before deciding whether a fourth run is needed or whether the failure invalidates the prior passing runs. Executed by / date: ____________ Reviewed by / date: ____________
Notice what changes from the OQ example. There is no single expected numeric value; the criterion is behavioral, and it has to hold across three independent instances, not once. The evidence is a real production batch record rather than a screenshot of a test transaction, which means this script also has to state, in its assumptions section, that these are live production batches. A PQ failure here is more likely to implicate training, procedure clarity, or real data volume than the underlying code, and the investigation should say so explicitly rather than defaulting to “software defect” out of habit. If Run 2 fails because Operator 2 was not trained on a screen that Operators 1 and 3 handled correctly, that is a training deviation, not an MES deviation, and the corrective action follows accordingly: retrain and re-run, not raise a change control.
Positive and negative testing
A protocol that only confirms the happy path is incomplete. You must test that the system does the right thing (positive) and that it refuses to do the wrong thing (negative). The OQ-012 example above is a negative test: it proves a denial. For a calculation function, positive testing means feeding known inputs and confirming the correct output; negative testing means feeding an out-of-range or invalid input and confirming the system rejects it cleanly. Boundary testing sits between them: test at the limit, just below, and just above. If a specification limit is 25.0, test 24.9, 25.0, and 25.1 where the function behavior changes there.
For the discipline of linking each script back to a requirement, see user-requirements-and-traceability.
Matching test rigor to risk: the CSA lens
Not every function in a protocol needs the same weight of proof. Writing an identical, fully scripted, screenshot-per-step test for a worklist column sort and for a batch-release calculation is not more rigorous, it just spends the same effort on both regardless of what happens if each one is wrong, and a reviewer who sees that uniform treatment reasonably wonders whether anyone actually thought about consequence before writing the protocol. The deviation-category table earlier on this page already implies the same point from the other direction: not every departure carries the same weight, so not every function needs the same test method to prove it works.
FDA’s Computer Software Assurance guidance gives this judgment a name and a defensible structure. The full mechanics, direct versus indirect impact, the four-step method (intended use, risk, assurance method, record), the numeric risk matrix, live in computer-software-assurance-fda and are not repeated here. What belongs on this page is narrower: how the CSA risk call changes what you actually write, and how you document the unscripted or exploratory sessions it authorizes. A ready-to-use record for that documentation is the unscripted / exploratory test session record.
The decision, as a tree
| Risk tier | Assurance method | Typical evidence produced | Example |
|---|---|---|---|
| High (direct impact, no catching control) | Full scripted testing, independent review | Executed script with recorded actual results, screenshots or printouts per proving step, second-person review | Electronic signature binding, audit trail capture, specification comparison and out-of-specification flagging, batch release calculation |
| Medium (direct impact, real catching control) | Limited scripted testing, depth reduced and justified | Executed script, fewer boundary points, evidence at the key steps only | A calculated field whose output is independently re-verified by a required second reviewer before release |
| Low (indirect impact) | Unscripted / exploratory testing | Session charter, session log, findings and disposition | Worklist sort order, report scheduling, a UI label with no data effect |
A worked contrast makes the difference concrete. The OQ-012 example earlier on this page (a QC Analyst role blocked from deleting a result, with the denial captured in the audit trail) is squarely high risk: it is an access control and an audit trail entry, both Part 11 controls, both direct impact. It gets the full scripted treatment it received. A feature that lets the same analyst reorder the columns on that same results screen is a different animal: getting the column order wrong is cosmetic, a person notices immediately, and nothing about product quality or record integrity depends on it. That feature is a legitimate candidate for a short exploratory session rather than a six-step script with four screenshots.
Roles and common mistakes
The risk call is made and documented by the SME and the risk assessment owner, not left to whichever tester happens to be writing that day’s script, and QA concurs with the classification before the protocol is approved, the same way QA concurs with any other acceptance criterion. Two mistakes show up repeatedly once teams start using this flexibility. First, a genuinely risky function gets routed into the unscripted lane with no written reasoning, just a note that says “low risk,” and the classification cannot survive a question about why. Second, the reverse: teams keep scripting everything at full depth out of habit or fear. That is not wrong exactly, CSA does not require anyone to descope anything, but it forfeits the actual benefit of the guidance and burns testing effort that could have gone toward a harder boundary case on a function that matters. Either failure comes from treating the risk classification as decoration instead of as the thing that has to hold up when someone asks about it later.
Acceptance criteria: the line you draw before you look
Acceptance criteria are the predefined, objective conditions that determine pass or fail. They are the most scrutinized element of any protocol because they are the easiest to corrupt. The cardinal rule: acceptance criteria are written and approved before execution. If you define the bar after seeing the result, you are not testing, you are rationalizing.
What makes a good acceptance criterion
- Objective and measurable. “The report displays correctly” is not a criterion; correct according to whom, measured how? “The report displays the lot number, analyst name, result value to two decimal places, and units, matching the source record” is a criterion.
- Pre-defined. Established before execution and frozen by approval.
- Tied to a requirement. Each criterion traces to something the system was required to do.
- Binary in outcome. A reviewer reading the actual result can determine pass or fail without judgment calls.
Quantitative versus qualitative criteria
Some criteria are numeric. A temperature mapping study might require all monitored points to stay within a defined range for a defined duration with mapping sensors that meet a stated calibration tolerance; see temperature-mapping-qualification. A PQ for a process might require results within specification across a defined number of consecutive runs with statistical capability above a threshold; see statistics-in-quality-cpk-control-charts. Other criteria are functional and qualitative: a function performs as specified, a record is generated, an alarm fires. Both are valid. Both must be objective.
Worked example: contrasting weak and strong criteria
| Requirement | Weak criterion (avoid) | Strong criterion (use) |
|---|---|---|
| Calculation accuracy | Result is correct | Calculated result equals the independently computed expected value of 98.6%, within a rounding tolerance of plus or minus 0.1% |
| Audit trail capture | Audit trail works | An audit trail entry is generated for the change, recording user ID, date and time stamp, original value, new value, and reason where required |
| Alarm function | Alarm sounds | The high-temperature alarm activates at a setpoint of 8.0 C, with visual and audible indication, and the event is logged with a time stamp |
| Access control | Permissions are correct | A user with the Operator role cannot access the configuration menu; the menu is not visible and direct navigation is denied |
The strong versions share a trait: a person who was not present at execution can read the actual result against the criterion and reach the same verdict the executor reached. That is the entire point.
Objective evidence and how to handle executed data
Objective evidence is the proof that a test produced the result you recorded. Under ALCOA+ (the data integrity principles described in FDA and MHRA data integrity guidance), evidence and recorded data must be attributable, legible, contemporaneous, original, accurate, complete, consistent, enduring, and available. See ALCOA+ in detail and data-integrity-foundations. The executed protocol is a GxP record, and it must be treated like one.
What counts as objective evidence
- Screenshots showing the system state, the input, and the result, with date/time visible where possible.
- System-generated printouts or reports.
- Database query results.
- Configuration exports.
- Raw data files, with a reference to where they are stored.
- For analog or numeric readings, the recorded value with units and the device used.
Every piece of evidence must be uniquely identifiable (a numbering scheme such as SS-012-3) and cross-referenced from the test step it supports. Loose, unnumbered, unattributed screenshots stapled to the back of a protocol are a finding waiting to happen.
Rules for recording executed data
These are good documentation practice rules applied to validation. See good-documentation-practices.
- Record contemporaneously. Write the actual result as you observe it, not from memory afterward.
- Original entries in indelible ink for paper protocols; no pencil.
- Corrections are made with a single line through the error, the correct entry, the initials and date of the person making the correction, and a reason if the reason is not obvious. Never obscure the original entry. Never use correction fluid.
- No blanks. Every field is filled. If a field is not applicable, write N/A and initial. A blank field is ambiguous: was it skipped, forgotten, or deliberately left empty?
- Attributable. Every entry traces to a person via initials or signature, with a date. Maintain a signature/initials log identifying each executor.
- Print-and-sign for electronic test outputs must preserve the link to the source; a screenshot of a screen with no system identifiers proves little.
Handling raw data and dynamic records
If a test produces dynamic electronic data (a chromatogram, a sequence run, an audit trail export), a static printout may not be a true representation of the original record. The distinction between static and dynamic records, and what makes a valid true copy, matters here. See static-dynamic-records-true-copies. Where the dynamic record is the original, reference and preserve it, do not let a flattened screenshot become the only retained evidence of a record that was meant to be interrogable.
Executing on paper, electronically, or both
Many protocols execute as a hybrid: a printed protocol where the tester writes the actual result by hand, while the evidence behind that result, a screenshot, a system-generated printout, a chromatogram, is electronic. Others execute entirely inside a validated electronic protocol or eQMS tool. Some mix both within a single protocol: narrative steps on paper, evidence attachments electronic. Whichever pattern applies, the seam between the two halves has to be controlled deliberately or the seam itself becomes the finding, not the system under test. The general treatment of hybrid records, which record governs, reconciliation, true copies, and linking a signature across the seam, is covered in full in hybrid-paper-electronic-records; what follows is what applies specifically to protocol execution.
- Decide once, in the protocol’s assumptions and limitations section (see section 7 of the protocol anatomy earlier on this page), which half is the governing record for each type of evidence produced. Deciding case by case during execution is how a hybrid protocol turns into an unreconstructable mess.
- Every electronic attachment referenced from a paper step, or vice versa, needs the same unique reference on both halves (the SS-012-3 style numbering used throughout this page). A step that says “see attached” with nothing findable under that number, or an attachment with no step reference pointing to it, is unattributable, and unattributable evidence is functionally the same as no evidence.
- A screenshot or printout is a static extraction of a record that may be dynamic underneath. If the true record is something a reviewer would need to reprocess or re-derive the result from, an audit trail export, a chromatogram, the flattened image is proof a step was performed, not a substitute for retaining the dynamic original it came from.
- Corrections follow the medium they were made in. A paper entry gets the single-line-through-and-initial treatment described earlier. An electronic entry is corrected inside the system, captured by that system’s own audit trail. Never fix a printed record by hand to match a later electronic change, and never edit an electronic record to match what someone wished the paper said.
- If the protocol is executed inside an electronic tool rather than on paper, confirm the tool itself is validated for that intended use before treating its output as the record of record. A spreadsheet or a generic e-signature product pressed into service to digitize protocol execution is itself a GxP system and carries the same validation expectation as the system it is being used to test. See infrastructure-qualification-and-spreadsheet-validation.
The recurring finding in this area is not the choice of paper, electronic, or both; it is losing the link between them. A signed printout with no retained dynamic file behind it, or a dynamic file with no signed record connecting it to a tester and a date, both fail the same test: can a reviewer, months later, independently confirm what happened from what was kept.
Protocol deviations: discovery to disposition
A protocol deviation (sometimes called a test incident, test failure, or discrepancy) is any departure from the approved protocol or any test result that does not meet its acceptance criterion. Deviations are normal. A protocol execution with zero deviations on a complex system is more suspicious to a seasoned reviewer than one with a handful of well-handled deviations, because it suggests either trivial testing or undocumented problems. What matters is not whether deviations occur, but whether each one is documented, investigated, and dispositioned with a justified conclusion.
This is distinct from the broader GMP deviation process, though they share DNA. See deviation-management and, for test-execution specifics, validation-test-failure-management.
Categories of protocol deviation
Not every deviation is a system failure. Classifying correctly drives the right response.
| Type | Description | Typical disposition |
|---|---|---|
| Documentation/execution error | Executor made a recording or procedural mistake (wrong account used, step done out of order, transcription error) | Correct, document the error, re-execute the affected step if needed |
| Test script error | The script itself was wrong (incorrect expected result, typo in test data, ambiguous step) | Correct the script via controlled change, justify, re-execute |
| Environment/configuration issue | Test environment not as expected, prerequisite not met | Fix environment, re-execute affected tests |
| Genuine system failure | The system did not meet a valid requirement | Investigate root cause, remediate (fix/config/code change), retest; may require change control |
The deviation flow
- Detect and stop. The executor identifies that a result does not meet the criterion or that a departure from the protocol occurred. The executor does not “fix it and move on.” They record what actually happened.
- Log it. Assign a deviation number, record the test ID affected, describe the observed versus expected, the date, and who detected it. The deviation log lives within or attached to the executed protocol.
- Assess impact. Does this affect only this test, or others? Does it affect the validity of results already recorded? Does it touch product or data already in use?
- Investigate and determine root cause. Proportionate to risk. A typo in a test step needs a sentence; a genuine functional failure needs a real investigation. See root-cause-analysis-techniques.
- Determine corrective action. Correct the script, fix the configuration, raise a defect/change for a code fix, update training, whatever the root cause demands. A code or configuration change to the validated system flows through change control. See change-control-validated-systems.
- Re-execute as needed. After correction, re-run the affected test(s). Record the re-execution as a distinct, dated event with its own evidence; do not overwrite the original failed record.
- Disposition and justify. State the conclusion: deviation resolved, no impact on protocol conclusion, with rationale. QA reviews and approves each deviation’s disposition.
- Close. All deviations must be closed before the protocol can be reported as passed, or any open item must be explicitly justified and risk-assessed in the summary report.
Worked example: a documented protocol deviation
Deviation No.: DEV-OQ-003 Affected Test ID: OQ-008 (calculation of assay percent) Description: During execution of step 4, the calculated result displayed as 102.4% against an expected result of 98.6%. Investigation found the test data file loaded was TEST-DATA-02 rather than the specified TEST-DATA-01; the protocol called for TEST-DATA-01. Category: Execution error (wrong test data used). Impact assessment: Limited to OQ-008. No other test used this data file. No system calculation defect; the calculation engine performed correctly on the data it was given (verified by re-running with the correct file). Root cause: Two similarly named test data files; the executor selected the wrong one. No naming convention enforced in the test data set. Corrective action: Test data files renamed with clearer identifiers for clarity. OQ-008 re-executed using TEST-DATA-01. Re-execution result: Calculated result 98.6%, meeting the acceptance criterion. (See OQ-008 re-execution, dated, evidence SS-008R.) Disposition: Resolved. No impact on the OQ conclusion. Calculation function confirmed correct. QA approval: ____________ Date: ____________
This deviation is honest, localized, root-caused, corrected, and re-tested, and it explicitly says the system itself was fine. That is exactly what an inspector wants to see: not a clean record, but a controlled one.
A failure that turns out to be a real defect looks different. The disposition would reference the defect log, the change control for the fix, and a re-execution that occurred only after the fix was implemented and the fix itself controlled. The summary report then has to account for it honestly.
Protocol amendments versus deviations
A deviation records what happened despite the approved protocol; the protocol text itself does not change, and every future execution of that same step, if it were ever repeated, would still read the way it originally read. An amendment (sometimes called an addendum) changes the protocol document itself, under control, so that the remaining, not-yet-executed steps run against corrected text. Confusing the two produces two different, equally serious findings: quietly editing an approved protocol’s text to fix a bad step without any change control (an integrity problem, because the approved-before-execution record no longer matches what was actually approved), or raising a deviation for a genuinely wrong protocol and then executing every remaining occurrence of the same wrong step over and over, generating a pile of duplicate deviations instead of correcting the document once.
When each applies
| Situation | Use a deviation | Use an amendment |
|---|---|---|
| A result did not meet an acceptance criterion, and the protocol text was correct | Yes, investigate and disposition | No, the protocol did not need to change |
| The protocol text itself is wrong (a typo, a mistranscribed spec value, an ambiguous step) and steps referencing it have already executed | Yes, for the steps already run | Yes, for any remaining step that would otherwise repeat the same error |
| The protocol text is found wrong before any step has executed against it | No, nothing has happened yet to deviate from | Yes, correct it and re-approve before execution starts |
| The test environment, data, or an external condition was not as expected, with no change to the protocol text needed | Yes | No |
| An acceptance criterion is questioned only after seeing a result that fails it | Yes. Disposition the original result as a deviation against the original criterion; never simply edit the criterion. | Only for prospective, not-yet-executed steps, only if the correction is justified against the source specification, not against the result obtained, and only through the full approval chain |
The last row is the one to be careful with, because it is where an amendment can look exactly like the misconduct this page warns about elsewhere: rewriting the bar after seeing whether you cleared it. The defensible version amends forward only, cites the source specification or requirement as the reason (never the value that was obtained), and leaves the already-recorded result standing, dispositioned through the deviation process on the criterion that was actually in force when it was tested.
How to raise and control an amendment
- Confirm the change is to the protocol text itself, not to the environment, the data, or a one-time execution circumstance; those are handled as deviations without changing the document.
- Scope it: identify exactly which not-yet-executed steps reference the flawed text and would repeat the error if left uncorrected.
- Draft the amendment as a numbered, controlled document (for example, Amendment 1 or Addendum 1 to protocol OQ-018), stating what changes, the corrected text, and the reason, with a reference to the triggering deviation if there was one.
- Route the amendment through the same approval chain as the original protocol, author, SME, QA, before any step executes under the amended text.
- Execute the remaining affected steps under the amended version, and record the amendment number against those steps in the executed protocol.
- Leave steps already executed under the original text exactly as recorded; do not retroactively judge them against the new text. If they need to be re-evaluated, that happens through the deviation’s impact assessment, explicitly, not by silent substitution.
- Reference both the amendment number and any linked deviation in the final validation report.
Acceptance criteria for a valid amendment
An amendment is defensible only when all of the following hold: it is approved, by the same roles as the original protocol, before any affected step executes under it; the reason is traceable to a source document (a specification, a URS, a design document), not to an execution result; it does not alter the recorded outcome of any step already executed; and it is referenced, by number, everywhere it is relevant, the executed steps, any triggering deviation, and the final report.
Worked example
During execution of OQ-018, step 14 of 40 fails because the script’s stated acceptance tolerance for a calculation is 0.5 percent, but the approved design specification actually calls for 0.05 percent, a transcription error made when the script was written. Steps 1 through 13 already passed and do not use this tolerance value, so they stand unaffected. The step 14 result is logged as a deviation, category test script error, per the categories described earlier on this page. Because steps 15 through 18 also reference the same mistyped tolerance and have not yet executed, Amendment 1 to OQ-018 is drafted, correcting the tolerance to 0.05 percent in steps 14 through 18, citing the design specification, not the step 14 result, as the basis, and routed for approval by the original author, the system SME, and QA. Once approved, steps 14 through 18 execute under Amendment 1, and the deviation record for step 14 references Amendment 1 as its corrective action.
Roles and common mistakes
The validation lead or author drafts the amendment; the SME confirms the correction against the source specification, not against what would make a failing result pass; QA approves it before any affected step proceeds, on the same footing as the original protocol approval. The recurring mistakes: editing the live protocol page directly with no amendment record at all; writing an amendment’s justification in terms of the result it was meant to fix rather than the specification it corrects to; treating an execution-only problem, bad test data or an environment issue, as if it required a document amendment when a deviation alone would have covered it; and amending a protocol only after all testing is already finished, purely to make the paper trail look cleaner in hindsight, which inverts the entire purpose of a controlled, prospective correction.
Writing the validation report
The report closes the loop. It states what was executed, what the results were, how deviations were resolved, and whether the system or process is qualified for its intended use. The summary report is what supports the release decision and what an inspector reads first to judge whether the system can be trusted. See validation-summary-report-and-release.
What goes in a qualification or validation report
- Header and approval. Same controls as the protocol. Report approval comes after execution and after all deviations are closed.
- Purpose. Restate what the protocol set out to demonstrate.
- Reference to the executed protocol(s). By number and version.
- Summary of execution. What was executed, when, by whom, in what environment. Number of test scripts executed, number passed.
- Deviation summary. Every deviation listed with its number, a one-line description, its disposition, and its impact on the conclusion. This is the section inspectors go to. Do not bury deviations; summarize them plainly and state that all are closed and resolved.
- Acceptance criteria assessment. A statement that the protocol-level acceptance criteria were met (or, if not, exactly what was not met and how it was handled).
- Traceability confirmation. That all in-scope requirements were verified. A requirements traceability matrix is often attached or referenced. See user-requirements-and-traceability.
- Outstanding items and limitations. Anything open, any conditions on use, any items deferred with justification and risk assessment.
- Conclusion. A clear statement: the system/process is qualified and approved for its intended use, subject to any stated conditions. This is a judgment, and it must be supported by the evidence above, not asserted.
- Attachments. Executed protocol(s), deviation records, traceability matrix.
The conclusion must match the evidence
A report that concludes “the system is validated” while the deviation summary shows an unresolved high-impact failure is internally contradictory and will be challenged immediately. The conclusion is the most consequential sentence in the document. It carries the QA signature and stands behind the release decision. Write it only when the body of the report genuinely supports it.
Roles and responsibilities
Clear ownership prevents the two failure modes of validation: nobody accountable, or everybody signing everything without reading. The exact titles vary, but the functions are consistent. See gxp-roles-responsibilities.
| Role | Protocol stage | Responsibility |
|---|---|---|
| Author / Validation lead | Authoring | Writes the protocol, ensures traceability to requirements and risk, defines acceptance criteria |
| Subject Matter Expert (SME) / System owner | Review/approve | Confirms the protocol tests the right things correctly, that criteria reflect real requirements |
| Executor / Tester | Execution | Runs the scripts exactly as written, records actual results and evidence contemporaneously, raises deviations |
| Reviewer | Post-execution | Independently checks each executed script: evidence present, results match the recorded verdict, no blanks, deviations logged |
| Quality Assurance | Approve / oversight | Approves protocol before execution and report after; approves deviation dispositions; owns the integrity of the process |
| Vendor / Supplier | Variable | May supply IQ/OQ templates, perform supplier testing relied upon under a risk-based approach, support execution |
Two principles inspectors test for. First, independent review: the person who executed a test should not be the sole person who reviews it; a second person confirms the evidence supports the verdict. Second, QA independence: QA approves but does not author the very protocols it is meant to provide independent oversight on, and QA’s approval of deviation dispositions is a real decision, not a rubber stamp.
On reusing vendor testing: under a risk-based CSV/CSA approach, you can rely on supplier documentation and testing where the supplier is assessed as capable. You do not blindly re-test what the vendor already tested well; you verify the supplier’s quality, assess risk, and focus your own testing on configuration, intended use, and high-risk functions. See software-supplier-assessment-csa and supplier-vendor-qualification.
Common mistakes and inspection-finding patterns
These are the patterns that show up repeatedly in inspection observations and warning letters around validation documentation. None require naming a company; they are generic and well known. For the broader pattern catalog, see fda-warning-letters-patterns.
- Protocol approved after execution. Approval signature dates that post-date execution dates. This destroys the premise that criteria were predefined. Always approve before you execute.
- Acceptance criteria written or changed after the result is known. The most serious integrity finding in this space. Criteria are frozen at approval.
- Vague acceptance criteria. “Functions correctly,” “works as expected,” “displays properly.” Unverifiable, so unfalsifiable, so worthless as evidence.
- Blank fields in executed protocols. Empty cells with no N/A, no result, no initials. Ambiguous and unattributable.
- Test steps that bundle multiple actions. Failure cannot be localized; the step proves nothing cleanly.
- Deviations not documented. A test that failed, was quietly re-run until it passed, with no record of the failure. This is data falsification territory, even when unintentional.
- Deviations documented but not investigated. A deviation log entry that says “retested, passed” with no root cause and no impact assessment.
- Missing or unreferenced objective evidence. Results recorded with no screenshot, printout, or data to back them, or evidence present but not linked to any step.
- No traceability. Tests that do not map to requirements, or requirements with no corresponding test, so coverage cannot be demonstrated.
- Copy-paste protocols with the wrong system name or wrong functions. A template reused without editing, leaving references to a different system or testing functions that do not exist.
- Report conclusion not supported by the body. “Validated” stated over unresolved deviations or unmet criteria.
- Corrections that obscure the original. Overwrites, correction fluid, no initials/date on a change. Violates good documentation practice.
- Same-person execute and review. No independent verification of the evidence.
- Protocol text edited live instead of amended. An approved step quietly rewritten mid-execution with no amendment record, so the executed protocol no longer matches what was approved.
- A test method rigor decision made informally. A high-risk function tested unscripted because it was convenient that day, with no documented risk basis and no QA concurrence on the classification.
Interview-ready: questions you will actually be asked
These are the questions interviewers and inspectors use to find out if you understand validation documentation or just memorized acronyms. Strong answers below.
What is the difference between IQ, OQ, and PQ? IQ verifies the system is installed and configured per its specifications (is it built right). OQ verifies the system functions as intended across its operating range under challenge conditions (does it work right). PQ verifies the system performs reliably and reproducibly in its actual production environment with real users and real or representative conditions (does it work right every time, in the real place). IQ is static verification; OQ exercises functions, often with boundary and negative tests; PQ confirms real-world reproducible performance.
Why must a protocol be approved before it is executed? So the acceptance criteria and test methods are demonstrably predefined. If approval post-dates execution, you cannot prove you did not reverse-engineer the criteria to fit a result you already had, and the data integrity of the entire exercise is compromised.
What makes a good acceptance criterion? Objective, measurable, predefined, traceable to a requirement, and binary in outcome. A reviewer who was not present at execution should be able to read the actual result against the criterion and reach the same pass/fail verdict the executor did. “The result equals the independently calculated value of 98.6% within plus or minus 0.1%” is good; “the result is correct” is not.
What is objective evidence and why does it matter? It is the proof that the test produced the recorded result: screenshots, printouts, query results, raw data files. It matters because validation is only as credible as its evidence. Under ALCOA+, evidence must be attributable, legible, contemporaneous, original, and accurate, and each piece must be uniquely identified and linked to the test step it supports so a reviewer can independently verify the verdict.
You are executing a test and the result fails the acceptance criterion. What do you do? I stop and record exactly what happened, the actual result against the expected. I do not fix and move on. I raise a protocol deviation, log it with a number, assess impact on this and other tests, investigate root cause proportionate to risk, determine corrective action, and only after the correction is in place and controlled do I re-execute, recording the re-execution as a separate dated event. QA approves the disposition before the protocol can close.
Is a protocol with zero deviations a good sign? Not necessarily. On a complex system, zero deviations can suggest trivial testing or, worse, undocumented problems. What matters is that every deviation is documented, investigated, dispositioned with a justified conclusion, and closed. A controlled record beats a suspiciously clean one.
What is the difference between a protocol deviation and a protocol amendment? A deviation records what happened despite the approved protocol; the document itself does not change. An amendment changes the protocol text itself, under the same approval chain as the original, so that steps not yet executed run against corrected text. I use a deviation when the protocol was right and reality did not match it, and I add an amendment, approved before execution continues, when the protocol text itself was wrong and would otherwise repeat the same error on every remaining step. I never quietly edit an approved protocol without an amendment record, and I never justify an amendment by citing the failing result it fixes rather than the source specification it corrects to.
How do you handle a correction on a paper protocol? Single line through the error so the original stays legible, write the correct entry, add my initials and the date, and a reason if it is not obvious. Never use correction fluid, never overwrite, never obscure the original.
How do you decide whether a function needs a fully scripted test or can be tested unscripted? I start from impact: does a wrong output reach the product, the record, or the patient with nothing standing in between (direct impact), or does a real, documented control catch it first (indirect impact)? Direct-impact functions, especially anything touching audit trail, electronic signature, or access control, get full scripted testing with predefined criteria. Genuinely indirect, lower-consequence functions can be tested unscripted or exploratory, with the session charter, log, and findings still documented and dispositioned like any other test evidence. The classification is written down and approved, not made informally by whoever happens to be writing that day’s script.
Can you rely on the vendor’s testing? Yes, under a risk-based approach, if I have assessed the supplier as capable through a supplier assessment, and I focus my own testing on configuration, intended use, integrations, and high-risk functions rather than blindly re-testing what the vendor already validated well. This is the core of Computer Software Assurance and GAMP 5: scale rigor to risk and rely on supplier evidence appropriately.
What goes in the validation report that is not in the protocol? The actual outcomes: a summary of what was executed, the deviation summary with dispositions, the acceptance-criteria assessment, traceability confirmation, outstanding items with justification, and the conclusion on fitness for intended use. The report is where the qualified/not-qualified judgment is made and signed, and that conclusion has to be supported by the evidence in the body.
Practical tips
- Write the acceptance criteria first, then write the steps that prove them. It keeps tests from wandering.
- One action per step, one verifiable proof per criterion. If you cannot write a clean pass/fail for a step, the step is wrong.
- Number your evidence as you design the protocol, not after execution. SS-012-3 should already exist as a placeholder in the script before anyone takes the screenshot.
- Use named test accounts and named test data, never “a user” and “some data.” Reproducibility depends on specificity.
- Include negative tests deliberately. Proving the system refuses to do the wrong thing is often more valuable than proving it does the right thing.
- Keep a signature/initials log at the front of every executed protocol so every set of initials is attributable.
- Pre-print N/A handling guidance for executors so no field is ever left genuinely blank.
- Review executed protocols against the script line by line: every actual result recorded, every evidence reference present and matching, every deviation logged. The review is not a formality.
- When a deviation is a real system failure, do not soften the language in the report. State it, state the fix, state the controlled re-test, and let the evidence carry the conclusion.
- Before routing a protocol for approval, have someone other than the author read it against the craft standard on this page, not just spell-check it. A short pre-approval content review catches vague criteria, bundled steps, and missing traceability before they become a finding. A ready-to-use version of this check is the validation protocol and test script content peer review checklist.
For the surrounding deliverables and the broader process, see validation-deliverables-guide, project-managing-validation, equipment-qualification-lifecycle, validation-summary-report-and-release, and technical-writing-for-gxp for the underlying documentation-writing discipline.