Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Reboot BMC" sub-menu of "Server control". |
| 4 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 14 | ${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"] |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 15 | ${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')] |
Sushma M M | 03e1324 | 2020-11-17 23:17:22 -0600 | [diff] [blame] | 16 | ${xpath_reboot_cancel_button} //button[contains(text(),'Cancel')] |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 17 | |
| 18 | *** Test Cases *** |
| 19 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 20 | Verify 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 Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 27 | Verify 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 M | 1603ff9 | 2020-11-16 23:53:51 -0600 | [diff] [blame] | 34 | Verify 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 M | 03e1324 | 2020-11-17 23:17:22 -0600 | [diff] [blame] | 41 | Verify 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 Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 50 | *** Keywords *** |
| 51 | |
| 52 | Test Setup Execution |
| 53 | [Documentation] Do test case setup tasks. |
| 54 | |
| 55 | Click Element ${xpath_control_menu} |
| 56 | Click Element ${xpath_reboot_bmc_sub_menu} |
| 57 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc |