Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 1 | *** Settings *** |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 2 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 3 | Documentation Test OpenBMC GUI "Server power operation" sub-menu of |
| 4 | ... "Server control". |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 5 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 6 | Resource ../../lib/resource.robot |
| 7 | |
| 8 | Suite Setup Launch Browser And Login OpenBMC GUI |
| 9 | Suite Teardown Close Browser |
| 10 | Test Setup Navigate To Power Operation Page |
| 11 | |
Anusha Dathatri | 883ff7c | 2019-10-01 01:56:30 -0500 | [diff] [blame] | 12 | |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 13 | *** Variables *** |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 14 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 15 | ${xpath_power_indicator_bar} //*[@id='power-indicator-bar'] |
| 16 | ${xpath_shutdown_button} //button[contains(text(), "Shut down")] |
| 17 | ${xpath_reboot_button} //button[contains(text(), "Reboot")] |
Arpana Durgaprasad | f3c2d7f | 2019-02-20 02:28:45 -0600 | [diff] [blame] | 18 | |
| 19 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 20 | *** Test Cases *** |
Arpana Durgaprasad | f3c2d7f | 2019-02-20 02:28:45 -0600 | [diff] [blame] | 21 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 22 | Verify System State At Power Off |
| 23 | [Documentation] Verify system state at power off. |
| 24 | [Tags] Verify_System_State_At_Power_Off |
| 25 | |
| 26 | Test Setup Execution ${OBMC_PowerOff_state} |
| 27 | Element Should Contain ${xpath_power_indicator_bar} Off |
Arpana Durgaprasad | f3c2d7f | 2019-02-20 02:28:45 -0600 | [diff] [blame] | 28 | |
| 29 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 30 | Verify BMC IP In Server Power Operation Page |
| 31 | [Documentation] Verify BMC IP in server power operation page. |
| 32 | [Tags] Verify_BMC_IP_In_Server_Power_Operation_Page |
Arpana Durgaprasad | 0f5aee7 | 2019-02-19 03:47:24 -0600 | [diff] [blame] | 33 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 34 | Element Should Contain ${xpath_power_indicator_bar} ${OPENBMC_HOST} |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 35 | |
| 36 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 37 | Verify Shutdown Button At Power Off |
| 38 | [Documentation] Verify that shutdown button is not present at power Off. |
| 39 | [Tags] Verify_Shutdown_Button_At_Power_Off |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 40 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 41 | Test Setup Execution ${OBMC_PowerOff_state} |
| 42 | Element Should Not Be Visible ${xpath_shutdown_button} |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 43 | |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 44 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 45 | Verify Reboot Button At Power Off |
| 46 | [Documentation] Verify that reboot button is not present at power Off. |
| 47 | [Tags] Verify_Reboot_Button_At_Power_Off |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 48 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 49 | Test Setup Execution ${OBMC_PowerOff_state} |
| 50 | Element Should Not Be Visible ${xpath_reboot_button} |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 51 | |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 52 | |
| 53 | *** Keywords *** |
Sathyajith M S | f52d6fc | 2018-01-24 10:11:18 -0600 | [diff] [blame] | 54 | |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 55 | Navigate To Power Operation Page |
| 56 | [Documentation] Navigate to server power operation page. |
| 57 | |
| 58 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 59 | Click Element ${xpath_select_server_control} |
| 60 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
Anusha Dathatri | f93a5c4 | 2019-07-24 05:29:44 -0500 | [diff] [blame] | 61 | Click Element ${xpath_select_server_power_operations} |
Rahul Maheshwari | 57a4155 | 2019-10-22 01:02:23 -0500 | [diff] [blame] | 62 | Wait Until Page Contains Server power operations |