killApp
Terminate app on Android with killApp (stopApp on iOS and Web) to test restarts.
- killAppadb shell am kill {package name}appId: com.example
---
- pressKey: Home # Puts the app into the background
- killApp # Kills the app (adb shell am kill)
- launchApp: # Relaunches the app
stopApp: false # Without adb shell am stopappId: com.example
---
- launchApp
- tapOn:
id: "com.example:id/enter_name"
- inputText: "John Doe"
- tapOn:
id: "com.example:id/next"
- assertVisible:
id: "com.example:id/show_name"
text: "Name = John Doe"
enabled: true
- runFlow: trigger-process-death.yaml
- assertVisible:
id: "com.example:id/show_name"
text: "Name = John Doe"
label: "Asserts that \"Name = John Doe\" meaning the screen kept its data after System-initiated Process Death"
enabled: true
- stopAppLast updated
Was this helpful?
