---
title: "Replacing an in-office device farm: hosted emulators and parallel mobile test runs"
description: "How to retire an in-office device lab: compare device clouds, Firebase Test Lab and hosted emulators, size parallel runs and keep a few real devices."
canonical: "https://momentic.ai/blog/replace-device-farm-hosted-emulators"
last-updated: "2026-11-10T17:36:34Z"
---

# Replacing an in-office device farm: hosted emulators and parallel mobile test runs

URL: https://momentic.ai/blog/replace-device-farm-hosted-emulators

[blog](/blog) [/ resources](/blog/category/resources)  / replace-device-farm-hosted-emulators

Resources

How to retire an in-office device lab: compare device clouds, Firebase Test Lab and hosted emulators, size parallel runs and keep a few real devices.

Wei-Wei Wu

CEO, Momentic

## TL;DR

- Replace the in-office device farm with hosted Android emulators and [iOS simulators](/ios-testing) for routine mobile end-to-end tests. Keep a small real-device set for flows that depend on physical hardware.
- Run independent tests concurrently on separate hosted instances. Fresh instances reduce failures caused by state left behind on shared phones.
- Size concurrency against your CI time target, hosted-session limit, and usage costs. Add workers only while shorter runs justify the extra usage.
- Before retiring devices, inventory tests for sensors, carrier behavior, and performance or battery measurements. Move those checks to the retained hardware set rather than assuming an emulator will reproduce them.

## What a device farm actually costs a team

A device farm costs more than the phones on its shelf. You also pay for charging hardware, cables, network access, and, if you run iOS simulators yourself, Mac minis. As devices age, batteries fail and supported OS versions change, so you have to replace hardware and update the test environment.

Routine upkeep consumes engineering time. Someone has to install app builds, apply OS updates, reset devices, repair connections, and investigate runs that never reached the application. When you calculate the farm’s cost, count that work alongside hardware and hosting expenses. Those hours are unavailable for writing tests or investigating product regressions.

Shared devices can also make CI results harder to trust. A previous run might leave an account signed in, change a permission, or leave test data behind. If the next run assumes a clean device, it may pass or fail for reasons unrelated to the commit under test. Contention creates a separate problem when tests wait for the same phone or simulator. More queued runs increase feedback time even if each test runs quickly.

Before retiring the farm, measure where its time goes. Track device wait time, failed setup attempts, state-related reruns, and maintenance hours separately from application failures. That record gives you a baseline for judging hosted runs later without treating every failed test as a product defect.

## What replaces an in-office device farm

Hosted Android emulators and iOS simulators replace most of the phones you keep for mobile end-to-end tests. Your CI pipeline requests instances when a run starts, executes independent tests in parallel, and releases the instances afterward. Keep a small set of [physical devices](/blog/real-devices-vs-emulators-simulators) for flows that depend on real hardware. The replacement follows the same operating model as hosted CI runners. You consume test capacity when you need it rather than maintaining machines between runs.

Emulators and simulators cover most flows that exercise app screens, navigation, authentication, and backend responses. Separate instances also let parallel tests run without competing for the same device or inheriting another test’s app state. Physical devices still belong in the plan for sensor behavior, carrier-specific networking, production push delivery, and battery or performance measurements. Those cases define the retained hardware set. They do not require you to keep the full farm.

## Comparing the hosted options: device clouds, Firebase Test Lab, hosted emulators

Choose a hosted service by the devices your suite needs and the test format you already maintain. A [real-device cloud](/blog/real-device-cloud-testing) gives you access to physical phones without maintaining them. A hosted emulator or simulator service gives each parallel run a virtual device. Firebase Test Lab sits between those choices, with different device and framework options for Android and iOS. For a vendor-by-vendor comparison, see [AWS Device Farm alternatives](/blog/aws-device-farm-alternatives).

