Automation

Test automation and control flow commands.

Robot Test Framework

Execute Robot Framework test suites.

AttributeTypeRequiredDefaultDescription
cmdconstYesrobotCommand Name
namestringYesName to uniquely identify the teststep. This name will show up in reports, logs and the WebUI
transportTransportObjectYesAdditional transport options
optionsOptionsObjectNoAdditional command options
parametersRobot OptionsYesOptions passed into the robot cmd

Robot Options

AttributeTypeRequiredDefaultDescription
file_pathstringYesPath to the robot test file.
args[]stringNoArguments to pass to the robot test file.
report_onlybooleanNofalseIf 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.

AttributeTypeRequiredDefaultDescription
cmdconstYessleep
namestringYesName to uniquely identify the teststep. This name will show up in reports, logs and the WebUI
parametersSleepOptionsYesOptions passed into the sleep cmd

Sleep Options

AttributeTypeRequiredDefaultDescription
durationstringYesDuration to sleep. Format: 1h2m3s. Units: h, m, s.

Sleep Example

cmd: sleep
name: Wait for the DUT to settle
parameters:
  duration: 15s