1*** Settings ***
2Documentation  Main initialization file for the test cases contained in this
3...            directory and setting up the test environment variables.
4
5Resource          lib/resource.robot
6Suite Setup       Initializing Setup
7Suite Teardown    Init Teardown Steps
8
9*** Keywords ***
10Initializing Setup
11    [Documentation]  Initialize test environment.
12
13    Get OpenBMC System Info
14    Launch OpenBMC GUI Browser
15    Login OpenBMC GUI
16    Initial Message
17    LogOut OpenBMC GUI
18
19Initial Message
20    [Documentation]  Display initial info about the test cases.
21
22    Rpvars  EXECDIR
23    Rprint Timen  OBMC_GUI Testing ==> [IN PROGRESS]
24    Print Dashes  0  100  1  =
25
26Get OpenBMC System Info
27    [Documentation]  Display open BMC system info like system name and IP.
28
29    ${OPENBMC_HOST_NAME}=  Get Hostname From IP Address  ${OPENBMC_HOST}
30    Rpvars  OPENBMC_HOST  OPENBMC_HOST_NAME
31    ${build_info}  ${stderr}  ${rc}=  BMC Execute Command  cat /etc/os-release
32    ...  print_output=1
33    Print Dashes  0  100  1  =
34
35Init Teardown Steps
36    [Documentation]  End the test execution by closing browser.
37
38    Print Timen  OBMC_GUI Testing ==> [Finished]
39    Print Dashes  0  100  1  =
40    Close Browser
41