| Tool | Device type | macOS runner for iOS | Parallelism and scaling | Where tests live |
| --- | --- | --- | --- | --- |
| BrowserStack | Real devices and virtual-device options, depending on product | Not to run a prebuilt app | Concurrent sessions depend on the plan | Scripted tests in your repo, submitted through CI |
| Sauce Labs | Real devices and virtual devices | Not to run a prebuilt app | Concurrent sessions depend on the plan | Scripted tests in your repo, submitted through CI |
| AWS Device Farm | Primarily real devices for mobile app tests | Not to run a prebuilt app | Runs are submitted to hosted devices, subject to account limits | Test packages in your repo and CI |
| Firebase Test Lab | Hosted Android devices, including virtual devices, plus iOS device testing | Not to run a prebuilt app | Tests run across selected device configurations, subject to quotas | Native test packages in your repo and CI |
| Hosted emulator or simulator platform | Android emulators and iOS simulators | Not to run a prebuilt app | Concurrent virtual sessions depend on service limits and billing | Repo-based scripts or YAML flows, depending on the tool |

**Running an iOS test remotely and building an iOS app are separate steps.** A hosted service can run a prebuilt app without a macOS CI runner. If your CI pipeline compiles the app with Xcode, that build step still needs macOS, whether you use a runner or a hosted build service.

Start with your existing suite. If you already have native instrumentation or XCTest tests, check which services accept those test packages before comparing device counts. If your mobile E2E tests use scripted interactions or YAML flows, check the provider’s supported authoring format and how its CLI or API submits runs from CI. Then confirm the exact OS versions, virtual-device inventory, concurrency limit, and billing unit for the configurations you intend to run. Vendor support differs by product and plan, so a device listed for manual testing may not be available for automated CI runs.

## How parallelism works on hosted infrastructure

Hosted parallelism lets multiple mobile tests run at once without assigning each test a phone from your own rack. A CI runner starts workers that submit tests to a hosted service. For each available concurrent session, the service starts an emulator or simulator, installs the app build, and runs a test. Tests wait in a queue when all permitted sessions are occupied.

Instance isolation determines whether [parallel runs](/blog/complete-guide-to-parallel-testing) also reduce flakiness. If the service provisions a fresh instance for each test, one test cannot leave a logged-in account, changed permission, or stale app data for the next test. Check the provider’s instance-lifetime policy before relying on that behavior. A service that reuses instances needs a verified reset step, and separate instances cannot prevent tests from interfering through a shared backend account or database.

Worker count and hosted-session count impose different limits. Your runner needs enough workers to submit and process concurrent tests, while your hosted plan needs enough sessions to execute them. Increasing workers beyond the session limit only lengthens the queue. Keep test accounts and backend data isolated as you raise concurrency, then measure queue time and test duration before changing the limit again.

## Sizing your parallel test runs

Size parallelism against your CI deadline, then check whether your hosted plan permits enough concurrent mobile sessions. Start with the test count and measured runtime per test, including setup. For equally long tests, divide the target wall-clock time by the test duration to find how many waves fit. Then divide the test count by that number of waves and round up.

For example, 180 tests that each take two minutes need at least 26 concurrent sessions to finish within 15 minutes. Seven waves take 14 minutes, leaving one minute for queueing and CI overhead. Uneven test lengths, emulator startup, and retries can erase that margin, so measure a real run before setting the cap. If your plan allows fewer than 26 sessions, reduce the suite on that CI path or accept a longer run.

Check cost separately from wall-clock time. A provider may meter [Android emulator](/android-testing) minutes and iOS simulator minutes at different rates, while a plan may also impose a concurrency or credit limit. Estimate each platform’s billable runtime using its own rate. More parallel sessions can shorten CI without reducing the total test minutes you pay for.

The CI job below assumes your build has produced `dist/app.apk`. The repository scripts are wrappers for your provider’s asset-upload and test-run commands, so their arguments must match the CLI you use.

`- name: Run hosted Android tests  env:  CHANNEL: ci  TAG: ${{ github.sha }}  run: |  ./ci/upload-mobile-asset.sh dist/app.apk "$CHANNEL" "$TAG"  ./ci/run-mobile-suite.sh "$CHANNEL" "$TAG" --parallel AUTO`

Keep the upload and run on the same channel and commit tag so the suite uses the intended build. Check how your provider interprets `AUTO` and what concurrency cap your plan applies before relying on the calculated finish time.

## Why keep a small real-device set

