AI GxP validation for regulated life sciences
Test Automation

GxP Test Automation and 21 CFR Part 11: The Audit Trail Requirements That Most Teams Miss

The Part 11 requirements that apply specifically to automated test execution (audit trail, e-signature, result attribution, and data integrity) with a defensible record structure.

Cybroscape Technologies5 min read

Key takeaway

The Part 11 requirements that apply specifically to automated test execution (audit trail, e-signature, result attribution, and data integrity) with a defensible record structure.

21 CFR Part 11 applies to automated test execution in GxP environments in the same way it applies to any other electronic record that supports a regulatory submission or a GxP activity. Many validation teams focus their Part 11 assessment on the application under test and treat the test automation tooling as infrastructure — outside the scope of Part 11. This is incorrect, and it is a recurring source of 483 findings. The test execution records are electronic records; the sign-offs on those records are electronic signatures; and both must meet the Part 11 requirements.

Which Part 11 requirements apply to automated test records

  • §11.10(a) — Validation. The automated test system itself must be validated. This is the most commonly missed requirement: teams validate the application under test but not the automation tool generating the evidence. See 21 CFR Part 11.
  • §11.10(b) — Accurate and complete copies. The test execution record must be producible in a human-readable, printable form that an inspector can review without access to the automation tool. An execution record that exists only in a proprietary database format fails this requirement.
  • §11.10(c) — Record retrieval. Records must be retrievable throughout the retention period. If the automation tool is decommissioned before the retention period expires, the records must be migrated to an accessible format.
  • §11.10(d) — Access control. Only authorised individuals may initiate, approve, or modify a formal test execution. Shared automation accounts — where multiple individuals can use the same credentials — make attribution impossible and are a Part 11 failure.
  • §11.10(e) — Audit trail. A secure, computer-generated, time-stamped audit trail must record all operator actions that create, modify, or delete electronic records. For automated tests, this means: who initiated the run, any manual overrides or re-runs, and any changes to the test script version used.

Electronic signatures on test execution records

When a QA reviewer signs off on an automated OQ execution summary, that sign-off is an electronic signature under Part 11. It must include: the signer's full name, the date and time of signing (from a controlled time source), and the meaning of the signature ("I have reviewed this execution record and confirm it meets the acceptance criteria, with all deviations dispositioned"). The signer must re-authenticate at the time of signing — entering their password again, not just being logged in. And the signed record must be frozen: no path in the system can allow modification of the execution record after it has been signed. Cybroscape GxP Copilot enforces all of these requirements in its native signature workflow.

Audit trail for automated execution: what must be captured

The audit trail for automated test execution must capture: every initiation of a test run (who, when, which scripts, which environment); every pass and fail result (including timestamp and the exact expected vs actual values); any manual re-execution of a failed step (who authorised the re-run, what changed, what the new result was); any manual override of an automated result (who overrode, what the original result was, what the override was, and the justification); and every change to the test script version used in a formal execution. An audit trail that captures only the final execution summary — not the individual step-level events — does not meet the Part 11 standard for complete audit trail records.

The shared-account problem in CI/CD-integrated testing

Continuous integration pipelines commonly use a single service account to execute automated tests — a "ci-runner" or "automation" account that is shared across all automated jobs. In a GxP environment, this is a Part 11 §11.10(d) failure: the service account's actions cannot be attributed to a responsible individual when a discrepancy appears. The Part 11-compliant approach: each formal execution must be initiated by or under the authority of a named individual, and the automation account used must be non-shared and auditable. In practice, this means: CI/CD pipelines may run continuously in development environments without this constraint, but formal OQ/PQ executions must be initiated by a named, authenticated individual who accepts responsibility for the execution record.

Practical compliance steps for existing automation programmes

  • Inventory every automated test execution that generates a formal validation record and check that the initiating identity is attributable to a named individual — not a shared account.
  • Verify that every automated test execution record can be exported in a human-readable format without access to the automation tool.
  • Check that sign-offs on execution summaries include re-authentication, meaning, and a frozen record — not just a click to "mark as approved."
  • Review the audit trail scope: does it capture individual step results, or only the summary? Individual steps are required.
  • Confirm that the automation tool itself has been validated under GAMP 5 and that the validation is current.

Where to go next

Explore Cybroscape GxP Copilot for AI-native validation, Cybroscape TraceDraft for source-traceable clinical documentation, or book a demo to see either on your own data.

Audit trail
  1. 14:32Signed: Approved for releaseQA Manager
  2. 11:05Changed risk of URS-015Validation lead · Supplier test evidence acceptedMedium → Low
  3. 10:48Edited expected result, OQ-07Validation lead · Lockout after 5 attempts, per URSv3 → v4
  4. 09:12Recorded result, OQ-07Tester · Evidence attachedPassed
Append-only. Entries cannot be edited or deleted.
Who, what, when and whyOn every change
An audit trail an inspector can read: who did what, when, the old and new value and the reason. Entries are append-only and each one is linked to the one before, so a changed or missing entry shows.
See it on your own systemBring a URS or a system. We run GxP Copilot against it live on the call.

Sources

Primary documents referred to on this page, from their official publishers.

gxp test automation part 11automated testing 21 cfr part 11gxp test script audit trailpart 11 automated testing compliance

Keep reading

All articles
Test AutomationAutomating IQ/OQ/PQ Protocols: What Works, What Fails, and What Inspectors ExpectWhere test automation adds genuine value in IQ/OQ/PQ execution, where it introduces new compliance risk, and how to build an audit-ready automated protocol record. · 5 min readTest Automation7 Best GxP Validation Test Automation Tools (2026): CSA, UI, API & Equipment AdaptersA technical comparison of GxP test automation tools, including Cybroscape GxP Copilot (12 closed-vocabulary adapters across Web, API, SQL, OPC UA & data loggers), Tricentis Tosca, Vera, Playwright and Selenium, scored on 21 CFR Part 11 evidence, maintenance cost, and FDA CSA alignment. · 6 min readTest AutomationYour Test Automation Tool Is Also a GxP SystemIf a tool produces the evidence that another system is validated, the tool is in scope. The recursive problem nobody wants, and the proportionate way through it. · 4 min readTest AutomationRe-Running a Protocol After a Change: How to Scope Regression HonestlyAutomation makes re-running everything cheap, which is exactly why teams stop thinking about what actually needed re-running. Scoping regression on risk rather than on convenience. · 4 min readTest AutomationRisk-Based Test Automation in GxP: How to Build a Defensible Automation StrategyHow to apply per-requirement risk scores to drive test automation decisions: what gets scripted automation, what gets exploratory execution, and what borrows vendor evidence. · 4 min readTest AutomationWhen Not to Automate a Validation ProtocolThe honest counterweight to every automation pitch. Six situations where a scripted manual execution is the better answer, and how to say so in a way that survives review. · 4 min readTest AutomationAI Drafts, a Human Approves, a Machine Runs: Three Roles in Automated ValidationMost debate about AI in validation collapses because nobody separates who writes the test from who approves it from what executes it. Keep those three apart and the regulatory question gets much simpler. · 4 min readTest AutomationAutomated Execution in an Inspection: The Questions You Will Be AskedInspectors are not opposed to automation. They are opposed to evidence they cannot follow. The questions that come up, and what a good answer looks like with the record open in front of you. · 4 min read

Bring a system. We'll show you the package.

Book a demo, or ask a validation lead a quick question on WhatsApp.

  • We reply within one business day
  • We run your URS live on the call
  • You get a clear plan for your system
Chat on WhatsApp

Book a demo

Four fields. The right specialist replies within one business day.

Your details stay private. We never share them.