Automation
Test automation and control flow commands.
Robot Test Framework
Execute Robot Framework test suites.
| Attribute | Type | Required | Default | Description |
|---|
cmd | const | Yes | robot | Command Name |
name | string | Yes | | Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI |
transport | TransportObject | Yes | | Additional transport options |
options | OptionsObject | No | | Additional command options |
parameters | Robot Options | Yes | | Options passed into the robot cmd |
Robot Options
| Attribute | Type | Required | Default | Description |
|---|
file_path | string | Yes | | Path to the robot test file. |
args | []string | No | | Arguments to pass to the robot test file. |
report_only | boolean | No | false | If true, the output won’t be validated. |
Robot Example
cmd: robot
name: Run OpenBMC Test Automation Setup Test
transport:
proto: local
parameters:
file_path: "[[storage.openbmc_test_auto]]/openbmc-test-automation/templates/test_openbmc_setup.robot"
args:
- "OPENBMC_HOST:[[attributes.Host]]"
- "OPENBMC_USERNAME:root"
- "OPENBMC_PASSWORD:root"
- "IPMI_USERNAME:root"
- "IPMI_PASSWORD:root"
- "REDFISH_SUPPORT_TRANS_STATE:1"
Sleep
Pause execution for a specified duration.
| Attribute | Type | Required | Default | Description |
|---|
cmd | const | Yes | sleep | |
name | string | Yes | | Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI |
parameters | SleepOptions | Yes | | Options passed into the sleep cmd |
Sleep Options
| Attribute | Type | Required | Default | Description |
|---|
duration | string | Yes | | Duration to sleep. Format: 1h2m3s. Units: h, m, s. |
Sleep Example
cmd: sleep
name: Wait for the DUT to settle
parameters:
duration: 15s