Profiles (app / run)
A run is configured from two kinds of JSON profile under TestProjects/<name>/profiles/,
combined by reference rather than by inheritance:
| Kind | File | Purpose |
|---|---|---|
| App profile | apps/<name>.json |
The app under test (bundle ID / package, build path) |
| Run profile | runs/<name>.json |
Which app + which devices (each naming the machine it lives on) + run-time settings (see run_profile.md) |
App profiles
apps/<name>.json has top-level keys (platform, autoInstall, healthCheckURL) plus an
ios and an android section:
{ "platform": "hybrid",
"autoInstall": true,
"ios": { "appName": "Sample App", "app": "com.example.sampleapp",
"appPath": "~/builds/SampleApp.app" },
"android": { "appName": "Sample App", "app": "com.example.sampleapp",
"appPath": "builds/app-debug.apk" } }
platform(optional):"ios","android"or"hybrid"— the OS(es) the app runs on.hybridmeans both, and omitting the key means the same (saving from the VSCode extension's Profiles tab writeshybridexplicitly too). Devices of an OS the app does not target are ignored at run time (each one is reported as a warning; the run profile's JSON is not changed). A run whose devices are all ignored fails with an error naming the app profile.autoInstallis a top-level key (default: whetherappPathorappPathPhysicalis set — writefalseexplicitly to opt out even with a path present). On Android, if the device already has the same package signed with a different key, fleetest uninstalls it and reinstalls only on an Emulator or when the installed one is a debuggable build (this deletes the app's data); otherwise (a store/release install on a physical device, or when fleetest cannot tell) it stops and tells you theadb uninstallcommand to run yourself.appName(display name),app(bundle ID / package) andappPathare only read from theios/androidsections, so the display name can differ per OS.appNamemust be exactly the name shown under the app icon on the home screen:tapAppIcon()without a name looks for it, and a system alert is attributed to your app by it. Do not add a suffix to tell profiles apart (e.g. "(device)"). On iOS, a run (andapi validate-profile) warns when it matches none of the app bundle's display names read fromappPath(CFBundleDisplayName, falling back toCFBundleName; localized names also count). Android warns the same way whenappPathis an.apkand the Android SDKbuild-tools(aapt2/aapt) are present: it matches none of the app'sapplication-labelvalues (localized ones also count)..apks/.aab, or noaapt, stay silent.appPathis relative to the repository root by default (~and absolute paths also work). Android accepts.apkor.apks(an App Bundle split set; installing.apksrequiresbundletool). iOSappPathis a.app(Simulators install nothing else);appPathPhysicalmay be a.appor an.ipa.- The tool also reads the app's UI framework from that package (Compose Multiplatform / Flutter /
everything else) to decide whether a scroll needs a relief gesture before the next tap, and
remembers the answer per bundle ID. When neither the package nor a remembered answer is at hand
(an app installed on a physical device by other means), the decision is made per element from the
accessibility tree (custom-drawn elements, as Compose / Flutter expose them, get the gesture; view-backed
ones do not) and the run says so once. Point
appPath/appPathPhysicalat the package once to settle it for good. healthCheckURL(top-level, optional): a backend URL checked at the start of a run (3-second timeout, warns but does not block).
Devices
A run profile's devices array lists the device entities the run uses. Each entry says which
machine it lives on and gives it a name that is unique together with that machine, so the same
name can exist on different machines and the same device can appear — independently toggled with
enabled — in more than one run profile. See run_profile.md for the full key
list and every run-time setting.
{ "app": "myapp",
"devices": [
{ "platform": "ios", "machine": "local", "name": "iPhone 17 Pro(iOS 27.0)-01", "osVersion": "iOS 27.0", "model": "iPhone 17 Pro" },
{ "platform": "android", "machine": "M1Max", "name": "Pixel 9(Android 16, API 36, APIs)-01", "avd": "Pixel_9_Android_16_API_36_APIs_-01" },
{ "platform": "android", "machine": "local", "name": "Pixel 8(Android 14, API 34, APIs)-01", "enabled": false, "avd": "Pixel_8_Android_14_API_34_APIs_-01" }
],
"heal": true }
machineis"local"for a device on this Mac, or the name of a machine registered withfleetest remote machines add, which dispatches that device's run over SSH instead of running it locally (see Remote runs).- For an iOS Simulator,
nameis the Simulator's own name (Xcode's Name, i.e. the simctl name) andosVersionis Xcode's OS Version (e.g."iOS 27.0") — together they are how fleetest finds the Simulator whenudidis absent.model(Xcode's Model) is display-only. See run_profile.md for the full key list. - A physical device sets
"kind": "physical"and an identifier instead of a Simulator/AVD reference — iOS usesudid(fromxcrun devicectl list devices, thehardwareProperties.udidform), Android usesserial(the left column ofadb devices):
{ "platform": "ios", "machine": "local", "name": "iPhone (physical)", "kind": "physical",
"udid": "00008130-000A1B2C3D4E5678" }
- Turn auto-lock off on physical devices. On iOS: Settings → Display & Brightness → Auto-Lock → Never. On Android: Settings → Display → Screen timeout, set it long enough. The tool does not keep the screen awake — if the screen sleeps during a step that waits, the OS refuses every later app launch and the run stops. Starting against a locked device is refused by name (unlocking it automatically is impossible: the only thing that can send input to the device is the runner on that device, and it is not running yet).
- The steps for getting a physical device ready are in Adding physical devices.
fleetest profile setup --auto-device picks a device automatically: for iOS, the newest runtime of the
selected Xcode (installed with xcodebuild -downloadPlatform iOS when missing: several GB, several minutes to
tens of minutes) and the newest plain iPhone <N> it supports (Pro, Pro Max, Plus, Air, e, mini and SE variants are excluded); for Android, the newest Pixel <N> or Pixel <N>a (the plain one wins a tie; Pro, Fold and other variants are excluded) with the
google_apis system image of the highest API level. The VSCode extension's "Add device" dialog also opens
with the same combination pre-selected.
Commands
| Command | Description |
|---|---|
fleetest profile setup --platform <ios|android|hybrid> --app-id <id> [--auto-device [--count <N>]] [...] |
Create/refresh the app and run profiles together (idempotent). --count <N> (with --auto-device) adds devices until the run profile holds N devices of that OS in total: devices already listed count, existing ones with the same model and OS are reused from the lowest number, and only the missing ones are created with unused numbers; nothing is added when it already has N or more. --platform is also written to the app profile's platform; adding the other OS to an existing app profile makes it hybrid. The app profile name is --app-ref; when omitted, the one the run profile already uses, else <platform>-app (ios-app / android-app / hybrid-app). The run profile name is --run; when omitted, <platform>-run (ios-run / android-run; hybrid makes one per OS) |
fleetest profile list |
List run profiles and their devices |
Editing in VSCode
The VSCode extension's Profiles tab lets you edit run/app profiles interactively — the run
profile section shows the union of every run profile's devices, with checkboxes selecting which
ones this run profile runs — and profiles/{apps,runs}/*.json get a JSON schema
(schemas/*.schema.json) contributed by the extension for completion, hover and structural
validation while editing by hand. See VSCode extension.