top of page

Redaction and Retention for Screenshots, Traces, and Failures

Writer: Ashwin Kondapalli
Ashwin Kondapalli
Oct 31
7 min read

Author: Ashwin Kondapalli, Founder & CTO, LoopIQ Updated: October 31, 2026

A tester shares a failing checkout run in the release channel so the team can see what broke. The screenshot is helpful. So is the trace. Then someone opens the trace and finds the full request headers, including a bearer token, and the failure message includes a real-looking customer email from the test dataset. The evidence did its job. It also kept more than anyone meant to keep.

Journey evidence such as screenshots, traces, and failure messages should be redacted before it's stored, kept only as long as it's useful for release review and investigation, and downloadable only by authenticated people in the right organization. A practical policy redacts credentials, session values, and personal data automatically, keeps large binary files for a short window and summarized metadata for longer, and treats the evidence as governed release records instead of shareable debug output. The rest of this guide covers what to redact, how to set retention by evidence type, who should have access, and a worked example.

Why is test evidence a data-handling problem?

Step-level evidence is valuable because it's literal. A screenshot shows exactly what the page displayed. A trace records network calls, headers, and timing. A failure message often includes the response body that caused the failure.

That literalness creates risk:

  • Credentials. Authorization headers, bearer tokens, API keys, and cookies appear in traces and error output.

  • Session values. A captured session ID can sometimes be replayed if it's still valid.

  • Personal data. Test datasets that copy production shapes often include names, emails, or addresses, and screenshots capture whatever is on the page.

  • Volume. Screenshots and traces are large. Kept indefinitely, they become a storage cost and a larger target.

  • Sprawl. Evidence copied into chat, tickets, or email loses whatever access controls it had.

The goal isn't to capture less. It's to capture what reviewers need and hold it responsibly.

What should be redacted from test evidence?

Redact before storage, not on display. If the raw value is stored, it can be exported, backed up, or downloaded later.

At a minimum, redact:

  • Authorization headers and bearer tokens

  • JWTs

  • Passwords and secrets

  • API and access keys

  • Cookies and session values

  • Email addresses

  • Any value in a field whose name suggests a credential, such as token, secret, password, or apiKey

Then think about what pattern-based redaction will miss:

  • Values on screen. A screenshot of a profile page can show personal data that no header rule will catch. Use synthetic test data so there's nothing real to capture.

  • Custom secret formats. Internal keys that don't match common patterns may need naming conventions that the redaction can recognize.

  • Free-text fields. Notes, addresses, and comments in a response body may hold personal data.

Redaction is a safety net. Synthetic, non-production test data is the first line. Our post on environment, datasets, and secrets hygiene covers that side.

How long should screenshots, traces, and failure records be kept?

Different evidence types have different uses, so they deserve different retention.

Binary files (screenshots, traces):

  • Used for: debugging a failure and showing reviewers what happened.

  • Useful for: days to weeks, until the failure is resolved and the release decision is made.

  • Risk if kept too long: storage cost and a larger body of captured content.

  • Typical approach: a short default window, such as 30 days, with a longer window only where policy requires it.

Redacted metadata (step status, page, URL, instruction, expected result, duration, failure type, redacted message):

  • Used for: traceability, trend analysis, and showing what was tested for a release.

  • Useful for: months or longer, often across audit periods.

  • Risk if kept too long: low once redacted, but still governed.

  • Typical approach: a longer default, such as a year, aligned with your audit and release-record needs.

Release decision records (approvals, exceptions, comments):

  • These usually follow your release governance and records policy, which may be longer than either of the above. Keep them separate from raw test files so short evidence windows don't remove decision history.

Set retention with your security, privacy, and compliance owners. If an audit period or regulatory requirement needs longer retention for some evidence, configure that deliberately rather than keeping everything forever.

Who should be able to see and download evidence?

Access rules matter as much as redaction.

  • Require authentication for downloads. No public or unauthenticated links to traces or screenshots.

  • Scope access to the organization and team. Evidence from one team's runs shouldn't be visible to unrelated teams by default.

  • Prefer links over copies. Share a link to the run in the tool, not a downloaded trace in chat. Links keep access controls; copies don't.

  • Know where exports go. If evidence goes into a dossier export for an auditor, record what was exported, when, and to whom.

What should you check before evidence leaves the tool?

Sometimes evidence has to go outside the test tool: to an auditor, a vendor, a customer security review, or an incident report. That's where most of the risk sits, because the copy no longer follows your retention or access rules.

Before you export or share, check:

  1. Is a link enough? If the recipient has access, send a link instead of a file.

  2. Is the redaction complete for this audience? Automatic redaction targets credentials and common personal data. An external reader may also need internal hostnames, account IDs, or test account names removed.

  3. Is the scope minimal? Share the runs and steps that answer the question, not the full run history for a release.

  4. Is it the right version? Confirm the evidence belongs to the candidate and release being discussed.

  5. Is the export recorded? Note what was shared, with whom, when, and why. That record is often more useful in an audit than the files themselves.

  6. Is there an end date? If the recipient only needs the evidence for a review, agree when their copy should be deleted.

If you can't answer these quickly, the evidence probably isn't ready to leave the tool.

