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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use gitpod and testcomplete together to code in the cloud and run UI tests. Gitpod builds the app workspace while TestComplete runs automated checks on a remote host. This pair lets developers test new code changes before merging them to the main branch. Teams get fast feedback on UI bugs without setting up local test machines. How gitpod and testcomplete share data and roles Gitpod runs in a Linux container in the cloud. TestComplete needs a Windows host with an active screen to run UI

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 gitpod and testcomplete together to code in the cloud and run UI tests. Gitpod builds the app workspace while TestComplete runs automated checks on a remote host. This pair lets developers test new code changes before merging them to the main branch. Teams get fast feedback on UI bugs without setting up local test machines.

How gitpod and testcomplete share data and roles

Gitpod runs in a Linux container in the cloud. TestComplete needs a Windows host with an active screen to run UI tests. Because of this difference, the two tools talk over the network. A developer pushes code or triggers a test script from the Gitpod workspace. That script sends a web request to the CI runner or the Windows test host. The Windows host then pulls the fresh build and starts the TestComplete test run.

To make this work, the Gitpod workspace needs a valid key to log in. Teams store these keys as secret variables inside the user settings in Gitpod. When the workspace boots up, it reads the key and sends it to the runner. The test host checks the key and starts the test job. When the test ends, the host sends the pass or fail logs back to Gitpod. The developer reads the test report right inside the cloud editor.

Data also flows between the test runner and the staging database during a run. TestComplete fills in forms and checks that the app writes the right records. You must protect any real user data used in these staging databases. Masking rules can rewrite emails, phone numbers, card numbers, and national IDs in query results. This keeps test logs clean and safe when developers read them in Gitpod.

Common errors and how to scope network paths

A common failure mode is using one shared admin account for all test runs. When five developers trigger tests from Gitpod at once, the runs collide on the host. Even worse, a shared token gives every workspace full rights to the test server. If a workspace leaks that token, an attacker can reach your internal Windows hosts. Another big risk is running unlogged queries from the test scripts against staging data. Without clear logs, the team cannot tell which developer ran a broken test script.

You can fix these issues by scoping roles and network paths between the two systems. Give each developer or workspace a unique identity with narrow rights. That role should only allow starting a test job and reading the final test log. It should never allow changing host settings or reading other teams' test files. Lock down the network path so the Windows host only accepts requests from known runners. Set short time limits on all keys stored in Gitpod so old tokens expire fast.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Keeping remote UI test runs fast and stable

UI tests fail when the Windows host drops its remote screen session. You must keep an active desktop session open on the test host at all times. If a developer disconnects from a remote session the wrong way, the screen locks up. Then the next test triggered from Gitpod will fail because it cannot click any buttons.

To prevent this, restrict who can log in directly to the Windows test machines. Developers should trigger runs through the API from Gitpod instead of opening remote desktop windows. Keep the test suite small for workspace runs so developers get answers in minutes. Save the full two-hour test suite for the final nightly build on the main branch. Clean up temporary files and reset the test database state after every single run.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Can TestComplete run directly inside a standard Gitpod container?

No, because Gitpod uses Linux containers and TestComplete requires a Windows operating system. You must trigger TestComplete on a separate Windows host over the network from Gitpod.

How should we store test runner API keys in Gitpod?

Store your API keys as scoped secret variables in your Gitpod user or team settings. Never hardcode keys in your repo files or print them out in build logs.

Why do UI tests fail when triggered from a cloud workspace?

Most failures happen when the Windows test host locks its screen or loses its display. Make sure the Windows machine keeps an unlocked local session open for the test runner.

The query runs. The emails stay hidden.