blob: 31c70c3f190f96befdf315c2858e2afcadcc50c9 [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"]
rramyasr-inb9fe2382022-08-11 02:34:03 -050014${xpath_page_loading_progress_bar} //*[@aria-label='Page loading progress bar']
15
Sushma M M0cfe0fd2020-08-31 03:18:54 -050016*** Test Cases ***
17
Rahul Maheshwari142642d2021-08-24 00:00:15 -050018Verify Navigation To Inventory And LEDs Page
19 [Documentation] Verify navigation to inventory page.
20 [Tags] Verify_Navigation_To_Inventory_And_LEDs_Page
Sushma M M0cfe0fd2020-08-31 03:18:54 -050021
Rahul Maheshwari142642d2021-08-24 00:00:15 -050022 Page Should Contain Element ${xpath_inventory_and_leds_heading}
Sushma M M0cfe0fd2020-08-31 03:18:54 -050023
24
Rahul Maheshwari142642d2021-08-24 00:00:15 -050025Verify Components On Inventory And LEDs Page
26 [Documentation] Verify whether required components are displayed under inventory and LEDs page.
27 [Tags] Verify_Components_On_Inventory_And_LEDs_Page
rramyasr-in97980162022-10-31 09:16:14 -050028 [Template] Page Should Contain
Anusha Dathatri36ec5a62020-11-11 01:12:10 -060029
rramyasr-in97980162022-10-31 09:16:14 -050030 # Check all the hardware component are available.
31
32 System indicators
33 Chassis
34 System
35 BMC manager
36 DIMM slot
37 Fans
38 Power supplies
39 Processors
40 Assemblies
41 PCIe slots
42 Fabric Adapters
43
Rahul Maheshwari142642d2021-08-24 00:00:15 -050044
Sushma M M0cfe0fd2020-08-31 03:18:54 -050045*** Keywords ***
46
Rahul Maheshwariea8a5312021-11-24 02:41:25 -060047Suite Setup Execution
48 [Documentation] Do test suite setup tasks.
Sushma M M0cfe0fd2020-08-31 03:18:54 -050049
Rahul Maheshwariea8a5312021-11-24 02:41:25 -060050 Launch Browser And Login GUI
Rahul Maheshwari142642d2021-08-24 00:00:15 -050051 Click Element ${xpath_hardware_status_menu}
52 Click Element ${xpath_inventory_and_leds_sub_menu}
53 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain inventory
rramyasr-in209ef152022-06-14 04:07:38 -050054 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30