Automation Insights

How to automate app testing across multiple devices

Priyanov 24, 20268 min read
Share
How to automate app testing across multiple devices

A release is not done when the app works on the phone on your desk. You still need to know how signup looks on Android and iOS, whether onboarding wraps correctly in German, and whether the same build is usable on a smaller screen. Tapping through that matrix yourself works until it grows, and then it becomes the work that gets skipped.

You can hand the walkthrough to an agent that already has phones to use. Put the same app on several Mobilerun devices, write down the flow, and ask it to run the test on each of them. One prompt can cover registration, a localization check, and a UI/UX pass. This post is the setup.

The idea behind scriptless QA is covered in How to Automate Mobile App QA Without Writing Scripts. For where agents should stop and a human tester should take over, see Synthetic users vs human testers.

Scripts still have a place. They are just a poor fit for this job.

Appium, Espresso, and XCUITest are the right tools when you need a deterministic check: the same taps, the same assertions, a stable selector, a pass or fail in CI. That is a good core for regression. It is a weak way to explore a UI/UX or onboarding flow that still changes week to week. A renamed button or a new permission dialog is enough to break a script, and then someone is maintaining selectors instead of looking at the product.

An agent does a different job. You describe the behavior you want to verify, the way you would brief a QA engineer. It looks at the current screen, decides what to tap, and tells you whether the expected outcome held. A moved button does not automatically fail the run, because it re-reads the UI. The trade-off is the opposite of a script: it adapts, so two runs are not guaranteed to be identical. Use agents for exploratory walks and smoke coverage across devices. Keep a small scripted suite, and your unit tests, for the checks that have to be exact.

What you'll set up

  1. Several phones in your Mobilerun account: Cloud Android, Cloud iOS, or a Personal Phone you already own.
  2. The same app, installed on each device.
  3. The locale, timezone, and network setup you actually want to test, if the run is about a country or a language.
  4. A clear test: which flow to walk, what "pass" means, and what to report when it fails.
  5. A place for the result to land: a report in chat, screenshots and a recording, or a CI job.

1. Create the devices

Sign in at cloud.mobilerun.ai and add the phones you need.

Cloud Android is a virtual device. You can create one from the dashboard, from the API or SDK, or by asking the agent in chat. Subscription phones stay on, which is useful when an installed build and a test account should still be there tomorrow. Pay-as-you-go phones can be stopped to pause device-minute billing; a stopped phone keeps its apps and data.

Cloud iOS is created from the dashboard or the API. The chat agent can use a Cloud iOS phone already in your account, but it cannot create one for you. Dedicated Cloud iOS is a physical iPhone in a Mobilerun data center, persistent and always on. On-demand Cloud iOS is a virtual device, created when you need it. Cloud iOS is not auto-scalable the way Cloud Android is, so plan the iOS side of the matrix as a smaller set of phones.

If you need a specific handset you already own, connect it as a Personal Phone. Android uses the Portal app; an iPhone connects over USB in the browser or with the mobilerun-ios CLI. Device details show the model, OS version, and screen resolution. When you provision Cloud Android you can also set the Android version. There is no public catalog where you pick an arbitrary OEM model for a cloud phone, so if the test is "this exact device," use hardware you have.

For a language or country check, give each market its own phone. Set the locale (a BCP-47 tag such as de-DE), the timezone, and a proxy for that country. Smart IP can align GPS, timezone, locale, and, when no eSIM is active, the carrier with the proxy's exit IP. The Play Store catalog still follows the Google account's Play country, not the proxy. That setup is in How to get app data from different countries using Mobilerun.

2. Install the same app on every device

Ask the agent to install the app on each phone. If you have several ready phones, say which ones, or tell it to do all of them. It tries the Mobilerun App Store first. If the app isn't there, you can install it from Google Play on Android, which needs a Google account signed into the phone, or install a build you uploaded under Apps. There is no Play Store on iOS, so for an iOS test use the Mobilerun App Store if the app is listed, or a build from your Apps library.

For an app you own, the uploaded build is usually the right path: the same binary, or the same store version, on every device. For a store-install check, the agent can search Google Play, install the app, open it, and start the flow from there.

3. Tell the agent exactly what to test

Don't ask it to "test the app." Name the flow, the account it should use, and what a pass looks like. Ask it not to guess, and not to continue into a purchase or a settings change you didn't ask for.

Here's a prompt you can paste and adapt for registration and onboarding:

On this phone, install [App Name] if it isn't already installed, then open it.

