1*** 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 8Suite Teardown Close Browser 9Test Setup Test Setup Execution 10 11Test Tags OBMC_GUI_Hardware_Status 12 13*** Variables *** 14 15${xpath_select_server_health} //*[@id="nav__top-level"]/li[2]/button 16${xpath_select_hardware_status} //a[@href='#/server-health/inventory-overview'] 17${xpath_inventory_export} //a[contains(text(), "Export")] 18${xpath_inventory_search} //*[@id="content__search-input"] 19${xpath_inventory_search_button} //*[@id="content__search-submit"] 20${xpath_inventory_search_text_clear} //*[@aria-label='clear filter'] 21${xpath_bmc_expand} //*[text()="bmc"]//following::button[1] 22${xpath_system_expand} //*[text()="system"]//following::button[1] 23${xpath_motherboard_expand} //*[text()="motherboard"]//following::button[1] 24${xpath_chassis_expand} //*[text()="chassis"]//following::button[1] 25 26*** Test Cases *** 27 28Verify Select Health Status From Server Health 29 [Documentation] Verify ability to select "Hardware status" sub-menu option 30 ... of "Server health". 31 [Tags] Verify_Select_Health_Status_From_Server_Health 32 33 Wait Until Page Contains Hardware status 34 Page should contain All hardware in the system 35 36 37Verify Inventory Export From Server Health Clickable 38 [Documentation] Verify ability to export inventory from "Hardware status" 39 ... sub-menu. 40 [Tags] Verify_Inventory_Export_From_Server_Health_Clickable 41 42 Page Should Contain Element ${xpath_inventory_export} 43 Click Element ${xpath_inventory_export} 44 45 46Verify Search Text Enterable 47 [Documentation] Verify search text input allowed from "Hardware status" 48 ... sub-menu. 49 [Tags] Verify_Search_Text_Enterable 50 51 Page Should Contain Element ${xpath_inventory_search} 52 Input Text ${xpath_inventory_search} fan 53 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 54 Page Should Contain Element ${xpath_inventory_search_button} 55 Click Element ${xpath_inventory_search_button} 56 57 58Verify Search Text Clearable 59 [Documentation] Verify search text allowed to clear from "Hardware status" 60 ... sub-menu. 61 [Tags] Verify_Search_Text_Clearable 62 63 Page Should Contain Element ${xpath_inventory_search} 64 Input Text ${xpath_inventory_search} fan 65 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 66 Page Should Contain Element ${xpath_inventory_search_text_clear} 67 Click Element ${xpath_inventory_search_text_clear} 68 69 70Verify System Inventory Expand 71 [Documentation] Verify system inventory icon expandable from 72 ... "Hardware status" sub-menu. 73 [Tags] Verify_System_Inventory_Expand 74 [Template] Verify Hardware Inventory Expand 75 76 # xpath_hardware_item 77 ${xpath_system_expand} 78 ${xpath_chassis_expand} 79 ${xpath_motherboard_expand} 80 ${xpath_bmc_expand} 81 82*** Keywords *** 83 84Test Setup Execution 85 [Documentation] Do test case setup tasks. 86 87 Click Element ${xpath_select_server_health} 88 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 89 Click Element ${xpath_select_hardware_status} 90 91 92Verify Hardware Inventory Expand 93 [Documentation] Verify expand individual hardware inventory item. 94 [Arguments] ${xpath_hardware_item} 95 96 # Description of argument(s): 97 # xpath_hardware_item Hardware inventory item to be expand. e.g. fan. 98 99 Page Should Contain Element ${xpath_hardware_item} 100 Click Button ${xpath_hardware_item} 101