xref: /openbmc/openbmc-test-automation/gui/test/server_control/test_obmc_gui_reboot_bmc.robot (revision feb79d60e26d78a6e91521ee41b1af5b8ba71f4c)
1*** Settings ***
2
3Documentation  Test OpenBMC GUI "Reboot BMC" sub-menu of "Server control".
4
5Resource        ../../lib/resource.robot
6
7Suite Setup     Launch Browser And Login OpenBMC GUI
8Suite Teardown  Close Browser
9Test Setup      Test Setup Execution
10
11Test Tags       OBMC_GUI_Reboot_BMC
12
13*** Variables ***
14
15${xpath_reboot_bmc_button}  //button[text()[contains(.,"Reboot BMC")]]
16
17
18*** Test Cases ***
19
20Verify Existence Of All Sections In Reboot BMC Page
21    [Documentation]  Verify existence of all sections in reboot BMC page.
22    [Tags]  Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page
23
24    Page Should Contain  Current BMC boot status
25
26
27Verify Existence Of All Buttons In Reboot BMC Page
28    [Documentation]  Verify existence of all buttons in reboot BMC page.
29    [Tags]  Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page
30
31    Page Should Contain Element  ${xpath_reboot_bmc_button}
32
33
34*** Keywords ***
35
36Test Setup Execution
37    [Documentation]  Do test case setup tasks.
38
39    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
40    Click Element  ${xpath_select_server_control}
41    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
42    Click Element  ${xpath_select_reboot_bmc}
43    Wait Until Page Contains  Reboot BMC
44