installApp, removeApp, clearAppData

in Japanese(日本語)

Installs, uninstalls, or resets the data of the app under test.

Functions

function description
installApp(appPackageFile?) Installs the app (iOS: .app, Android: .apk or .apks; .apks needs bundletool on the Mac). Without appPackageFile, the app profile's <platform>.appPath (the app profile that the run profile's app points to) is used (an explicit path always wins over the profile).
removeApp(appID?) Uninstalls the app. appID defaults the same way as launchApp()'s appID when omitted.
clearAppData(appID?) Keeps the app installed but clears its data and permissions, so onboarding and permission dialogs reappear. appID defaults the same way as launchApp()'s appID.

Example

installApp()                       // path from the app profile's appPath
launchApp()                        // on iOS in `inapp-boost` mode, call it right after install
installApp("/path/to/MyApp.app")
clearAppData()                     // back to a first-run state
removeApp()

Notes