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