The Simplest Way to Make Azure VMs and Testcomplete Work Like They Should
Teams use azure vms and testcomplete together to run UI tests in the cloud. The virtual machines host the test runner, and TestComplete drives the desktop or web app. This setup lets engineers test software across many Windows versions at once. You do not need to maintain racks of physical computers in your office. Instead, your build pipeline starts a virtual machine, runs the test suite, and stops the machine. How azure vms and testcomplete handle logins and data flow To start a test run,
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 azure vms and testcomplete together to run UI tests in the cloud. The virtual machines host the test runner, and TestComplete drives the desktop or web app.
This setup lets engineers test software across many Windows versions at once. You do not need to maintain racks of physical computers in your office. Instead, your build pipeline starts a virtual machine, runs the test suite, and stops the machine.
How azure vms and testcomplete handle logins and data flow
To start a test run, your pipeline sends a command to the cloud machine. A build agent on that machine receives the job and opens the test tool. The test tool needs an active Windows user session with an unlocked screen. It uses this desktop session to draw windows, move the mouse, and type keys.
Login keys and role rules control each step of this workflow. First, the pipeline uses a cloud role to start and stop the virtual machine. Second, the build agent logs into Windows with a local user account. Third, the test runner checks out a license key over the network. During the test, the runner reads test data from storage and writes logs back.
When the test finishes, the agent uploads screenshots and pass or fail logs. The pipeline reads those results and marks the build as good or broken. Then the cloud rule turns off the machine to save money on compute hours.
Common failure modes and how to scope roles and network paths
The most common failure happens when a human closes a remote desktop window. Closing that window locks the Windows screen and turns off the display driver. Without an active screen, the test tool cannot see buttons or click menus. Every UI test fails right away with black screenshots in the error log. To fix this, configure the agent to keep an active console session open.
Shared admin accounts cause another major risk in cloud test setups. Many teams use one strong admin password on every test machine. If a contractor or script leaks that password, anyone can log into your cloud network. Instead, give each build agent a narrow role with only the rights it needs. Use cloud identity roles to start machines rather than long-lived secret keys.
Azure RBAC + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad network paths also put your test setups at risk. Test machines often read from staging databases that hold real customer records. Unlogged queries from a test machine can expose emails, phone numbers, or card numbers. Lock down virtual network rules so test runners only reach specific test ports. Mask sensitive fields in test results so masking rewrites matched fields in results.
Keeping cloud test machines clean and fast
Long-running test machines collect junk files, old browser caches, and broken registry keys. Over time, tests fail because the machine state drifted from your clean base image. Do not keep the same virtual machine running for weeks at a time.
Build a clean golden image with your test runner and browsers pre-installed. Spin up a fresh virtual machine from that base image for each test run. Delete the machine as soon as the agent uploads the final test logs. This habit keeps test runs fast, repeatable, and free from leftover data.
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
Why do my UI tests fail when I disconnect from the cloud machine?
Disconnecting from a remote desktop locks the Windows user session and stops screen rendering. Configure your test agent to transfer the session to the local console upon disconnect.
Should I install the full test IDE on every cloud virtual machine?
No, you only need the lighter test execution engine on your cloud runners. Save the full editor for the machines where engineers write and debug tests.
How do I stop test runners from leaking customer data in screenshots?
Use synthetic data in your test databases instead of raw production copies. You should also mask sensitive fields like emails and phone numbers before tests run.
Related guides
In this post