The Simplest Way to Make Elastic Observability and Testcomplete Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing elastic observability and testcomplete links UI test runs with backend app logs. This setup helps teams spot why a test failed right away. When a UI check breaks, the test report shows only the screen state. Sending test logs to your central search tool links the UI step to backend errors. Engineers can then see the exact database call or service fault that broke the run. How data flows between elastic observability and testcomplete Test runners execute scripts against a target deskt

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing elastic observability and testcomplete links UI test runs with backend app logs. This setup helps teams spot why a test failed right away.

When a UI check breaks, the test report shows only the screen state. Sending test logs to your central search tool links the UI step to backend errors. Engineers can then see the exact database call or service fault that broke the run.

How data flows between elastic observability and testcomplete

Test runners execute scripts against a target desktop, web, or mobile app. During each run, the test tool records step results, timings, and errors. Teams export these results or ship log files to the ingest pipeline.

To send data, the runner or log shipper needs an ingest key. This key lets the shipper write documents to a set index. The central search cluster then stores the test data next to app metrics and traces.

Shared correlation tags tie these two data streams together in one view. The test runner adds a run ID to its requests or log lines. Backend services read that tag and attach it to their own log events. When a check fails, engineers filter by that run ID to see the full story.

Common failure modes and how to scope roles

Many teams use one shared admin key across all test agents. If a build machine leaks that key, an attacker can read or delete production logs. Shared keys also make it hard to see which test node sent bad data.

Broad index rights create another big risk for engineering teams. A test agent only needs to write results to a single test index. Giving the agent read rights to production indexes exposes private user records.

AI Observability + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, create a narrow role just for test log ingestion. Grant this role write-only rights on the specific test results index. Give each CI runner group its own key so you can rotate keys fast.

Keeping sensitive data out of test logs

UI tests often type test emails, phone numbers, or card numbers into forms. When a step fails, the runner may write those values into the error log. Shipping raw logs sends that sensitive data straight into your central index.

Teams should scrub sensitive fields before indexing or rewrite matched fields in results. Keep test runs on isolated staging apps with fake accounts whenever you can. Also restrict network paths so test agents only talk to ingest endpoints over TLS.

Review index retention rules so old test logs age out on a set schedule. Short retention keeps storage costs down and limits how long sensitive test inputs stay stored. Check role bindings often to make sure test keys never gain extra read rights.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Pass a unique test run ID in the request headers or user session. Log that same ID in both the test output and the backend service logs. You can then search that single ID to view both sides at once.

What permissions should a test runner key have?

Give the test runner key write-only access to the dedicated test log index. Never grant cluster admin rights or read access to production log indexes. Rotate the key on a regular schedule and store it in your CI secret store.

How can we prevent PII leaks in exported test logs?

Use fake data for all UI test runs instead of real customer records. Set up log scrubbing rules to mask emails, phone numbers, and card numbers before storage. Limit who can read the test index using strict role rules.

The query runs. The emails stay hidden.