blob: 1cb457d5e9a519f6b46c80340881abfb0924890c [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
George Keishing0302e9a2023-10-12 21:48:35 +053010Force Tags Inventory_And_Leds_Sub_Menu
Sushma M M0cfe0fd2020-08-31 03:18:54 -050011
12*** Variables ***
13
rramyasr-in209ef152022-06-14 04:07:38 -050014${xpath_inventory_and_leds_heading} //h1[text()="Inventory and LEDs"]
rramyasr-inb9fe2382022-08-11 02:34:03 -050015${xpath_page_loading_progress_bar} //*[@aria-label='Page loading progress bar']
16
Sushma M M0cfe0fd2020-08-31 03:18:54 -050017*** Test Cases ***
18
Rahul Maheshwari142642d2021-08-24 00:00:15 -050019Verify Navigation To Inventory And LEDs Page
20 [Documentation] Verify navigation to inventory page.
21 [Tags] Verify_Navigation_To_Inventory_And_LEDs_Page
Sushma M M0cfe0fd2020-08-31 03:18:54 -050022
Rahul Maheshwari142642d2021-08-24 00:00:15 -050023 Page Should Contain Element ${xpath_inventory_and_leds_heading}
Sushma M M0cfe0fd2020-08-31 03:18:54 -050024
25
Rahul Maheshwari142642d2021-08-24 00:00:15 -050026Verify Components On Inventory And LEDs Page
27 [Documentation] Verify whether required components are displayed under inventory and LEDs page.
28 [Tags] Verify_Components_On_Inventory_And_LEDs_Page
rramyasr-in97980162022-10-31 09:16:14 -050029 [Template] Page Should Contain
Anusha Dathatri36ec5a62020-11-11 01:12:10 -060030
rramyasr-in97980162022-10-31 09:16:14 -050031 # Check all the hardware component are available.
32
33 System indicators
34 Chassis
35 System
36 BMC manager
37 DIMM slot
38 Fans
39 Power supplies
40 Processors
41 Assemblies
42 PCIe slots
43 Fabric Adapters
44
Rahul Maheshwari142642d2021-08-24 00:00:15 -050045
Sushma M M0cfe0fd2020-08-31 03:18:54 -050046*** Keywords ***
47
Rahul Maheshwariea8a5312021-11-24 02:41:25 -060048Suite Setup Execution
49 [Documentation] Do test suite setup tasks.
Sushma M M0cfe0fd2020-08-31 03:18:54 -050050
Rahul Maheshwariea8a5312021-11-24 02:41:25 -060051 Launch Browser And Login GUI
Rahul Maheshwari142642d2021-08-24 00:00:15 -050052 Click Element ${xpath_hardware_status_menu}
53 Click Element ${xpath_inventory_and_leds_sub_menu}
54 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain inventory
rramyasr-in209ef152022-06-14 04:07:38 -050055 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30