Nested flows
Reuse test logic by calling subflows from parent flows with runFlow.
Basic usage
appId: org.wikipedia
---
- launchApp
- runFlow: ../common/login.yaml
- assertVisible: "Explore"appId: org.wikipedia
---
- tapOn:
id: drawer_icon_menu
- tapOn: LOG IN / JOIN WIKIPEDIA
- tapOn: Username
- inputText: myUsername
- tapOn: Password
- inputText: myPassword
- tapOn: LOG INPassing arguments
appId: org.wikipedia
---
- launchApp
- runFlow:
file: ../common/login.yaml
env:
USERNAME: "myUser"
PASSWORD: "myPassword"
- assertVisible: "Explore"appId: org.wikipedia
---
- tapOn:
id: drawer_icon_menu
- tapOn: LOG IN / JOIN WIKIPEDIA
- tapOn: Username
- inputText: ${USERNAME}
- tapOn: Password
- inputText: ${PASSWORD}
- tapOn: LOG INBest practices for optimization
Keep flows atomic
Organized directory structure
Setup and teardown
Next steps
Last updated