Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This is a resource file of OpenBMC ASMI It contains the |
| 3 | ... user-defined keywords which are available to all gui modules |
| 4 | |
| 5 | Library String |
| 6 | Library Collections |
| 7 | Library DateTime |
| 8 | Library XvfbRobot |
| 9 | Library OperatingSystem |
| 10 | Library Selenium2Library 120 120 |
| 11 | Library AngularJSLibrary |
| 12 | Library SSHLibrary 30 Seconds |
| 13 | Library Process |
| 14 | Library supporting_libs.py |
| 15 | Library ../../../lib/gen_print.py |
| 16 | Library ../../../lib/gen_robot_print.py |
| 17 | Library ../../../lib/gen_valid.py |
| 18 | Library ../../../lib/gen_robot_ssh.py |
| 19 | Library ../../../lib/bmc_ssh_utils.py |
| 20 | Resource ../../../lib/resource.txt |
| 21 | Resource ../../../lib/rest_client.robot |
| 22 | Resource ../../../lib/state_manager.robot |
| 23 | Variables ../data/resource_variables.py |
| 24 | |
| 25 | *** Variables *** |
Sivas SRR | c70e9ae | 2018-02-14 23:53:49 -0600 | [diff] [blame] | 26 | ${obmc_gui_url} https://${OPENBMC_HOST} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 27 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 28 | # Default Browser. |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 29 | ${default_browser} ff |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 30 | |
| 31 | ${obmc_PowerOff_state} Off |
| 32 | ${obmc_PowerRunning_state} Running |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 33 | ${obmc_PowerStandby_state} Standby |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 34 | |
| 35 | *** Keywords *** |
| 36 | Launch OpenBMC GUI Browser |
| 37 | [Documentation] Launch the OpenBMC GUI URL on a browser. |
| 38 | # By default uses headless mode, otherwise, the GUI browser. |
| 39 | |
| 40 | ${op_system}= Get Operating System |
| 41 | Run Keyword If '${op_system}' == 'windows' |
Sivas SRR | a011348 | 2018-02-22 22:27:05 -0600 | [diff] [blame] | 42 | ... Launch Header Browser |
| 43 | ... ELSE IF '${op_system}' == 'Darwin' |
| 44 | # Mac OS is currently having some issues with firefox, so using |
| 45 | # chrome. |
| 46 | # TODO: Need to add support for other browsers. Issue #1280. |
| 47 | ... Launch Header Browser chrome |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 48 | ... ELSE |
Sivas SRR | a011348 | 2018-02-22 22:27:05 -0600 | [diff] [blame] | 49 | # Linux OS. |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 50 | ... Launch Headless Browser |
| 51 | |
| 52 | Get Operating System |
| 53 | [Documentation] Identify platform/OS. |
| 54 | |
| 55 | ${curdir_lower_case}= Convert To Lowercase ${CURDIR} |
| 56 | ${windows_platform}= Run Keyword And Return Status |
| 57 | ... Should Contain ${curdir_lower_case} c:\ |
| 58 | ${op_system}= Run Keyword If '${windows_platform}' == 'True' |
Sivas SRR | a011348 | 2018-02-22 22:27:05 -0600 | [diff] [blame] | 59 | ... Set Variable windows |
| 60 | ... ELSE |
| 61 | ... Run uname |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 62 | [Return] ${op_system} |
| 63 | |
Sivas SRR | a011348 | 2018-02-22 22:27:05 -0600 | [diff] [blame] | 64 | Launch Header Browser |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 65 | [Documentation] Open the browser with the URL and |
| 66 | ... login on windows platform. |
Sivas SRR | a011348 | 2018-02-22 22:27:05 -0600 | [diff] [blame] | 67 | [Arguments] ${browser_type}=${default_browser} |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 68 | |
Sivas SRR | a011348 | 2018-02-22 22:27:05 -0600 | [diff] [blame] | 69 | # Description of argument(s): |
| 70 | # browser_type Type of browser (e.g. "firefox", "chrome", etc.). |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 71 | |
Sivas SRR | a011348 | 2018-02-22 22:27:05 -0600 | [diff] [blame] | 72 | ${BROWSER_ID}= Open Browser ${obmc_gui_url} ${browser_type} |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 73 | Maximize Browser Window |
| 74 | Set Global Variable ${BROWSER_ID} |
| 75 | |
| 76 | Launch Headless Browser |
| 77 | [Documentation] Launch headless browser. |
| 78 | |
| 79 | Start Virtual Display 1920 1080 |
Sivas SRR | c70e9ae | 2018-02-14 23:53:49 -0600 | [diff] [blame] | 80 | ${BROWSER_ID}= Open Browser ${obmc_gui_url} |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 81 | Set Global Variable ${BROWSER_ID} |
| 82 | Set Window Size 1920 1080 |
| 83 | |
| 84 | Login OpenBMC GUI |
| 85 | [Documentation] Perform login to open BMC GUI. |
| 86 | [Arguments] ${username}=${OPENBMC_USERNAME} |
| 87 | ... ${password}=${OPENBMC_PASSWORD} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 88 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 89 | # Description of argument(s): |
| 90 | # username The username. |
| 91 | # password The password. |
| 92 | |
Sivas SRR | c70e9ae | 2018-02-14 23:53:49 -0600 | [diff] [blame] | 93 | Go To ${obmc_gui_url} |
Sivas SRR | a692535 | 2018-02-19 08:59:03 -0600 | [diff] [blame] | 94 | Wait Until Element Is Enabled ${xpath_textbox_hostname} |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 95 | Input Text ${xpath_textbox_hostname} ${OPENBMC_HOST} |
| 96 | Input Text ${xpath_textbox_username} ${username} |
| 97 | Input Password ${xpath_textbox_password} ${password} |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 98 | Click Element login__submit |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 99 | Wait Until Element Is Enabled ${xpath_button_logout} |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 100 | Page Should Contain Server information |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 101 | |
| 102 | |
| 103 | Test Setup Execution |
| 104 | [Documentation] Verify all the preconditions to be tested. |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 105 | [Arguments] ${obmc_test_setup_state}=${OBMC_PowerOff_state} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 106 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 107 | # Description of argument(s): |
| 108 | # obmc_test_setup The OpenBMC required state. |
| 109 | |
| 110 | Rprint Timen ${TEST NAME} ==> [STARTED] |
| 111 | Login OpenBMC GUI |
| 112 | Log To Console Verifying the system state and stablity... |
| 113 | ${obmc_current_state}= Get Text ${xpath_display_server_power_status} |
| 114 | Rpvars obmc_current_state |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 115 | |
| 116 | ${obmc_state_status}= Run Keyword And Return Status |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 117 | ... Should Contain ${obmc_current_state} ${obmc_test_setup_state} |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 118 | Return From Keyword If '${obmc_state_status}' == 'True' |
| 119 | |
| 120 | ${obmc_standby_state}= Run Keyword And Return Status |
| 121 | ... Should Contain ${obmc_current_state} ${obmc_standby_state} |
| 122 | |
| 123 | Run Keyword If '${obmc_standby_state}' == 'True' |
| 124 | ... Reboot OpenBMC |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 125 | Run Keyword If '${obmc_test_setup_state}' == '${obmc_PowerRunning_state}' |
| 126 | ... Power On OpenBMC |
| 127 | Run Keyword If '${obmc_test_setup_state}' == '${obmc_PowerOff_state}' |
| 128 | ... Power Off OpenBMC |
| 129 | |
| 130 | Power Off OpenBMC |
| 131 | [Documentation] Power off the OBMC system. |
| 132 | |
| 133 | Log To Console Power Off OpenBMC... |
| 134 | Click Element ${xpath_display_server_power_status} |
| 135 | Execute JavaScript window.scrollTo(0, document.body.scrollHeight) |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 136 | Click Button ${xpath_select_button_orderly_shutdown} |
| 137 | Click Yes Button ${xpath_select_button_orderly_shutdown_yes} |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 138 | Wait OpenBMC To Become Stable ${obmc_off_state} |
| 139 | |
| 140 | Power On OpenBMC |
| 141 | [Documentation] Power on the OBMC system. |
| 142 | |
| 143 | Log To Console Power On OpenBMC... |
| 144 | Click Element ${xpath_display_server_power_status} |
| 145 | Click Button ${xpath_select_button_power_on } |
| 146 | Wait OpenBMC To Become Stable ${obmc_running_state} |
| 147 | |
| 148 | Reboot OpenBMC |
| 149 | [Documentation] Rebooting the OBMC system. |
| 150 | |
| 151 | Log To Console Reboting the OpenBMC... |
| 152 | Click Element ${xpath_display_server_power_status} |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 153 | Click Button ${xpath_select_button_orderly_shutdown} |
| 154 | Click Yes Button ${xpath_select_button_orderly_shutdown_yes} |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 155 | Wait OpenBMC To Become Stable ${obmc_off_state} |
| 156 | |
| 157 | Wait OpenBMC To Become Stable |
| 158 | [Documentation] Power off the OBMC. |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 159 | [Arguments] ${obmc_expected_state} ${retry_time}=15 min |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 160 | ... ${retry_interval}=45 sec |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 161 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 162 | # Description of argument(s): |
| 163 | # OBMC_expected_state The OBMC state which is required for test. |
| 164 | # retry_time Total wait time after executing the command. |
| 165 | # retry_interval Time interval for to keep checking with in the |
| 166 | # above total wait time. |
| 167 | |
| 168 | Wait Until Keyword Succeeds ${retry_time} ${retry_interval} |
| 169 | ... Wait Until Element Contains ${xpath_display_server_power_status} |
| 170 | ... ${obmc_expected_state} |
| 171 | Wait Until Keyword Succeeds ${retry_time} ${retry_interval} |
| 172 | ... Verify OpenBMC State From REST Interface ${obmc_expected_state} |
| 173 | |
| 174 | Verify OpenBMC State From REST Interface |
| 175 | [Documentation] Verify system state from REST Interface. |
| 176 | [Arguments] ${obmc_required_state} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 177 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 178 | # Description of argument(s): |
| 179 | # obmc_required_state The OBMC state which is required for test. |
| 180 | |
| 181 | ${obmc_current_state_REST}= Get Host State |
| 182 | Should Be Equal ${obmc_current_state_REST} ${obmc_required_state} |
| 183 | |
| 184 | Click Yes Button |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 185 | [Documentation] Click the 'Yes' button. |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 186 | [Arguments] ${xpath_button_yes} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 187 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 188 | # Description of argument(s): |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 189 | # xpath_button_yes The xpath of 'Yes' button. |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 190 | |
| 191 | Click Button ${xpath_button_yes} |
| 192 | |
| 193 | LogOut OpenBMC GUI |
| 194 | [Documentation] Log out of OpenBMC GUI. |
| 195 | SSHLibrary.Close All Connections |
Sivas SRR | ae39abe | 2018-02-26 02:40:46 -0600 | [diff] [blame] | 196 | # Passing direct id element "header" as an argument to Click Element. |
| 197 | Click Element header |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 198 | Wait Until Page Contains Element ${xpath_button_login} |
| 199 | |
| 200 | Test Teardown Execution |
| 201 | [Documentation] Do final closure activities of test case execution. |
| 202 | Rprint Pgm Footer |
| 203 | Print Dashes 0 100 1 = |
| 204 | LogOut OpenBMC GUI |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 205 | |
| 206 | Open Browser With URL |
| 207 | [Documentation] Open browser with specified URL and returns browser id. |
| 208 | [Arguments] ${URL} ${browser}=gc |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 209 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 210 | # Description of argument(s): |
| 211 | # URL Openbmc GUI URL to be open |
| 212 | # (e.g. https://openbmc-test.mybluemix.net/#/login ) |
| 213 | # browser browser used to open above URL |
| 214 | # (e.g. gc for google chrome, ff for firefox) |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 215 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 216 | ${browser_ID}= Open Browser ${URL} ${browser} |
| 217 | [Return] ${browser_ID} |
| 218 | |
| 219 | Model Server Power Click Button |
| 220 | [Documentation] Click main server power in the header section. |
| 221 | [Arguments] ${div_element} ${anchor_element} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 222 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 223 | # Description of argument(s): |
| 224 | # div_element Server power header divisional element |
| 225 | # (e.g. header_wrapper.) |
| 226 | # anchor_element Server power header anchor element |
| 227 | # (e.g. header_wrapper_elt.) |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 228 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 229 | Wait Until Element Is Visible |
| 230 | ... //*[@id='header__wrapper']/div/div[${div_element}]/a[${anchor_element}]/span |
| 231 | Click Element |
| 232 | ... //*[@id='header__wrapper']/div/div[${div_element}]/a[${anchor_element}]/span |
| 233 | |
| 234 | Controller Server Power Click Button |
| 235 | [Documentation] Click main server power in the header section. |
| 236 | [Arguments] ${controller_element} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 237 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 238 | # Description of argument(s): |
| 239 | # controller_element Server power controller element |
| 240 | # (e.g. power__power-on.) |
| 241 | |
| 242 | Wait Until Element Is Visible ${controller_element} |
| 243 | Page Should Contain Button ${controller_element} |
| 244 | Click Element ${controller_element} |
| 245 | |
| 246 | Controller Power Operations Confirmation Click Button |
| 247 | [Documentation] Click Common Power Operations Confirmation. |
| 248 | [Arguments] ${main_element} ${sub_element} ${confirm_msg_elt} ${confirmation} |
Sathyajith M S | 2cdab0a | 2018-02-13 19:36:28 -0600 | [diff] [blame] | 249 | |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 250 | # Description of argument(s): |
| 251 | # main_element Server power operations element |
| 252 | # (e.g. power_operations.) |
| 253 | # sub_element Server power operations sub element |
| 254 | # (e.g. warm_boot, shut_down.) |
| 255 | # confirm_msg_elt Server power operations confirm message element |
| 256 | # (e.g. confirm_msg.) |
| 257 | # confirmation Server power operations confirmation |
| 258 | # (e.g. yes.) |
| 259 | |
| 260 | Click Element |
| 261 | ... //*[@id='power-operations']/div[${main_element}]/div[${sub_element}]/confirm/div/div[${confirm_msg_elt}]/button[${confirmation}] |
| 262 | |
| 263 | GUI Power On |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 264 | [Documentation] Power on the host using GUI. |
Sivas SRR | ffa4269 | 2018-01-17 05:17:35 -0600 | [diff] [blame] | 265 | |
| 266 | Model Server Power Click Button ${header_wrapper} ${header_wrapper_elt} |
| 267 | Page Should Contain Attempts to power on the server |
| 268 | Controller Server Power Click Button power__power-on |
| 269 | Page Should Contain Running |
| 270 | |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 271 | Verify Display Content |
| 272 | [Documentation] Verify text content display. |
| 273 | [Arguments] ${display_text} |
| 274 | |
| 275 | # Description of argument(s): |
| 276 | # display_text The text which is expected to be found on the web page. |
| 277 | |
| 278 | Page Should Contain ${display_text} |
| 279 | |
| 280 | Warm Reboot openBMC |
| 281 | [Documentation] Warm reboot the OBMC system. |
| 282 | |
| 283 | Log To Console Warm Reboting the OpenBMC... |
| 284 | Click Element ${xpath_select_button_warm_reboot} |
| 285 | Verify Warning Message Display Text ${xpath_warm_reboot_warning_message} |
| 286 | ... ${text_warm_reboot_warning_message} |
| 287 | Click Yes Button ${xpath_select_button_warm_reboot_yes} |
| 288 | Wait OpenBMC To Become Stable ${obmc_running_state} |
| 289 | |
| 290 | Click No Button |
| 291 | [Documentation] Click the 'No' button. |
| 292 | [Arguments] ${xpath_button_no} |
| 293 | |
| 294 | # Description of argument(s): |
| 295 | # xpath_button_no The xpath of 'No' button. |
| 296 | |
| 297 | Click Button ${xpath_button_no} |
| 298 | |
| 299 | Cold Reboot openBMC |
| 300 | [Documentation] Cold reboot the OBMC system. |
| 301 | |
| 302 | Log To Console Cold Reboting the OpenBMC... |
| 303 | Click Element ${xpath_select_button_cold_reboot} |
| 304 | Verify Warning Message Display Text ${xpath_cold_reboot_warning_message} |
| 305 | ... ${text_cold_reboot_warning_message} |
| 306 | Click Yes Button ${xpath_select_button_cold_reboot_yes} |
| 307 | Wait OpenBMC To Become Stable ${obmc_running_state} |
| 308 | |
| 309 | Orderly Shutdown OpenBMC |
| 310 | [Documentation] Do orderly shutdown the OBMC system. |
| 311 | |
| 312 | Log To Console Orderly Shutdown the OpenBMC... |
| 313 | Click Element ${xpath_select_button_orderly_shutdown} |
| 314 | Verify Warning Message Display Text ${xpath_orderly_shutdown_warning_message} |
| 315 | ... ${text_orderly_shutdown_warning_message} |
| 316 | Click Yes Button ${xpath_select_button_orderly_shutdown_yes} |
| 317 | Wait OpenBMC To Become Stable ${obmc_off_state} |
| 318 | |
| 319 | Immediate Shutdown openBMC |
| 320 | [Documentation] Do immediate shutdown the OBMC system. |
| 321 | |
| 322 | Log To Console Immediate Shutdown the OpenBMC... |
| 323 | Click Element ${xpath_select_button_immediate_shutdown} |
| 324 | Verify Warning Message Display Text |
| 325 | ... ${xpath_immediate_shutdown_warning_message} |
| 326 | ... ${text_immediate_shutdown_warning_message} |
| 327 | Click Yes Button ${xpath_select_button_immediate_shutdown_yes} |
| 328 | Wait OpenBMC To Become Stable ${obmc_off_state} |
| 329 | |
| 330 | Verify Warning Message Display Text |
| 331 | [Documentation] Verify the warning message display text. |
| 332 | [Arguments] ${xpath_text_message} ${text_message} |
| 333 | |
| 334 | # xpath_text_message Xpath of warning message display. |
| 335 | # text_message Content of the display message info. |
| 336 | |
| 337 | Element Text Should Be ${xpath_text_message} ${text_message} |
Sivas SRR | ca534e6 | 2018-02-20 02:22:02 -0600 | [diff] [blame] | 338 | |
| 339 | |
| 340 | Expected Initial Test State |
| 341 | [Documentation] Power on the host if "Running" expected, Power off the |
| 342 | ... host if "Off" expected as per the requirement of initial test state. |
| 343 | [Arguments] ${expectedState} |
| 344 | # Description of argument(s): |
| 345 | # expectedState Test initial host state. |
| 346 | |
| 347 | Run Keyword If '${expectedState}' == 'Running' |
| 348 | ... Initiate Host Boot |
| 349 | |
| 350 | Run Keyword If '${expectedState}' == 'Off' |
| 351 | ... Initiate Host PowerOff |
Sivas SRR | 008dcc6 | 2018-02-27 06:34:56 -0600 | [diff] [blame] | 352 | |
| 353 | Launch Browser And Login OpenBMC GUI |
| 354 | [Documentation] Launch browser and log into openbmc GUI. |
| 355 | |
| 356 | Open Browser With URL ${obmc_gui_url} |
| 357 | Login OpenBMC GUI ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |
| 358 | |
| 359 | Logout And Close Browser |
| 360 | [Documentation] Logout from openbmc application and close the browser. |
| 361 | |
| 362 | Click Element header |
| 363 | Close Browser |