Execution
Execute arbitrary commands on target systems.
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 |
report_only | boolean | No | false | If set to true, the teststep will not validate the output against any expected values, thus never fail |
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 |
Command Example
cmd: cmd
name: Run echo test
transport: *transport
options:
timeout: 20m
parameters:
executable: "echo"
args:
- "Hello World!"
expect:
- regex: "Hello World!"
variable: helloWorldVar