Profiles (app / run)

in Japanese(日本語)

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" } }

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 }
{ "platform": "ios", "machine": "local", "name": "iPhone (physical)", "kind": "physical",
  "udid": "00008130-000A1B2C3D4E5678" }

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.