Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Hardware status" sub-menu of "Server health". |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Launch Browser And Login OpenBMC GUI |
Rahul Maheshwari | 43333ff | 2018-11-26 23:18:36 -0600 | [diff] [blame] | 8 | Suite Teardown Close Browser |
Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | *** Variables *** |
Sivas SRR | 8c38c6c | 2018-05-04 05:48:56 -0500 | [diff] [blame] | 12 | |
Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 13 | ${xpath_select_server_health} //*[@id="nav__top-level"]/li[2]/button |
| 14 | ${xpath_select_hardware_status} //a[@href='#/server-health/inventory-overview'] |
Rahul Maheshwari | 2f8aaa0 | 2018-11-29 00:23:09 -0600 | [diff] [blame] | 15 | ${xpath_inventory_export} //a[contains(text(), "Export")] |
Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 16 | ${xpath_inventory_search} //*[@id="content__search-input"] |
| 17 | ${xpath_inventory_search_button} //*[@id="content__search-submit"] |
Rahul Maheshwari | 2f8aaa0 | 2018-11-29 00:23:09 -0600 | [diff] [blame] | 18 | ${xpath_inventory_search_text_clear} //button[@class='clear-input'] |
Sivas SRR | 8c38c6c | 2018-05-04 05:48:56 -0500 | [diff] [blame] | 19 | ${xpath_bmc_expand} //*[@id="inventory-categories"]/div[5]/button |
| 20 | ${xpath_system_expand} //*[@id="inventory-categories"]/div[2]/button |
| 21 | ${xpath_motherboard_expand} //*[@id="inventory-categories"]/div[4]/button |
| 22 | ${xpath_chassis_expand} //*[@id="inventory-categories"]/div[3]/button |
Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 23 | |
| 24 | *** Test Cases *** |
Sivas SRR | 8c38c6c | 2018-05-04 05:48:56 -0500 | [diff] [blame] | 25 | |
Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 26 | Verify 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 | |
| 35 | Verify 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 SRR | 8c38c6c | 2018-05-04 05:48:56 -0500 | [diff] [blame] | 43 | |
Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 44 | Verify 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 SRR | 8c38c6c | 2018-05-04 05:48:56 -0500 | [diff] [blame] | 55 | |
| 56 | Verify 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 | |
| 68 | Verify 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} |
| 77 | ${xpath_bmc_expand} |
| 78 | ${xpath_motherboard_expand} |
| 79 | |
Sivas SRR | dccfd25 | 2018-04-22 09:39:18 -0500 | [diff] [blame] | 80 | *** Keywords *** |
| 81 | |
| 82 | Test 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 SRR | 8c38c6c | 2018-05-04 05:48:56 -0500 | [diff] [blame] | 89 | |
| 90 | Verify 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} |
| 98 | Click Element ${xpath_hardware_item} |