blob: 21a0b1149ee5729a88a9e27c0e6f4b17c4f682df [file] [log] [blame]
Sivas SRRdccfd252018-04-22 09:39:18 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Hardware status" sub-menu of "Server health".
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login OpenBMC GUI
Rahul Maheshwari43333ff2018-11-26 23:18:36 -06008Suite Teardown Close Browser
Sivas SRRdccfd252018-04-22 09:39:18 -05009Test Setup Test Setup Execution
10
11*** Variables ***
Sivas SRR8c38c6c2018-05-04 05:48:56 -050012
Sivas SRRdccfd252018-04-22 09:39:18 -050013${xpath_select_server_health} //*[@id="nav__top-level"]/li[2]/button
14${xpath_select_hardware_status} //a[@href='#/server-health/inventory-overview']
Rahul Maheshwari2f8aaa02018-11-29 00:23:09 -060015${xpath_inventory_export} //a[contains(text(), "Export")]
Sivas SRRdccfd252018-04-22 09:39:18 -050016${xpath_inventory_search} //*[@id="content__search-input"]
17${xpath_inventory_search_button} //*[@id="content__search-submit"]
Anusha Dathatri96aef1f2019-09-30 02:33:33 -050018${xpath_inventory_search_text_clear} //*[@aria-label='clear filter']
Anusha Dathatri7970f3c2019-09-06 02:30:26 -050019${xpath_bmc_expand} //*[text()="bmc"]//following::button[1]
20${xpath_system_expand} //*[text()="system"]//following::button[1]
21${xpath_motherboard_expand} //*[text()="motherboard"]//following::button[1]
22${xpath_chassis_expand} //*[text()="chassis"]//following::button[1]
Sivas SRRdccfd252018-04-22 09:39:18 -050023
24*** Test Cases ***
Sivas SRR8c38c6c2018-05-04 05:48:56 -050025
Sivas SRRdccfd252018-04-22 09:39:18 -050026Verify Select Health Status From Server Health
27 [Documentation] Verify ability to select "Hardware status" sub-menu option
28 ... of "Server health".
29 [Tags] Verify_Select_Health_Status_From_Server_Health
30
31 Wait Until Page Contains Hardware status
32 Page should contain All hardware in the system
33
34
35Verify Inventory Export From Server Health Clickable
36 [Documentation] Verify ability to export inventory from "Hardware status"
37 ... sub-menu.
38 [Tags] Verify_Inventory_Export_From_Server_Health_Clickable
39
40 Page Should Contain Element ${xpath_inventory_export}
41 Click Element ${xpath_inventory_export}
42
Sivas SRR8c38c6c2018-05-04 05:48:56 -050043
Sivas SRRdccfd252018-04-22 09:39:18 -050044Verify Search Text Enterable
45 [Documentation] Verify search text input allowed from "Hardware status"
46 ... sub-menu.
47 [Tags] Verify_Search_Text_Enterable
48
49 Page Should Contain Element ${xpath_inventory_search}
50 Input Text ${xpath_inventory_search} fan
51 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
52 Page Should Contain Element ${xpath_inventory_search_button}
53 Click Element ${xpath_inventory_search_button}
54
Sivas SRR8c38c6c2018-05-04 05:48:56 -050055
56Verify Search Text Clearable
57 [Documentation] Verify search text allowed to clear from "Hardware status"
58 ... sub-menu.
59 [Tags] Verify_Search_Text_Clearable
60
61 Page Should Contain Element ${xpath_inventory_search}
62 Input Text ${xpath_inventory_search} fan
63 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
64 Page Should Contain Element ${xpath_inventory_search_text_clear}
65 Click Element ${xpath_inventory_search_text_clear}
66
67
68Verify System Inventory Expand
69 [Documentation] Verify system inventory icon expandable from
70 ... "Hardware status" sub-menu.
71 [Tags] Verify_System_Inventory_Expand
72 [Template] Verify Hardware Inventory Expand
73
74 # xpath_hardware_item
75 ${xpath_system_expand}
76 ${xpath_chassis_expand}
Sivas SRR8c38c6c2018-05-04 05:48:56 -050077 ${xpath_motherboard_expand}
Anusha Dathatri7970f3c2019-09-06 02:30:26 -050078 ${xpath_bmc_expand}
Sivas SRR8c38c6c2018-05-04 05:48:56 -050079
Sivas SRRdccfd252018-04-22 09:39:18 -050080*** Keywords ***
81
82Test Setup Execution
83 [Documentation] Do test case setup tasks.
84
85 Click Element ${xpath_select_server_health}
86 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
87 Click Element ${xpath_select_hardware_status}
88
Sivas SRR8c38c6c2018-05-04 05:48:56 -050089
90Verify Hardware Inventory Expand
91 [Documentation] Verify expand individual hardware inventory item.
92 [Arguments] ${xpath_hardware_item}
93
94 # Description of argument(s):
95 # xpath_hardware_item Hardware inventory item to be expand. e.g. fan.
96
97 Page Should Contain Element ${xpath_hardware_item}
Anusha Dathatri7970f3c2019-09-06 02:30:26 -050098 Click Button ${xpath_hardware_item}