Skip to main content

Overview

Mobile tests are authored as natural-language steps. In addition to the usual taps, types, and scrolls, Spur recognizes a set of specialized mobile commands for controlling the app lifecycle, simulating device gestures, and asserting on toast messages. You write them as ordinary steps — Spur maps your phrasing to the right action.
CommandWhat it doesiOSAndroid
Activate AppBring the app under test back to the foreground
Restart AppTerminate and cold-relaunch the app (or another app)
Shake DeviceSimulate a physical device shake
Flip DeviceEmulate flipping the device face-up ↔ face-down
Expect Toast / Expect No ToastAssert that a transient toast message did (or did not) appear
These commands apply only to mobile tests (iOS and Android). They have no effect on web tests.