The Simplest Way to Make 1Password and Testcomplete Work Like They Should
Teams use 1password and testcomplete together to run UI tests with safe login data. 1Password holds the secrets in a vault, and TestComplete reads them during a test run. This setup keeps plain text passwords out of your test scripts and code repos. Your QA team can update a login key in one vault without editing ten test files. Every build agent pulls the fresh secret right when the test job starts. How 1password and testcomplete share login data The link between 1password and testcomplete
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.
Teams use 1password and testcomplete together to run UI tests with safe login data. 1Password holds the secrets in a vault, and TestComplete reads them during a test run.
This setup keeps plain text passwords out of your test scripts and code repos. Your QA team can update a login key in one vault without editing ten test files. Every build agent pulls the fresh secret right when the test job starts.
How 1password and testcomplete share login data
The link between 1password and testcomplete relies on a service token and a local runner. First, an admin sets up a dedicated vault in 1Password just for test logins. That vault holds only the fake user accounts and API keys for staging apps. Production keys stay in a separate vault with stricter rules.
Next, the build server starts a test job and logs in to 1Password with a token. A pre-test step fetches the needed username and password into local memory. TestComplete then reads those values as runtime variables and types them into the target app. When the test ends, the build machine clears its memory and drops the secret.
Permissions flow in one direction in this design. The test runner gets read-only rights on the staging vault. It cannot write new items, delete old ones, or read other team vaults. If a test fails, you know the script did not change the stored password.
Common failure modes and how to scope roles
Many teams make the mistake of using one broad service account for all test runners. If a contractor or rogue script grabs that token, every vault linked to it is at risk. Another common flaw is leaving secret values visible inside TestComplete test logs. Standard UI test tools capture screenshots and text inputs on every step by default. If a login step fails, the raw password can end up on a shared dashboard.
Application-to-Application Password Management + 1Password Secrets Automation: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix these gaps by scoping both vault roles and test log settings. Give each project or build pipeline its own 1Password service token and narrow vault. A mobile test job should not have the rights to read billing test keys. Rotate these service tokens on a fixed schedule so old keys expire fast.
Inside TestComplete, mark all secret variables as hidden or masked variables before the run starts. Turn off full screenshot capture during the login step of your test suite. If a test script runs SQL checks against a staging database, scope that database user too. Give the test database role read rights on staging tables only. Also restrict network paths so test runners can only reach staging servers, never live ones. This limits the blast radius if a test machine gets breached.
Finally, keep an audit trail of every vault read and database check. Match the 1Password usage log with the TestComplete build number in your central log tool. When a weird login spike happens, you can trace it to a single test run.
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
Should TestComplete store vault tokens in project files?
No, never save a 1Password token inside a TestComplete project file or git repo. Pass the token through your CI tool secret store right when the build starts.
How do we stop TestComplete from logging passwords in test reports?
Store the fetched password in a secret variable type inside your TestComplete project. This setting tells the test engine to replace the raw text with stars in all logs.
Can multiple test agents share one 1Password vault at the same time?
Yes, several test agents can read from the same staging vault during parallel runs. Watch your rate limits and give each agent group a distinct read-only service token.
Related guides
In this post