Files
2025-01-16 22:01:09 +01:00

48 lines
1.9 KiB
Plaintext

*** Settings ***
Documentation This suite verifies the correct operation of keywords
... getting and setting state of numerical options.
Library Collections
Library OperatingSystem
Library Process
Library String
Library Telnet timeout=30 seconds connection_timeout=120 seconds
Library SSHLibrary timeout=90 seconds
Library RequestsLibrary
# TODO: maybe have a single file to include if we need to include the same
# stuff in all test cases
Resource ../variables.robot
Resource ../keywords.robot
Resource ../keys.robot
# TODO:
# - document which setup/teardown keywords to use and what are they doing
# - go threough them and make sure they are doing what the name suggest (not
# exactly the case right now)
Suite Setup Run Keyword
... Prepare Test Suite
Suite Teardown Run Keyword
... Log Out And Close Connection
*** Test Cases ***
Set numerical option
[Documentation] Checks whether the numerical option can be set.
Skip If not ${DASHARO_CHIPSET_MENU_SUPPORT}
Power On
${setup_menu}= Enter Setup Menu Tianocore And Return Construction
${boot_manager}= Enter Submenu From Snapshot And Return Construction
... ${setup_menu}
... Boot Maintenance Manager
Set Option State ${boot_manager} Auto Boot Time-out 5
Save Changes And Reset
${setup_menu}= Enter Setup Menu Tianocore And Return Construction
${boot_manager}= Enter Submenu From Snapshot And Return Construction
... ${setup_menu}
... Boot Maintenance Manager
Set Option State ${boot_manager} Auto Boot Time-out 5
${state}= Get Option State ${boot_manager} Auto Boot Time-out
Log ${state}
Should Be Equal As Integers ${state} 5