Rahul Maheshwari | 9b1b4a8 | 2019-10-29 01:34:02 -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 OpenBMC GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
| 14 | ${xpath_reboot_bmc_button} //button[text()[contains(.,"Reboot BMC")]] |
| 15 | |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | |
| 19 | Verify Existence Of All Sections In Reboot BMC Page |
| 20 | [Documentation] Verify existence of all sections in reboot BMC page. |
| 21 | [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page |
| 22 | |
| 23 | Page Should Contain Current BMC boot status |
| 24 | |
| 25 | |
| 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 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 39 | Click Element ${xpath_select_server_control} |
| 40 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 41 | Click Element ${xpath_select_reboot_bmc} |
| 42 | Wait Until Page Contains Reboot BMC |