Rahul Maheshwari | 5898f67 | 2019-10-24 00:23:20 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Manage power usage" 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_power_cap_toggle_button} //*[@class="toggle-container"] |
| 15 | |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | |
| 19 | Verify Existence Of All Sections In Manage Power Usage Page |
| 20 | [Documentation] Verify existence of all sections in manage power usage page. |
| 21 | [Tags] Verify_Existence_Of_All_Sections_In_Manage_Power_Usage_Page |
| 22 | |
| 23 | Page Should Contain Power information |
| 24 | Page Should Contain Server power cap setting |
| 25 | |
| 26 | |
| 27 | Verify Existence Of All Buttons In Manage Power Usage Page |
| 28 | [Documentation] Verify existence of all buttons in manage power usage page. |
| 29 | [Tags] Verify_Existence_Of_All_Buttons_In_Manage_Power_Usage_Page |
| 30 | |
| 31 | Page Should Contain Element ${xpath_power_cap_toggle_button} |
| 32 | Page Should Contain Element ${xpath_save_setting_button} |
| 33 | Page Should Contain Element ${xpath_cancel_button} |
| 34 | |
| 35 | |
| 36 | *** Keywords *** |
| 37 | |
| 38 | Test Setup Execution |
| 39 | [Documentation] Do test case setup tasks. |
| 40 | |
| 41 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 42 | Click Element ${xpath_select_server_control} |
| 43 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 44 | Click Element ${xpath_select_manage_power_usage} |
| 45 | Wait Until Page Contains Manage Power Usage |