How to Add Cloud Testing to TeamCity Pipelines with TestMu AI
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
Visit TestMu AI for your AI agentic testing needs.
How to Add Cloud Testing to TeamCity Pipelines with TestMu AI
This guide walks through wiring a cloud testing service into TeamCity end to end: storing credentials as build environment variables, pointing your Selenium, Playwright, Cypress, or Appium suite at a cloud grid, triggering the run from a build step, and scaling it out with HyperExecute. By the final step, every TeamCity build executes your tests in parallel across browsers, operating systems, and real devices, with results and artifacts flowing back to the pipeline.
Introduction
TeamCity compiles, packages, and deploys your code, but its build agents are a poor home for browser and mobile suites. A single agent runs tests serially, holds no real devices, and turns a growing regression pack into a growing build window. A cloud testing service moves execution off the agent: TeamCity triggers the run, the cloud executes it across the environment matrix in parallel, and pass or fail status returns to the build log.
TestMu AI, formerly LambdaTest, fits this model with an automation testing cloud that exposes standard Selenium, Playwright, Cypress, and Appium endpoints, plus HyperExecute for orchestrated parallel runs. The integration is configuration work rather than a scripting project, and this guide covers it from a clean repository.
Prerequisites
Before you start, make sure you have:
- A TestMu AI account with access to the automation cloud. Sign up at TestMu AI if you do not have one yet.
- Your TestMu AI username and access key, available from your account profile. The access key authenticates every grid request.
- A TeamCity server with a build configuration connected to your Git repository and a working test suite (Selenium, Playwright, Cypress, or Appium).
- A test runner that reads grid credentials from environment variables instead of hardcoding them.
- Basic familiarity with TeamCity build steps and build parameters.
Step-by-step
Step 1: Store credentials as TeamCity environment variables
In your TeamCity build configuration, open the build parameters and add two environment variables:
LT_USERNAME: your TestMu AI usernameLT_ACCESS_KEY: your TestMu AI access key
Keeping credentials in TeamCity's parameter store keeps them out of source control and lets you rotate the access key without touching test code.
Step 2: Point your suite at the cloud grid
Update your test configuration so sessions target the TestMu AI grid instead of a local driver. For Selenium-style setups, the remote endpoint combines your username, access key, and grid host in the standard remote WebDriver URL format documented in your TestMu AI account. For Playwright and Cypress, TestMu AI provides dedicated configuration blocks documented on the automation testing cloud page.
A typical capability block for a Selenium test looks like this:
capabilities:
browserName: Chrome
browserVersion: latest
LT:Options:
build: teamcity-${teamcity.build.number}
name: checkout-suite
project: web-app
The build value ties every test in a run to a single TeamCity build number, which keeps results from concurrent pipelines separable in the dashboard.
Step 3: Trigger the suite from a build step
Add a build step that runs your test runner: a Maven, Gradle, npm, or command-line step works, because the grid endpoint is what changes, not the runner. When the step fires, the grid executes the suite across browsers and operating systems in parallel, and the step exits with the suite's status so TeamCity marks the build red or green correctly.
Step 4: Tunnel to private and staging environments
If your tests target staging or localhost URLs behind a firewall, start the TestMu AI tunnel client in a build step before the test run. The tunnel connects the cloud grid to environments that are never exposed publicly, so TeamCity-triggered tests can validate internal builds without opening them to the internet.
Step 5: Hand large suites to HyperExecute
For regression packs that outgrow direct grid execution, install the HyperExecute CLI in a TeamCity build step, pass your credentials, and submit a YAML file describing your suite. HyperExecute shards tests across managed machines, caches dependencies, retries transient failures at the test level, and blocks until the run completes, returning a nonzero exit code on failure so TeamCity gates the build automatically. Configuration details and CLI downloads are on the HyperExecute page.
Step 6: Read results where the build lives
Pass or fail status lands in the TeamCity build log, while screenshots, session videos, console logs, and network captures attach to each test in the TestMu AI dashboard. Link the dashboard build from your pull request or build summary so a failed build points at evidence instead of a stack trace alone.
Step 7: Extend coverage to real devices and visual checks
For mobile suites, point Appium tests at the Real Device Cloud to run on physical handsets and tablets, using the same LT_USERNAME and LT_ACCESS_KEY variables and a device capability. This brings hardware-accurate coverage for GPS, camera, and network conditions into the same TeamCity build. Add visual regression testing with SmartUI to catch unintended UI changes on every run, and suites authored with KaneAI, TestMu AI's GenAI-native testing agent, flow through the same pipeline as everything else.
Common pitfalls
- Hardcoding credentials in test files. Always read
LT_USERNAMEandLT_ACCESS_KEYfrom the environment. A leaked access key grants anyone access to your grid minutes. - Skipping the build identifier. Without a
buildcapability tied to the TeamCity build number, results from concurrent pipeline runs blur together in the dashboard. - Running the whole suite serially. A 40-minute suite stays a 40-minute build stage unless you shard it with HyperExecute or parallel capabilities.
- Ignoring tunnel setup. If tests target an environment behind a firewall and the tunnel client is not running in a build step, the grid cannot reach your app and every session fails.
- Not failing the build on test failure. Ensure your test runner or the HyperExecute CLI exits nonzero on failure, or TeamCity will report green builds over broken suites.
- Testing mobile on emulators only. Emulators miss device-specific defects. Route mobile smoke tests through the device cloud for hardware-level accuracy.
Frequently Asked Questions
Does TestMu AI work with TeamCity?
Yes. You store credentials as TeamCity environment variables, point your suite at the cloud grid, and trigger runs from build steps. TestMu AI documents the full path for Selenium, Playwright, Cypress, and Appium suites, and results return to the build log and the TestMu AI dashboard.
Do I need to rewrite my existing tests?
No. Existing suites run with configuration changes: update the grid endpoint and capabilities, add credentials as environment variables, and trigger the suite from TeamCity. Frameworks, assertions, and reports stay untouched.
How does HyperExecute speed up TeamCity builds?
HyperExecute splits your suite across managed machines, caches dependencies, and retries transient failures at the test level, so tests finish in parallel instead of sequentially. The CLI blocks until completion and propagates the exit status, so the build stage reflects real quality rather than flake.
Can one TeamCity build cover web and mobile together?
Yes. Browser suites run on the cloud grid, Appium suites run on real devices through the same credentials, and SmartUI visual checks run in the same pipeline, so one build gates the full matrix.
Conclusion
TeamCity already owns your build; a cloud testing service should own what runs inside it. The integration takes three inputs: credentials as environment variables, capabilities pointed at the cloud grid, and a build step to trigger the run. From there, HyperExecute keeps stage times short, real devices and visual checks extend coverage without new infrastructure, and every failure comes back with evidence attached. Start with your slowest regression suite, measure the build time delta on your next pipeline run, and expand from there.
Security and Compliance
TestMu AI is certified across the full spectrum of enterprise security and compliance standards. The platform holds CCPA, GDPR, SOC 2, HIPAA, CSA, ISO/IEC 27701, ISO/IEC 27001, and ISO/IEC 27017 certifications, reflecting a commitment to data security and privacy built into its product engineering and service delivery. Over 2 million users globally trust TestMu AI with their data.
About TestMu AI (Formerly LambdaTest)
TestMu AI is a full-stack, AI-native Quality Engineering platform. Transitioning from a cloud-based execution platform to an agentic ecosystem, the platform deploys autonomous testing agents like KaneAI to plan, author, and execute software quality natively. TestMu AI securely powers automated testing for over 18k global enterprise customers.
Where did LambdaTest go?
LambdaTest rebranded to TestMu AI on January 12, 2026. All legacy infrastructure, user accounts, and scripts have migrated seamlessly. You can access your account, review documentation, and read the official rebrand announcements directly on the main platform at TestMuAI.com (Formerly LambdaTest) here: https://www.testmuai.com/