Illustrative example: one failing checkout run

Illustrative demo data.

Run: Checkout journey, release Storefront 12.4.0-rc1, staging environment Result: failed at step 6 of 9, "Submit payment"

Captured evidence, before redaction:

  • Screenshot of the payment page with a validation error.

  • Trace with network calls, including an Authorization: Bearer ... header and a session_id cookie.

  • Failure message containing the API response body, which includes customer_email: "jordan@example.test" and api_key: "sk_test_...".

Stored evidence, after redaction:

  • Screenshot kept; the page showed synthetic test data, so no further action.

  • Trace kept with the bearer token and session cookie redacted.

  • Failure message stored as: failure type "assertion", message with customer_email: [REDACTED] and api_key: [REDACTED].

Retention applied (team policy):

  • Screenshot and trace: 30 days.

  • Step metadata and redacted message: 365 days.

  • Release decision for 12.4.0-rc1: kept under the release records policy.

Follow-up: The validation bug was fixed in rc2, and the rerun of the checkout journey passed. Both runs are linked to the release.

Access: The QA lead shared a link to the run in the release channel instead of attaching the trace. Reviewers opened it with their authenticated accounts.

Illustrative demo data. Not a customer result.

Three months later, an auditor asks what testing supported the release. The screenshot and trace have expired, but the step results, the redacted failure message, the passing rerun after the fix, and the release decision are all still available.

Common mistakes to avoid

  • Redacting only in the UI. If the raw value is stored, it can still leak through exports or downloads.

  • Using production data in test runs. Redaction can't catch everything a screenshot shows.

  • Keeping all evidence forever. It increases cost and exposure without adding much review value.

  • Letting evidence and decisions share one retention clock. Expiring traces shouldn't delete the record of why a release shipped.

  • Pasting traces into chat or tickets. The copy outlives every access rule you set.

How this works in LoopIQ

Prerequisites: Approved automation has run through governed execution. An administrator has confirmed evidence storage and retention configuration for your organization.

Sequence:

  1. Open Runs & evidence and expand a completed run to review Journey evidence. See Use Test Automation.

  2. Each journey step can include step number and status, journey and page name, page URL, instruction and expected result, execution duration, locator references, failure type and redacted failure message, a screenshot, and a downloadable trace.

  3. Before storing evidence, LoopIQ redacts common sensitive values, including authorization headers and bearer tokens, JWTs, passwords and secrets, API and access keys, cookies and session values, email addresses, and values in credential-related field names.

  4. By default, binary evidence files such as screenshots and traces are kept for 30 days, and redacted evidence metadata for 365 days. Organization policy or platform configuration can change these periods. Expired files and metadata are removed by the evidence cleanup process.

  5. Evidence downloads require an authenticated LoopIQ session and are scoped to the current organization.

Outputs: Step-level, redacted evidence for each run that reviewers can use in release review and in the Release Compliance Dossier.

Boundaries: Automatic redaction covers common sensitive patterns; it isn't a substitute for synthetic test data or for reviewing what a screenshot can capture. Retention settings should be set with your security, privacy, and compliance owners. Passing tests and stored evidence inform release readiness; they don't authorize a release or guarantee an audit outcome. Check the current product notes for what's enabled in your tenant.

Pricing: LoopIQ is $4.99 per user per month.

Quick template

For your test evidence policy, record:

  • Redacted before storage: credentials, tokens, cookies, session values, emails, credential-named fields, plus any custom formats

  • Test data rule: synthetic or masked data only in non-production runs

  • Binary retention: screenshots and traces, number of days

  • Metadata retention: step results and redacted messages, number of days

  • Decision records: retention under the release records policy

  • Access: authenticated, organization and team scoped

  • Sharing rule: links to runs, not copies of files

  • Exports: what, when, to whom, recorded

  • Owner: who approves changes to this policy

FAQ

What should be redacted from test screenshots and traces? Credentials, bearer tokens, JWTs, API keys, cookies, session values, email addresses, and anything in a credential-named field. Use synthetic data so screenshots don't capture real personal data.

How long should test screenshots and traces be kept? Usually a short window, such as 30 days, long enough to debug and decide on the release. Keep redacted step metadata longer for traceability.

Will expiring screenshots break audit evidence? Not if step results, redacted failure messages, and release decisions are kept on their own, longer retention. Plan which records an audit will need.

Is automatic redaction enough? No. It catches common patterns. Synthetic test data, careful field naming, and access controls cover what pattern matching misses.

Who should be able to download test evidence? Authenticated users in the right organization and team. Share links to runs rather than copies of files.

See a requirement become reviewed tests and execution evidence

If your test evidence is useful but you're not sure what it's keeping or for how long, I'd be glad to show you how LoopIQ captures, redacts, and retains journey evidence for release review. Book time with me here.

General information for engineering, quality, release, and compliance leaders. Not legal, audit, or regulatory advice.

Recent Posts

See All
Cross-Page Journeys That Survive UI Refactors

When a refactor breaks an end-to-end flow, journeys built on captured pages make triage faster: recapture the changed page, compare repository versions, and regenerate with step order reviewed.

 
 
bottom of page