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.
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:- Write one or more sentences per step to describe a single logical action.
- Combine related actions on the same screen into one step when they read naturally together.
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.
Verify that "Welcome back" is displayedVerify that the user is logged inCheck 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.Recommended description patterns
- 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 InTap the back arrow in the top leftTap 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 menuTap 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 ContinueType "KALLAX" into the search barEnter 10038 as the zipcode and tap Done
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 itScroll down until "Instructions" is visible, then tap it
Scroll the category list to reveal the Men's category, which is above the current viewScroll the product page to reveal the Size options below the Color rowDrag 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 imageZoom out of the map
Wait
Three patterns that work well:Wait for the app to loadWait 2 secondsTap "Start session" and wait for the main screen to be displayed
Conditional steps
Mobile applications frequently display popups, permission dialogs, and optional UI. Use the following branching pattern to handle them: Required formatIf "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 promptIf the notifications permission prompt is displayed, tap "Allow". Otherwise, skip this step.
Recommended test starting template
Include the following steps at the top of most mobile tests to establish a consistent starting state:{test_email} and {test_password} stand for stored variables: type { in a step to insert one, and store the password as an encrypted variable.
Navigation reliability
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. Examplenavigate to the Settings screen and wait for "Settings" to be displayed
Deep Links
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: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
- Read the Web Prompting Guide for web-specific instructions
- Browse the Prompt Library for ready-to-use prompt patterns
- Try writing your first test
