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 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -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 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 8 | Suite Setup Login OpenBMC GUI with failure enable |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 9 | Suite Teardown Close Browser |
| 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 |
| 115 | Controller Server Power Click Button power__hard-shutdown |
| 116 | Controller Power Operations Confirmation Click Button ${power_operations} |
| 117 | ... ${power_off} ${confirm_msg} ${yes} |
| 118 | |
| 119 | Wait Until Page Contains Off |
| 120 | Wait Until Keyword Succeeds 6 min 10 sec Is Host Off |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 121 | |
| 122 | OpenBMC GUI Logoff |
Sivas SRR | f424885 | 2018-01-14 10:33:24 -0600 | [diff] [blame] | 123 | [Documentation] Log out from openBMC GUI. |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 124 | [Tags] OpenBMC_GUI_Logoff |
| 125 | |
| 126 | Log ${xpath_openbmc_url} |
| 127 | Log To Console ${xpath_openbmc_url} |
| 128 | Click Element header |
| 129 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 130 | *** Keywords *** |
| 131 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 132 | Login OpenBMC GUI with failure enable |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame^] | 133 | [Documentation] Login to the OpenBMC GUI with failure enabled. |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 134 | |
| 135 | Open Browser With URL ${xpath_openbmc_url} |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame^] | 136 | Login OpenBMC GUI ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |