maestro icon indicating copy to clipboard operation
maestro copied to clipboard

[Feature Request] Reusable commands

Open lusarz opened this issue 1 year ago • 0 comments
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:

  1. fillInput command:
appId: ${APP_ID}
name: Fill input
tags:
  - re-use
---
- tapOn: ${FIELD}
- eraseText
- eraseText
- inputText: ${VALUE}
  1. 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:

output

lusarz avatar Feb 06 '24 12:02 lusarz