1*** Settings ***
2
3Documentation   Test OpenBMC GUI "Inventory and LEDs" sub-menu of "Hardware status" menu.
4
5Resource        ../../lib/gui_resource.robot
6
7Suite Setup     Suite Setup Execution
8Suite Teardown  Close Browser
9
10
11*** Variables ***
12
13${xpath_inventory_and_leds_heading}  //h1[text()="Inventory and LEDs"]
14
15*** Test Cases ***
16
17Verify Navigation To Inventory And LEDs Page
18    [Documentation]  Verify navigation to inventory page.
19    [Tags]  Verify_Navigation_To_Inventory_And_LEDs_Page
20
21    Page Should Contain Element  ${xpath_inventory_and_leds_heading}
22
23
24Verify Components On Inventory And LEDs Page
25    [Documentation]  Verify whether required components are displayed under inventory and LEDs page.
26    [Tags]  Verify_Components_On_Inventory_And_LEDs_Page
27
28    Page Should Contain  System
29    Page Should Contain  BMC manager
30    Page Should Contain  Chassis
31    Page Should Contain  DIMM slot
32    Page Should Contain  Fans
33    Page Should Contain  Power supplies
34    Page Should Contain  Processors
35
36
37*** Keywords ***
38
39Suite Setup Execution
40    [Documentation]  Do test suite setup tasks.
41
42    Launch Browser And Login GUI
43    Click Element  ${xpath_hardware_status_menu}
44    Click Element  ${xpath_inventory_and_leds_sub_menu}
45    Wait Until Keyword Succeeds  30 sec  5 sec  Location Should Contain  inventory
46