The Simplest Way to Make Phabricator and Testcomplete Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair Phabricator and TestComplete to link code reviews directly to automated UI tests. When a developer posts a change, the review tool triggers the test runner and reads the pass or fail status. This workflow catches broken screens before code merges into the main branch. Reviewers see test results right next to the code diff. They do not need to open a second app or run tests by hand. How Phabricator and TestComplete share test data To make Phabricator and TestComplete talk to each o

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 pair Phabricator and TestComplete to link code reviews directly to automated UI tests. When a developer posts a change, the review tool triggers the test runner and reads the pass or fail status.

This workflow catches broken screens before code merges into the main branch. Reviewers see test results right next to the code diff. They do not need to open a second app or run tests by hand.

How Phabricator and TestComplete share test data

To make Phabricator and TestComplete talk to each other, teams set up a middle build server. Phabricator sends a web event when someone submits a new code change for review.

The build server catches this event and starts a test run on a Windows machine. TestComplete opens the target app, clicks through the user screens, and checks the outputs.

When the test finishes, the runner writes a summary report. The build server reads this report and sends the pass or fail status back to the code review page.

This loop uses API keys to log in to both tools. Phabricator uses a bot account key to accept test updates. The test host uses local Windows credentials to manage the screen and run the desktop app.

Common failure modes and permission risks

Many teams use one shared admin key for all test jobs. If that key leaks, anyone can approve code reviews or read private source code.

Desktop UI tests create another big risk for engineering teams. The test runner needs an active Windows user session with an unlocked screen. Teams often leave a shared user account logged in all day and night.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Developers also log in to these test hosts to fix broken test scripts. When everyone shares one login, the audit log shows the same user name for every change. You cannot tell who changed a test setting or read local files.

Test scripts often type test data into forms during a run. If a test uses real emails, phone numbers, or card numbers, those values end up in screenshots and failure logs. Data masking rewrites matched fields in results so raw secrets stay out of shared reports.

Scoping roles and network paths

Start by creating a dedicated bot role inside your code review tool. Give this role permission to post test status updates and nothing else. Do not let the bot account merge code or change project rules.

Next, lock down the network path between the review server and the test machines. Only the build runner should reach the test host port. Block direct developer access to the shared Windows test account.

When engineers need to check a failed test run, map their actions to their own user identity. Rotate the bot keys on a fixed schedule so old secrets expire fast. Keep the test host on an isolated network segment away from production data stores.

Finally, clean up the test data used in your UI checks. Use fake accounts and masked values for every form test. This keeps sensitive customer details out of the code review comments and build logs.

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

Can Phabricator start a TestComplete run without a build server?

Phabricator can send web requests when a code review changes. Still, most teams use a build runner to queue jobs, start the Windows host, and send results back.

Why do UI tests fail when the test machine locks its screen?

TestComplete needs an active desktop session to draw windows and click buttons. If the Windows session locks or disconnects, the operating system stops drawing the screen and the test fails.

How should teams store API keys for code review bots?

Never hardcode API keys inside test scripts or source control repos. Store the keys in your build runner secret store and pass them into the job at run time.

The query runs. The emails stay hidden.