blob: 765f2a414f29ada20a9952e1a9b6ba08a5b6f1e6 [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
Rahul Maheshwari317c7102020-08-30 21:10:22 -050014${xpath_server_led_heading} //h1[text()="Server LED"]
Sushma M Mbd9948c2020-08-24 05:34:57 -050015${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 Maheshwari1e18bb62020-07-07 00:45:50 -050017
18*** Test Cases ***
19
Rahul Maheshwari317c7102020-08-30 21:10:22 -050020Verify 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 Maheshwari1e18bb62020-07-07 00:45:50 -050027Verify 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 Mbd9948c2020-08-24 05:34:57 -050034Verify 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 Maheshwari1e18bb62020-07-07 00:45:50 -050045*** Keywords ***
46
47Test 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