OBMC GUI POC: Test Power Operations

Resolves openbmc/openbmc-test-automation#407

Change-Id: I74e47344add5bf20dec38461d52714610e049e5e
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/gui/tests/test_obmc_gui_power_operations.robot b/gui/tests/test_obmc_gui_power_operations.robot
new file mode 100644
index 0000000..d57e339
--- /dev/null
+++ b/gui/tests/test_obmc_gui_power_operations.robot
@@ -0,0 +1,60 @@
+*** Settings ***
+
+Documentation  Test OBMC GUI Power Operations
+
+Resource  ../lib/obmcgui_utils.robot
+
+Suite Setup  OpenBMC GUI Login
+Suite Teardown  Close Browser
+
+*** Test Cases ***
+
+Power On the CEC
+    [Documentation]  Power on the CEC.
+    [Tags]  Power_On_the_CEC
+
+    GUI Power On
+
+Warm Boot the CEC
+    [Documentation]  Warm boot the CEC.
+    [Tags]  Warm_Boot_the_CEC
+
+    Controller Server Power Click  power__warm-boot
+    Controller Power Operations Confirmation Click  ${power_operations}
+    ...  ${warm_boot}  ${confirm_msg}  ${yes}
+
+Immediate Power Off the CEC
+    [Documentation]  Immediate power off the CEC.
+    [Tags]  Immediate_Power_Off_the_CEC
+
+    Controller Server Power Click  power__hard-shutdown
+    Controller Power Operations Confirmation Click  ${power_operations}
+    ...  ${power_off}  ${confirm_msg}  ${yes}
+
+Cold Boot the CEC
+    [Documentation]  Cold boot the CEC.
+    [Tags]  Cold_Boot_the_CEC
+
+    Controller Server Power Click  power__cold-boot
+    Controller Power Operations Confirmation Click  ${power_operations}
+    ...  ${cold_boot}  ${confirm_msg}  ${yes}
+
+Orderly Shutdown the CEC
+    [Documentation]  Orderly shutdown  the CEC.
+    [Tags]  Orderly_Shutdown_the_CEC
+
+    Controller Server Power Click  power__soft-shutdown
+    Controller Power Operations Confirmation Click  ${power_operations}
+    ...  ${shut_down}  ${confirm_msg}  ${yes}
+
+OpenBMC GUI Logoff
+    [Documentation]  Log out from OpenBMC GUI.
+    [Tags]  OpenBMC_GUI_Logoff
+
+    Log  ${obmc_BMC_URL}
+    Log To Console  ${obmc_BMC_URL}
+    Click Element  header
+
+
+
+