Skip to main content

Overview

Spur controls emulators and simulators and interacts with mobile applications the same way a human tester would. The agent sees what is on screen and performs actions — taps, types, scrolls, and waits — based on your instructions. You can also provide high-level instructions and let the agent determine the appropriate interactions. To author a mobile test, provide a clear test name, a description, and the individual steps required to achieve the goal.

Getting your mobile app into Spur

You need an Environment configured for native tests and a build for a platform enabled for your Application. If you do not have a native testing environment, contact Spur. Build your app for an Android emulator or an iOS Simulator. A build for a physical iOS device does not work on a simulator. The upload form accepts Android .apk and .aab files, and iOS .ipa or .app.zip files. Compress an iOS .app directory into an .app.zip file before uploading; folder uploads are not supported.

Upload from the dashboard

1

Open native app builds

Open Environments, select your native testing environment, and open Native App Builds.
2

Create a build property

Click Add Build, or Upload Native App Build if the list is empty. Enter a Name. If a Platform choice appears, select Android, iOS, or both, then click Create Property.
3

Upload your build

In the property’s details, upload the file in the row for the environment and platform you want to test. Drag and drop an .app.zip file into the iOS upload area.To replace an existing build, click Upload New Build in that row.
4

Check the selected build

Confirm the filename shown for the environment. You can use Preview Build to inspect the app in an interactive session.

Push from a terminal or CI/CD

After you save a build property, expand Push via CLI in its details. Set up registry credentials from Integrations if Spur asks. Then use Copy command to copy the ORAS command for that environment and build property. You can use the generated command locally or in your CI/CD pipeline after your app build step. Store credentials as CI secrets rather than adding them to a committed workflow file.
Mobile app builds are different from Upload Files, which attaches sample documents or images for a test to upload inside your app.
Continue with Mobile Streaming or the prompting patterns below. Keep your app’s bundle ID or package name available for steps such as Restart App.
Write each step as though you are instructing a colleague who is holding the phone.
  • Use plain English
  • Do not include code, selectors (IDs, XPath), or coordinates

Step formatting standards

Follow this structure for every test:
  1. Write one or more sentences per step to describe a single logical action.
  2. Combine related actions on the same screen into one step when they read naturally together.
Combining actions on the same screen into fewer steps can improve both speed and reliability.

Intent words: Verify vs check/validate

Spur interprets these keywords differently:

Verify

Use when you need to confirm something that is already visible on screen.This should not require additional interaction.

Check / Validate

Use when Spur may need to perform a small interaction before confirming.
Examples
  • Verify that "Welcome back" is displayed
  • Verify that the user is logged in
  • Check that the cart shows "1" item (may need to open the cart)

Identifying elements

Use visible cues so the agent can reliably locate the correct target.
  • Text + position: “Tap Settings in the top right.”
  • Icon + position: “Tap the gear icon in the top right.”
  • Disambiguation: “Tap the first product in the list.”

Supported actions

Tap / click

Tap and Click are interchangeable in Spur.
  • Tap Sign In
  • Tap the back arrow in the top left
  • Tap the first product in the list

Tap and hold (long press)

Use when you need to trigger a context menu, drag handle, or secondary action.
  • Long press the profile photo to open the context menu
  • Tap and hold the message bubble until the actions menu appears

Type (text and numeric entry)

Where possible, combine credential entry into a single instruction.
  • Enter {test_email} as email and {test_password} as password and tap Continue
  • Type "KALLAX" into the search bar
  • Enter 10038 as the zipcode and tap Done
iOS: Avoid writing “tap the field, then type”. Instead, write “enter the email” or “enter the password” directly. Spur handles field focus automatically.

Scroll / swipe

The most reliable approach is to scroll until a specific element is visible.
  • Scroll down until the "Add" button is visible, then tap it
  • Scroll down until "Instructions" is visible, then tap it
Describe what you want brought into view, not the finger movement or swipe distance. Spur chooses the gesture from the screenshot. Name the list or area to scroll, and name a nearby element when the direction could be unclear. Use the same approach to move a slider, drag an item, or pan a map:
  • Scroll the category list to reveal the Men's category, which is above the current view
  • Scroll the product page to reveal the Size options below the Color row
  • Drag the price slider to about $20

Zoom

Name the image, map, or page to zoom in on or out of.
  • Zoom in on the product image
  • Zoom out of the map

Wait

Three patterns that work well:
  • Wait for the app to load
  • Wait 2 seconds
  • Tap "Start session" and wait for the main screen to be displayed
Prefer condition-based waits over fixed durations. Writing “do X and wait for Y to be displayed” is more robust than “wait N seconds”.

Conditional steps

Mobile applications frequently display popups, permission dialogs, and optional UI. Use the following branching pattern to handle them: Required format
Examples
  • If "Join our email list" is displayed, tap "No, thank you". Otherwise, skip this step.
  • If "Turn On Bluetooth" is displayed, tap "Not now". Otherwise, skip this step.
Google Password Manager and Chrome notifications are typically dismissed automatically by Spur.

App permission prompts

Spur grants your app its permissions (location, notifications, camera, and the rest) before a native test starts, so the app never asks for them. To test what happens when the app asks, for example to deny location, expand Advanced in the test editor and clear Auto-grant app permissions. Then state in your steps how the agent should answer each prompt:
  • Tap "Don't Allow" on the location permission prompt
  • If the notifications permission prompt is displayed, tap "Allow". Otherwise, skip this step.
Click the info icon on the option to see which permissions it grants. A test that runs on both iOS and Android shows one option per platform: Auto-grant app permissions (iOS) and Auto-grant app permissions (Android). Include the following steps at the top of most mobile tests to establish a consistent starting state:
Use a dedicated test account. {test_email} and {test_password} stand for stored variables: type { in a step to insert one, and store the password as an encrypted variable. When a step begins with the keyword navigate, Spur applies an additional transition wait. This ensures that screenshots are captured after the screen transition completes. Example
  • navigate to the Settings screen and wait for "Settings" to be displayed
You can use deep links to navigate directly to a specific screen in the app, bypassing the normal UI navigation. Add the step from Native Actions in the step type menu, then pick Javascript Deeplink or Native Deeplink. Javascript Deeplink saves a step like this:
Deep links are useful for skipping repetitive navigation, isolating test scope, and testing deep link behavior itself. Always follow a deep link step with a wait or verify step to allow the target screen to load. For a full guide on deep link syntax, examples, and best practices, see Deep Links.

Known limitations

Be aware of the following constraints when authoring mobile tests:
  • Infinite scroll without a stopping condition can cause endless scrolling. Always include a visibility condition (e.g., “scroll until <element> is visible”).
  • Heavy animations can cause timing issues. Add a wait-for-visible condition after the animation completes.
  • Hybrid WebView screens can be harder for the agent to detect. If taps repeatedly fail, rewrite the element description to include additional visual cues.

Quick reference

Copy-and-paste templates for common mobile testing flows.

Login and dismiss popup

Search and add to cart

Next steps