Hosted emulators and simulators can run most mobile end-to-end tests, but some checks need physical phones. Emulators can simulate sensor inputs and network conditions, yet simulations cannot tell you how a particular sensor or carrier connection behaves on a device. Keep real hardware for flows that depend on camera or biometric sensors, carrier-specific behavior, and push notification delivery under real device and network conditions.

Performance and battery tests also need physical devices. A hosted emulator runs on different hardware, so its timing and power use cannot establish how the app behaves on a phone. Run those checks on the device models and OS versions your users depend on.

Scope the retained set by test requirement rather than trying to preserve the old device matrix. For each test that stays on hardware, record the behavior it verifies and why an emulator cannot verify it. Run the rest in parallel on hosted emulators and simulators, and review the physical-device set when supported devices or hardware-dependent features change.

## Migrating a suite from a physical device farm

Inventory the suite before moving any tests. For each test, record the app build, OS version, device model, run time, and recent failures. Note any dependency on physical hardware. Check whether device-specific copies of a test exercise different behavior or repeat the same flow.

Move ordinary UI flows to hosted Android emulators and iOS simulators first. Keep tests that depend on Bluetooth, NFC, carrier behavior, or device performance on real hardware. During the migration, you can run a subset on a local Android Virtual Device or Xcode simulator while you check that the same tests behave as expected remotely.

Cut CI over in stages. Upload each app build before its test job and, if your provider supports channels and tags, label the asset with its environment and commit so CI selects the intended build. Run the migrated tests against remote emulators and simulators in parallel, then compare failures with the physical-device runs before removing the old jobs. A remote iOS simulator can run tests without a macOS CI runner, but building the iOS app may still require one. Keep the real-device jobs only for the hardware-dependent tests you identified in the inventory.

## Engineering takeaway

Replacing shared phones with hosted test runs lets you spend less engineering time maintaining devices and more time investigating regressions. Track CI duration and flaky failures as you increase concurrency, so faster runs do not mask poor test signal.

To start setting up mobile tests, run `npx @momentic/wizard@latest`.

## Frequently asked questions

Do hosted emulators support WebView-based or hybrid apps?    Generally, yes. Android emulators can run apps that use Android WebView, and iOS simulators can run apps that use WKWebView. Check whether your test tool can inspect and interact with content inside the WebView. Test device-specific WebView behavior on physical hardware before retiring those devices.    How is mobile parallelism priced?    Providers use different combinations of concurrent-session limits, runtime charges, and plan allowances. Before raising CI concurrency, check whether the limit applies separately to Android and iOS, and whether queued tests consume billable time.    Can local and remote emulators run the same suite during migration?    Yes, if your test runner lets you select a local or hosted target without changing the tests. Run a subset against both targets first. Compare failures before moving the CI job, since OS images and app installation paths may differ.    Does dropping physical devices reduce OS-version coverage?    Not necessarily. Hosted providers offer selectable OS images, but their available versions and device models vary. Compare that inventory with your supported-device matrix, and retain physical devices for combinations or hardware behavior the hosted inventory cannot cover.

Still have additional questions?

## Keep reading.

[Resources   Real devices vs emulators and simulators: which mobile flows need a physical device     Which mobile flows simulators and emulators can test on every PR, which need a physical device, and how to split the suite between them.     Wei-Wei Wu     6 min read](/blog/real-devices-vs-emulators-simulators)[Resources   Real Device Cloud Testing: How to Test Mobile Apps on Devices Virtually     What real device cloud testing is, what it does well, and where you might be better off relying on simulators and emulators to test devices virtually.     Wei-Wei Wu     9 min read](/blog/real-device-cloud-testing)[Resources   Emulators vs Simulators in Mobile Testing     The pros and cons of emulators vs simulators in mobile testing, and how each option can help your team release faster and catch defects earlier.     Wei-Wei Wu     8 min read](/blog/emulators-vs-simulators-in-mobile-testing)

## Try Mo on your app.

Mo is an AI QA engineer. It tests your running app and files each bug with repro steps. Free to start, no credit card.

[Try for free](https://app.momentic.ai/signup) [Contact sales](/sales)
