blob: 32194415658f3d48f537e86a51024f2c7723e319 [file] [log] [blame]
Sushma M M0cfe0fd2020-08-31 03:18:54 -05001*** Settings ***
2
Rahul Maheshwari142642d2021-08-24 00:00:15 -05003Documentation Test OpenBMC GUI "Inventory and LEDs" sub-menu of "Hardware status" menu.
Sushma M M0cfe0fd2020-08-31 03:18:54 -05004
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Sushma M M0cfe0fd2020-08-31 03:18:54 -05006
Rahul Maheshwariea8a5312021-11-24 02:41:25 -06007Suite Setup Suite Setup Execution
Sushma M M0cfe0fd2020-08-31 03:18:54 -05008Suite Teardown Close Browser
Sushma M M0cfe0fd2020-08-31 03:18:54 -05009
10
11*** Variables ***
12
rramyasr-in209ef152022-06-14 04:07:38 -050013${xpath_inventory_and_leds_heading} //h1[text()="Inventory and LEDs"]
14${xpath_page_loading_progress_ba} //*[@aria-label='Page loading progress bar']
Sushma M M0cfe0fd2020-08-31 03:18:54 -050015*** Test Cases ***
16
Rahul Maheshwari142642d2021-08-24 00:00:15 -050017Verify Navigation To Inventory And LEDs Page
18 [Documentation] Verify navigation to inventory page.
19 [Tags] Verify_Navigation_To_Inventory_And_LEDs_Page
Sushma M M0cfe0fd2020-08-31 03:18:54 -050020
Rahul Maheshwari142642d2021-08-24 00:00:15 -050021 Page Should Contain Element ${xpath_inventory_and_leds_heading}
Sushma M M0cfe0fd2020-08-31 03:18:54 -050022
23
Rahul Maheshwari142642d2021-08-24 00:00:15 -050024Verify 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
Anusha Dathatri36ec5a62020-11-11 01:12:10 -060027
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
rramyasr-in6875a4a2021-12-05 22:37:13 -060035 Page Should Contain Assemblies
Rahul Maheshwari142642d2021-08-24 00:00:15 -050036
Sushma M M0cfe0fd2020-08-31 03:18:54 -050037*** Keywords ***
38
Rahul Maheshwariea8a5312021-11-24 02:41:25 -060039Suite Setup Execution
40 [Documentation] Do test suite setup tasks.
Sushma M M0cfe0fd2020-08-31 03:18:54 -050041
Rahul Maheshwariea8a5312021-11-24 02:41:25 -060042 Launch Browser And Login GUI
Rahul Maheshwari142642d2021-08-24 00:00:15 -050043 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
rramyasr-in209ef152022-06-14 04:07:38 -050046 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30