Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Server LED" sub-menu of "Server control". |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 14 | ${xpath_server_led_heading} //h1[text()="Server LED"] |
Sushma M M | bd9948c | 2020-08-24 05:34:57 -0500 | [diff] [blame] | 15 | ${xpath_led_value} //*[@data-test-id='serverLed-checkbox-switchIndicatorLed']/following-sibling::label/span |
| 16 | ${xpath_overview_led_value} //*[@data-test-id='overviewQuickLinks-checkbox-serverLed']/following-sibling::label/span |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 17 | |
| 18 | *** Test Cases *** |
| 19 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 20 | Verify Navigation To Server LED Page |
| 21 | [Documentation] Verify navigation to server LED page. |
| 22 | [Tags] Verify_Navigation_To_Server_LED_Page |
| 23 | |
| 24 | Page Should Contain Element ${xpath_server_led_heading} |
| 25 | |
| 26 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 27 | Verify Existence Of All Sections In Server LED Page |
| 28 | [Documentation] Verify existence of all sections in Server LED page. |
| 29 | [Tags] Verify_Existence_Of_All_Sections_In_Server_LED_Page |
| 30 | |
| 31 | Page Should Contain LED light control |
| 32 | |
| 33 | |
Sushma M M | bd9948c | 2020-08-24 05:34:57 -0500 | [diff] [blame] | 34 | Verify Server Led Sync With Overview Page LED Status |
| 35 | [Documentation] Verify server LED sync with overview page LED status. |
| 36 | [Tags] Verify_Server_Led_Sync_With_Overview_Page_LED_Status |
| 37 | |
| 38 | ${gui_led_value} = Get Text ${xpath_led_value} |
| 39 | Click Element ${xpath_overview_menu} |
| 40 | ${overview_led_value} = Get Text ${xpath_overview_led_value} |
| 41 | |
| 42 | Should Be Equal ${gui_led_value} ${overview_led_value} |
| 43 | |
| 44 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 45 | *** Keywords *** |
| 46 | |
| 47 | Test Setup Execution |
| 48 | [Documentation] Do test case setup tasks. |
| 49 | |
| 50 | Click Element ${xpath_control_menu} |
| 51 | Click Element ${xpath_server_led_sub_menu} |
| 52 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain server-led |