Skip to navigation

App descriptor

Referenced In

Fields

Validation applies the defaults shown here.

FieldTypeDescriptionDefault
appstringRequired. The app identifier: an executable path (C:\\Windows\\System32\\notepad.exe), a .app path, a bundle ID (com.apple.TextEdit), a package name (com.example.myapp), or a UWP AppUserModelID (Microsoft.WindowsCalculator_8wekyb3d8bbwe!App). Disambiguated by syntax — never by a type field.

Minimum length: 1. Pattern: \S
—
namestringOptional. Surface-registry name later steps use in surface. Default: the executable basename without extension, or the final dot-segment of an ID.

Minimum length: 1. Pattern: \S
—
argsarray of stringOptional. Launch arguments (desktop apps). On macOS they pass to the app as a real argument array. On Windows they join into a single shell-style argument string for the driver, so an argument with embedded spaces must carry its own quotes (e.g. ""My File.txt"").—
envobjectOptional. Extra environment variables for the launched app (desktop apps). Supported on macOS; not supported by the Windows driver, where any value fails with guidance (set variables in the shell that launches Doc Detective instead).—
installstringOptional. Path to an installable artifact (.apk/.app/.ipa) to install on the device before launch. Supported on Android and iOS app surfaces.

Minimum length: 1
—
activitystringOptional. Android main activity override (defaults to the package’s launcher activity). Android-only.

Minimum length: 1
—
deviceone of:
- string
- object(Device descriptor)
Optional. Device the app runs on. Omit for a host desktop app, or (in a mobile context) to use the context’s default device. A string references a device by name; an object refines it. Supported on Android and iOS mobile targets.—
driverOptionsobjectOptional. Escape-hatch passthrough: merged into the automation session’s capabilities after the ones Doc Detective computes (namespaced per driver, e.g. appium:noReset). Driver- and version-specific; use sparingly.—
waitUntilobject(App readiness)Optional. Startup readiness: a fixed delay and/or an element that must exist before the surface is considered open. No condition applies by default.—
timeoutintegerOptional. Startup ceiling in milliseconds (launch + install + readiness).

Minimum: 1
60000

Examples

{
"app": "example",
"name": "example",
"args": [],
"env": {},
"install": "example",
"activity": "example",
"device": "example",
"driverOptions": {},
"waitUntil": {
"delayMs": 42
},
"timeout": 60000
}