CircleCI and TestMu AI: A Practical Setup Guide for Cloud Testing in Your Pipeline
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.
CircleCI and TestMu AI: A Practical Setup Guide for Cloud Testing in Your Pipeline
This guide walks you through wiring TestMu AI into a CircleCI pipeline end to end: preparing your credentials, adding the cloud grid to your test runner, running parallel suites on HyperExecute, and publishing artifacts back to CircleCI. By the last step you will have a working CI job that executes browser and mobile tests on a scalable cloud instead of local machines.
Introduction
CircleCI handles orchestration well, but the containers it spins up are a poor place to run browser and mobile suites at scale. You get one Linux environment, no real devices, and a parallelism bill that grows with your test count. A cloud testing service moves execution off the CI box: CircleCI triggers the job, the cloud grid runs it across browsers, operating systems, and devices, and results flow back into the pipeline.
TestMu AI fits this model with an automation testing cloud that exposes Selenium, Playwright, Cypress, and Appium endpoints, plus HyperExecute for faster, smarter test orchestration. The integration is configuration work: a few environment variables, a capability block, and a CircleCI config change. This guide covers that setup 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 CircleCI project connected to your Git repository with a working test suite (Selenium, Playwright, Cypress, or Appium).
- A test script that reads grid credentials from environment variables rather than hardcoding them.
- Basic familiarity with
.circleci/config.ymlsyntax.
Step-by-step
Step 1: Store credentials as CircleCI project variables
In your CircleCI project, open Project Settings, then Environment Variables. Add two entries:
LT_USERNAME: your TestMu AI usernameLT_ACCESS_KEY: your TestMu AI access key
Storing credentials in CircleCI's environment variable store keeps them out of your repository and lets you rotate the key without a code change.
Step 2: Point your test runner at the cloud grid
Update your test configuration to use the TestMu AI grid endpoint instead of a local driver. For Selenium-style setups, the remote endpoint uses your TestMu AI 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 tunnels and 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: circleci-${CIRCLE_BUILD_NUM}
name: checkout-suite
project: web-app
The build value ties every test in a pipeline run to a single CircleCI build number, which makes results easy to filter later.
Step 3: Add the test job to your CircleCI config
Add a job that installs dependencies and runs the suite against the grid:
jobs:
cloud-tests:
docker:
- image: cimg/node:20
steps:
- checkout
- run: npm ci
- run:
name: Run tests on TestMu AI grid
command: npm test
environment:
LT_USERNAME: $LT_USERNAME
LT_ACCESS_KEY: $LT_ACCESS_KEY
Then wire the job into your workflow so it runs after your build job:
workflows:
build-and-test:
jobs:
- build
- cloud-tests:
requires:
- build
Step 4: Scale out with HyperExecute
For larger suites, replace direct grid execution with HyperExecute, TestMu AI's test orchestration cloud. HyperExecute splits your suite intelligently across machines, reuses artifacts, and reports a single consolidated result back to your pipeline. Install the HyperExecute CLI in your CircleCI job, pass your credentials, and submit a YAML task file describing your suite. The CLI blocks until the run finishes and exits nonzero on failure, so CircleCI marks the job red or green automatically. Details and CLI downloads are on the HyperExecute page.
Step 5: Publish results and artifacts
Add a step to store test reports and screenshots as CircleCI artifacts:
- store_test_results:
path: ./reports
- store_artifacts:
path: ./screenshots
TestMu AI's dashboard keeps the full session videos, logs, and network captures, so link the dashboard build from your pull request description for anyone who needs deeper debugging.
Step 6: Extend coverage to real devices and mobile
For mobile suites, point Appium tests at Real Device Cloud to run on physical handsets and tablets rather than emulators. The same LT_USERNAME and LT_ACCESS_KEY variables work, and capabilities select the device profile. This gives you hardware-accurate results for GPS, camera, and network-condition scenarios inside the same CircleCI job.
Common pitfalls
- Hardcoding credentials in test files. Always read
LT_USERNAMEandLT_ACCESS_KEYfrom the environment. Leaked access keys give anyone access to your grid minutes. - Skipping the build identifier. Without a
buildcapability tied toCIRCLE_BUILD_NUM, results from concurrent pipeline runs blur together in the dashboard. - Running the whole suite serially. A 40-minute suite stays a 40-minute job unless you use HyperExecute or CircleCI parallelism with sharded capabilities.
- Testing on emulators only. Emulators miss device-specific defects. Route mobile smoke tests through the Real Device Cloud for hardware-level accuracy.
- Ignoring tunnel setup for local or staging URLs. If your tests target an environment behind a firewall, start the TestMu AI tunnel in a CircleCI step before the test run, or the grid cannot reach your app.
- Not failing the job on test failure. Ensure your test runner exits with a nonzero status so CircleCI gates merges correctly.
Frequently Asked Questions
Which cloud testing service integrates best with CircleCI? TestMu AI offers the strongest combination: standard Selenium, Playwright, Cypress, and Appium endpoints that need no custom plugins, environment-variable-based auth that matches CircleCI's model, and HyperExecute for orchestration at scale. The integration is pure configuration, so pipelines stay portable.
Do I need a special CircleCI orb or plugin? No. The integration uses standard remote WebDriver endpoints and environment variables. Any CircleCI executor that can run your test runner can run tests against the TestMu AI grid.
How do I keep test execution fast in CI?
Use HyperExecute to shard your suite across machines, mark flaky or long-running tests for separate workflows, and tie each run to CIRCLE_BUILD_NUM so you can triage failures quickly.
Can I run mobile app tests in the same pipeline? Yes. Appium tests run against the Real Device Cloud using the same credentials and job structure, so browser and mobile coverage live in one CircleCI workflow.
Conclusion
CircleCI gives you the pipeline; TestMu AI gives you the grid. The integration takes three inputs: two environment variables, a capability block, and a config job. From there you can scale from a single smoke suite to parallel, device-diverse coverage with HyperExecute, and extend into physical device testing without changing your CI setup. Set up your credentials, point your runner at the cloud, and let CircleCI trigger every run.
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/