blob: 763ae29889af8672251dbf708b0f9c8d2cd02623 [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
Sushma M M1603ff92020-11-16 23:53:51 -060033Verify Existence Of All Sections In Reboot BMC Page
34 [Documentation] Verify Existence Of All Sections In Reboot BMC Page.
35 [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page
36
37 Page Should Contain Last BMC reboot
38
39
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050040*** Keywords ***
41
42Test Setup Execution
43 [Documentation] Do test case setup tasks.
44
45 Click Element ${xpath_control_menu}
46 Click Element ${xpath_reboot_bmc_sub_menu}
47 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc