blob: 61ee371e43d2d6f838f8af61f821d05e62effc36 [file] [log] [blame]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05001*** Settings ***
2
Rahul Maheshwari142642d2021-08-24 00:00:15 -05003Documentation Test OpenBMC GUI "Reboot BMC" sub-menu of "Operation" menu.
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05004
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05006
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')]
Sushma M M03e13242020-11-17 23:17:22 -060016${xpath_reboot_cancel_button} //button[contains(text(),'Cancel')]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050017
18*** Test Cases ***
19
Rahul Maheshwari317c7102020-08-30 21:10:22 -050020Verify Navigation To Reboot BMC Page
21 [Documentation] Verify navigation to reboot BMC page.
22 [Tags] Verify_Navigation_To_Reboot_BMC_Page
23
24 Page Should Contain Element ${xpath_reboot_bmc_heading}
25
26
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050027Verify 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
Sushma M M1603ff92020-11-16 23:53:51 -060034Verify Existence Of All Sections In Reboot BMC Page
35 [Documentation] Verify Existence Of All Sections In Reboot BMC Page.
36 [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page
37
38 Page Should Contain Last BMC reboot
39
40
Sushma M M03e13242020-11-17 23:17:22 -060041Verify Canceling Operation On BMC Reboot Operation
42 [Documentation] Verify Canceling Operation On BMC Reboot operation
43 [Tags] Verify_Canceling_Operation_On_BMC_Reboot_Operation
44
45 Click Element ${xpath_reboot_bmc_button}
46 Click Element ${xpath_reboot_cancel_button}
47 Wait Until Element Is Not Visible ${xpath_reboot_cancel_button} timeout=15
48
49
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050050*** Keywords ***
51
52Test Setup Execution
53 [Documentation] Do test case setup tasks.
54
Rahul Maheshwari142642d2021-08-24 00:00:15 -050055 Click Element ${xpath_operations_menu}
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050056 Click Element ${xpath_reboot_bmc_sub_menu}
57 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc