maestro
maestro copied to clipboard
[Feature Request] Reusable commands
trafficstars
Is your feature request related to a problem? Please describe. I'd like to have possibility to define own reusable commands.
Describe the solution you'd like
I'd like to have possibility to define custom command (f.e. commands/fillInput.yaml) and use it that way:
- fillInput
field: First Name
value: Maestro
Describe alternatives you've considered
I'm using combination of env variables and runFlow command:
fillInputcommand:
appId: ${APP_ID}
name: Fill input
tags:
- re-use
---
- tapOn: ${FIELD}
- eraseText
- eraseText
- inputText: ${VALUE}
- Usage:
...
- runFlow:
file: commands/fillInput.yaml
env:
FIELD: First Name
VALUE: Maestro
- runFlow:
file: commands/fillInput.yaml
env:
FIELD: Last Name
VALUE: Test
...
it works but I'm not happy with the syntax and generated output: