blob: 898d0df315d8668c7ffb158cbe3e75eb586d39c7 [file] [log] [blame]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05001*** 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 GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13
Rahul Maheshwari317c7102020-08-30 21:10:22 -050014${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050015${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')]
16
17*** Test Cases ***
18
Rahul Maheshwari317c7102020-08-30 21:10:22 -050019Verify Navigation To Reboot BMC Page
20 [Documentation] Verify navigation to reboot BMC page.
21 [Tags] Verify_Navigation_To_Reboot_BMC_Page
22
23 Page Should Contain Element ${xpath_reboot_bmc_heading}
24
25
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050026Verify Existence Of All Buttons In Reboot BMC Page
27 [Documentation] Verify existence of all buttons in reboot BMC page.
28 [Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page
29
30 Page Should Contain Element ${xpath_reboot_bmc_button}
31
32
33*** Keywords ***
34
35Test Setup Execution
36 [Documentation] Do test case setup tasks.
37
38 Click Element ${xpath_control_menu}
39 Click Element ${xpath_reboot_bmc_sub_menu}
40 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc