blob: 9469ceb4e7ea6f08ef052cf2f5270765a5fce6a5 [file] [log] [blame]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Server LED" sub-menu of "Server control".
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13
Sushma M Mbd9948c2020-08-24 05:34:57 -050014${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 Maheshwari1e18bb62020-07-07 00:45:50 -050016
17*** Test Cases ***
18
19Verify 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 Mbd9948c2020-08-24 05:34:57 -050026Verify 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 Maheshwari1e18bb62020-07-07 00:45:50 -050037*** Keywords ***
38
39Test 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