Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test Open BMC GUI Power Operations under GUI Header. |
| 4 | |
Rahul Maheshwari | b89977a | 2019-02-05 00:21:48 -0600 | [diff] [blame] | 5 | Resource ../../../lib/state_manager.robot |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 6 | Resource ../../lib/resource.robot |
| 7 | |
Rahul Maheshwari | 62b045b | 2018-11-29 00:58:34 -0600 | [diff] [blame] | 8 | Test Setup Test Setup Execution |
Rahul Maheshwari | 2a674e2 | 2018-12-06 01:40:56 -0600 | [diff] [blame] | 9 | Test Teardown Close Browser |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 10 | |
| 11 | *** Test Cases *** |
| 12 | |
| 13 | Power On The Host |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 14 | [Documentation] Power on the host. |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 15 | [Tags] Power_On_the_Host |
| 16 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 17 | Expected Initial Test State Off |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 18 | GUI Power On |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 19 | Wait Until Keyword Succeeds 10 min 10 sec Is Host Running |
| 20 | Wait Until Page Contains Running |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 21 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 22 | Click Immediate Shutdown Then No |
| 23 | [Documentation] Click the "Immediate shutdown" button and then click the |
| 24 | ... "No" button. |
| 25 | [Tags] Click_Immediate_Shutdown_Then_No |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 26 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 27 | Expected Initial Test State Running |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 28 | Controller Server Power Click Button power__hard-shutdown |
| 29 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 30 | ... ${power_off} ${confirm_msg} ${no} |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 31 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 32 | Is Host Running |
| 33 | Wait Until Page Contains Running |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 34 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 35 | Click Cold Reboot Then No |
| 36 | [Documentation] Click the "Cold reboot" button and then click the "No" |
| 37 | ... button. |
| 38 | [Tags] Click_Cold_Reboot_Then_No |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 39 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 40 | Expected Initial Test State Running |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 41 | Controller Server Power Click Button power__cold-boot |
| 42 | Controller Power Operations Confirmation Click Button ${power_operations} |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 43 | ... ${cold_boot} ${confirm_msg} ${no} |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 44 | |
| 45 | Is Host Running |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 46 | Page Should Contain Running |
| 47 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 48 | Click Warm Reboot Then No |
| 49 | [Documentation] Click the "Warm reboot" button and then click the "No" |
| 50 | ... button. |
| 51 | [Tags] Click_Warm_Reboot_Then_No |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 52 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 53 | Expected Initial Test State Running |
| 54 | Controller Server Power Click Button power__warm-boot |
| 55 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 56 | ... ${warm_boot} ${confirm_msg} ${no} |
| 57 | Is Host Running |
| 58 | Page Should Contain Running |
| 59 | |
| 60 | Click Orderly Shutdown Then No |
| 61 | [Documentation] Click the "Orderly shutdown" button and then click the |
| 62 | ... "No" button. |
| 63 | [Tags] Click_Orderly_Shutdown_Then_No |
| 64 | |
| 65 | Expected Initial Test State Running |
| 66 | Controller Server Power Click Button power__soft-shutdown |
| 67 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 68 | ... ${shut_down} ${confirm_msg} ${no} |
| 69 | Wait Until Keyword Succeeds 10 min 10 sec Is Host Running |
| 70 | Page Should Contain Running |
| 71 | |
| 72 | Click Warm Reboot Then Yes |
| 73 | [Documentation] Click the "Warm reboot" button and then click the "Yes" |
| 74 | ... button. |
| 75 | [Tags] Click_Warm_Reboot_Then_Yes |
| 76 | |
| 77 | Expected Initial Test State Running |
| 78 | Controller Server Power Click Button power__warm-boot |
| 79 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 80 | ... ${warm_boot} ${confirm_msg} ${yes} |
| 81 | Wait Until Keyword Succeeds 10 min 10 sec Is Host Running |
| 82 | Page Should Contain Running |
| 83 | |
| 84 | Click Cold Reboot Then Yes |
| 85 | [Documentation] Click the "Cold reboot" button and then click the "Yes" |
| 86 | ... button. |
| 87 | [Tags] Click_Cold_Reboot_Then_Yes |
| 88 | |
| 89 | Expected Initial Test State Running |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 90 | Controller Server Power Click Button power__cold-boot |
| 91 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 92 | ... ${cold_boot} ${confirm_msg} ${yes} |
| 93 | Page Should Contain Standby |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 94 | Wait Until Keyword Succeeds 10 min 10 sec Is Host Running |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 95 | Page Should Contain Running |
| 96 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 97 | Click Orderly Shutdown Then Yes |
| 98 | [Documentation] Click the "Orderly shutdown" button and then click the |
| 99 | ... "Yes" button. |
| 100 | [Tags] Click_Orderly_Shutdown_Then_Yes |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 101 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 102 | Expected Initial Test State Running |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 103 | Controller Server Power Click Button power__soft-shutdown |
| 104 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 105 | ... ${shut_down} ${confirm_msg} ${yes} |
| 106 | Page Should Contain Off |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 107 | Wait Until Keyword Succeeds 6 min 10 sec Is Host Off |
| 108 | |
| 109 | Click Immediate Shutdown Then Yes |
| 110 | [Documentation] Click "Immediate shutdown" button and then click the "Yes" |
| 111 | ... button. |
| 112 | [Tags] Click_Immediate_Shutdown_Then_Yes |
| 113 | |
| 114 | Expected Initial Test State Running |
Rahul Maheshwari | 3a70d5f | 2018-12-10 05:14:09 -0600 | [diff] [blame] | 115 | |
| 116 | # By this time GUI logs out. So relaunching it. |
| 117 | Close Browser |
| 118 | Launch Browser And Login OpenBMC GUI |
| 119 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 120 | Controller Server Power Click Button power__hard-shutdown |
| 121 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 122 | ... ${power_off} ${confirm_msg} ${yes} |
| 123 | |
| 124 | Wait Until Page Contains Off |
| 125 | Wait Until Keyword Succeeds 6 min 10 sec Is Host Off |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 126 | |
| 127 | OpenBMC GUI Logoff |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 128 | [Documentation] Log out from openBMC GUI. |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 129 | [Tags] OpenBMC_GUI_Logoff |
| 130 | |
| 131 | Log ${xpath_openbmc_url} |
| 132 | Log To Console ${xpath_openbmc_url} |
| 133 | Click Element header |
| 134 | |
Rahul Maheshwari | 62b045b | 2018-11-29 00:58:34 -0600 | [diff] [blame] | 135 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 136 | *** Keywords *** |
| 137 | |
Rahul Maheshwari | 62b045b | 2018-11-29 00:58:34 -0600 | [diff] [blame] | 138 | Test Setup Execution |
| 139 | [Documentation] Do testcase setup tasks. |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 140 | |
Rahul Maheshwari | 2a674e2 | 2018-12-06 01:40:56 -0600 | [diff] [blame] | 141 | # Launch the GUI and navigate to server power page. |
| 142 | Launch Browser And Login OpenBMC GUI |
Rahul Maheshwari | 62b045b | 2018-11-29 00:58:34 -0600 | [diff] [blame] | 143 | Click Element ${xpath_select_server_power} |
| 144 | Wait Until Page Contains Server power operations |
Rahul Maheshwari | 2a674e2 | 2018-12-06 01:40:56 -0600 | [diff] [blame] | 145 | |