The Simplest Way to Make Cohesity and Testcomplete Work Like They Should
Pairing cohesity and testcomplete lets teams test apps against fresh data snapshots. Cohesity clones backup data fast, and TestComplete runs UI tests on that clone. This workflow stops teams from testing on stale or shared databases. Engineers spin up a clean data clone before every single test run. When the test finishes, the system deletes the temporary clone right away. Teams catch bugs early without putting production storage at risk. How cohesity and testcomplete share data and roles Th
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 cohesity and testcomplete lets teams test apps against fresh data snapshots. Cohesity clones backup data fast, and TestComplete runs UI tests on that clone.
This workflow stops teams from testing on stale or shared databases. Engineers spin up a clean data clone before every single test run. When the test finishes, the system deletes the temporary clone right away. Teams catch bugs early without putting production storage at risk.
How cohesity and testcomplete share data and roles
The workflow starts inside your build pipeline before any UI tests run. The pipeline calls Cohesity to mount a read and write database clone. Cohesity creates this clone from a recent snapshot in just seconds. It does not copy the whole database to a new disk. Instead, it exposes a virtual copy to your test app server.
Once the app server points to the new clone, TestComplete takes over. TestComplete logs in to the test app and runs its test scripts. It checks forms, clicks buttons, and writes new records to the clone. Each test run gets its own isolated data state every time.
To make this work, both tools need clear identity and role rules. The build runner uses an API key to request clones from Cohesity. TestComplete uses test user accounts to log in to the target app. It also needs read and write permissions on the cloned database to check results.
Common failure modes and how to scope roles
Many teams take shortcuts when they wire these two systems together. The biggest mistake is using a full admin key for Cohesity calls. If that key leaks from a test runner, an attacker controls all backups. They could delete snapshots or read private production files from storage.
Another common issue is leaving raw user data inside the mounted clones. Production backups hold real emails, phone numbers, card numbers, and national IDs. When TestComplete runs queries against the clone, those fields show up in logs. You should set up masking rules to rewrite matched fields in results.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged database queries from test runners also create blind spots for security teams. Teams often share one database login across all TestComplete agents and engineers. When a bad query drops a table, nobody knows which script did it.
Fix this by scoping roles tightly on both sides of the workflow. In Cohesity, create a custom role that can only mount test clones. Never let the test runner delete snapshots or change backup rules. On the database side, give TestComplete a role limited to test schemas. Restrict network paths so only test runners can reach the mounted clone.
Setting up a clean test lifecycle
A good test lifecycle keeps clones short-lived and easy to trace. Start by tagging which backup snapshots are safe for testing use. Have your pipeline request a clone only when a test job starts. Pass the new database host details to your test app right away.
Next, let TestComplete run its UI checks and database state checks. Record every query and action in a central log for audit needs. As soon as the test passes or fails, tear down the clone. This frees up storage capacity and reduces your security surface area.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Why pair Cohesity clones with TestComplete runs?
Cohesity provides fast, zero-cost data clones from existing backups. TestComplete can then run destructive UI tests without breaking shared test databases.
How do we protect sensitive fields inside backup clones?
Apply data masking during the clone process or when querying the database. Masking rewrites emails, phone numbers, and card numbers in query results.
What permissions should the TestComplete runner have on Cohesity?
The runner should only have permissions to create and tear down clones. It should never have rights to alter backup jobs or delete snapshots.
Related guides
In this post