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 | |
Sushma M M | bd9948c | 2020-08-24 05:34:57 -0500 | [diff] [blame] | 14 | ${xpath_led_value} //*[@data-test-id='serverLed-checkbox-switchIndicatorLed']/following-sibling::label/span |
| 15 | ${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] | 16 | |
| 17 | *** Test Cases *** |
| 18 | |
| 19 | Verify Existence Of All Sections In Server LED Page |
| 20 | [Documentation] Verify existence of all sections in Server LED page. |
| 21 | [Tags] Verify_Existence_Of_All_Sections_In_Server_LED_Page |
| 22 | |
| 23 | Page Should Contain LED light control |
| 24 | |
| 25 | |
Sushma M M | bd9948c | 2020-08-24 05:34:57 -0500 | [diff] [blame] | 26 | Verify Server Led Sync With Overview Page LED Status |
| 27 | [Documentation] Verify server LED sync with overview page LED status. |
| 28 | [Tags] Verify_Server_Led_Sync_With_Overview_Page_LED_Status |
| 29 | |
| 30 | ${gui_led_value} = Get Text ${xpath_led_value} |
| 31 | Click Element ${xpath_overview_menu} |
| 32 | ${overview_led_value} = Get Text ${xpath_overview_led_value} |
| 33 | |
| 34 | Should Be Equal ${gui_led_value} ${overview_led_value} |
| 35 | |
| 36 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 37 | *** Keywords *** |
| 38 | |
| 39 | Test Setup Execution |
| 40 | [Documentation] Do test case setup tasks. |
| 41 | |
| 42 | Click Element ${xpath_control_menu} |
| 43 | Click Element ${xpath_server_led_sub_menu} |
| 44 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain server-led |