Command
Run any executable or bash-cmd on the DUT.
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
cmd | const | Yes | cmd | String that identifies the teststep that gets executed |
name | string | Yes | Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI | |
transport | TransportObject | Yes | Defines how the command is executed | |
options | OptionsObject | No | Additional command options | |
parameters | CommandOptions | Yes | Teststep specific parameters |
Command Options
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
executable | string | Yes | The executable to run | |
args | []string | No | Arguments to pass to the executable | |
working_dir | string | No | The working directory to run the executable in | |
expect | []CommandExpectOptions | No | Expectations to check against the output of the executable | |
variable | string | No | The name of the variable to store stdout |
Command Expect Options
| Attribute | Type | Required | Description |
|---|---|---|---|
regex | string | Yes | Regular expression to match against the output of the executable |