Walk the new-user registration and onboarding flow with the test account I provide. Complete only the steps a new user would see: welcome, sign up, permission dialogs, and the first home or inbox screen after onboarding.

For each step, capture the heading, the primary button label, and any error or blocker. Note layout issues a user would hit: truncated text, a button off-screen, a control that doesn't respond, or a dead end.

The test passes only if I reach the first home screen with no blocker. If a step fails, stop, say which screen you were on, what you tapped, and what happened. Do not guess, place orders, or change account settings.

A localization check is the same idea, with a tighter expected result:

This phone is set up for [country], with locale [de-DE]. Open [App Name] and walk Home, Settings, and the signup or paywall screen.

For each screen, record the heading and the visible labels exactly as shown. Flag any string still in the wrong language, any text that overflows or wraps into a button, and any currency, date, or number format that doesn't match this locale. Do not change the device language. If a screen doesn't load, say so.

And a broader UI/UX pass, once onboarding works:

Open [App Name] as a signed-in test user. Visit [the main tabs or screens I care about]. On each screen, try the primary action.


Report only issues: unresponsive controls, broken back navigation, unexpected sign-out, errors, and layout problems. For each issue, include the screen, what you did, what you saw, and a screenshot. If a flow completes cleanly, say that and move on.

Run the prompt once by hand on a single phone before you spread it out. Watch the stream, check that it hit the right screens, and read the report. If a popup blocked the path, fix the prompt and run it again.

The clip below is that first walkthrough on a real app: the agent installs Deepstash from Google Play, opens it, and goes through the onboarding and main UI the way a new user would.

The agent searches Google Play, installs Deepstash, opens the app, walks the onboarding and registration screens, then navigates the main screens and reports what it finds. Use it as a picture of the flow, then swap in your own app and the prompt above.

4. What the report should look like

Ask for a short, structured result, not a replay of every tap. In the SDK, you can pass an output_schema so each run returns typed fields such as passed and a short observed note. Task screenshots are attached to the run. You can also start a recording before the task, then keep the video and the trajectory with the report, when the device supports recording.

Treat a single unexpected failure as something to inspect, not as automatic proof of a product bug. Agents can misread a screen, and a popup can land in the wrong place. The recording is how you tell those apart.

5. Run it on every device, then run it again on the next build

Once the one-device run looks right, ask the agent to run the same check on the rest of the phones:

Run this same onboarding test on all of my ready Cloud Android phones, and on the Cloud iOS phone. Give me one result per device.

It will confirm the phones are ready, run up to eight of them in parallel, retry a failed device once, and report each one separately. For a scripted matrix, the SDK can start the same task on a list of device IDs and print one JSON result per phone. The test-and-prove example includes a GitHub Actions job that installs mobilerun-sdk, runs the tests, and uploads the report and screenshots as artifacts.

If you want the smoke test to repeat without opening chat, turn the prompt into a routine. The agent explores the path, builds the automation, runs it once for real, and asks for your approval before the schedule goes live. A manual trigger is enough if you only want to fire it after a build; a time-based schedule works for a daily check.

Tips and limits

Use test accounts you own, or accounts you're allowed to create. Don't put a password in the prompt. Saved logins can live in Mobilerun's credential store, referenced by name; you type the values into a card, not into the chat. If signup hits an email or SMS code, a Mobilerun mailbox or a rented number can fill it in. For the options, see Why OTP breaks automation.

A failed agent run is not automatically a bug in the app. Read the screenshots before you open a ticket. Write prompts with checkable expectations: "the home heading is visible" beats "it looks right." This does not replace unit tests, and it does not have to replace your whole Appium or XCUITest suite. It is a way to get a realistic walkthrough, including onboarding and localization, onto more than one phone without writing a new script for each layout change.

If you need a clean slate between builds, a reset wipes the phone and takes a few minutes to come back. If you want to keep the app and the test account, leave the phone as it is. Deleting a pay-as-you-go device erases everything on it; stop it instead if you just want to pause billing.

Cost has two meters. Device minutes cover the time a pay-as-you-go cloud phone is powered on (Cloud Android uses one device minute per minute of runtime; on-demand Cloud iOS uses three). Subscription phones are billed as part of the plan. Credits pay for the model's work during each run. A tight prompt on a fixed set of screens stays cheaper than "explore the whole app."

The takeaway

The useful view of your app is on a phone, in a particular language, on a particular OS, going through the same flow a user would. Put that app on more than one Mobilerun device, write down the flow, and let the agent walk it and tell you, device by device, what passed and what didn't. You can start with one phone at cloud.mobilerun.ai.

Also Read: