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 | |
| 5 | Resource ../../lib/resource.robot |
| 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')] |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 19 | Verify 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 Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 26 | Verify 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 | |
| 35 | Test 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 |