Added tests for control menu

Changes:
    Added suite and basic test case for following pages under control menu:
        - Power Usage
        - Reboot BMC
        - Server LED
        - Server power operations

Change-Id: I625bdbf1ad71fb989341368fe38b4d66db3006da
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/gui/gui_test/control_menu/test_manage_power_usage_sub_menu.robot b/gui/gui_test/control_menu/test_manage_power_usage_sub_menu.robot
new file mode 100644
index 0000000..a3f9fa8
--- /dev/null
+++ b/gui/gui_test/control_menu/test_manage_power_usage_sub_menu.robot
@@ -0,0 +1,33 @@
+*** Settings ***
+
+Documentation  Test OpenBMC GUI "Manage power usage" sub-menu of "Server control".
+
+Resource        ../../lib/resource.robot
+
+Suite Setup     Launch Browser And Login GUI
+Suite Teardown  Close Browser
+Test Setup      Test Setup Execution
+
+
+*** Variables ***
+
+
+*** Test Cases ***
+
+Verify Existence Of All Sections In Manage Power Usage Page
+    [Documentation]  Verify existence of all sections in Manage Power Usage page.
+    [Tags]  Verify_Existence_Of_All_Sections_In_Manage_Power_Usage_Page
+
+    Page Should Contain  Current power consumption
+    Page Should Contain  Power cap setting
+    Page Should Contain  Power cap value
+
+
+*** Keywords ***
+
+Test Setup Execution
+    [Documentation]  Do test case setup tasks.
+
+    Click Element  ${xpath_control_menu}
+    Click Element  ${xpath_manage_power_usage_sub_menu}
+    Wait Until Keyword Succeeds  30 sec  10 sec  Location Should Contain  manage-power-usage
diff --git a/gui/gui_test/control_menu/test_reboot_bmc_sub_menu.robot b/gui/gui_test/control_menu/test_reboot_bmc_sub_menu.robot
new file mode 100644
index 0000000..6c38eb6
--- /dev/null
+++ b/gui/gui_test/control_menu/test_reboot_bmc_sub_menu.robot
@@ -0,0 +1,32 @@
+*** Settings ***
+
+Documentation  Test OpenBMC GUI "Reboot BMC" sub-menu of "Server control".
+
+Resource        ../../lib/resource.robot
+
+Suite Setup     Launch Browser And Login GUI
+Suite Teardown  Close Browser
+Test Setup      Test Setup Execution
+
+
+*** Variables ***
+
+${xpath_reboot_bmc_button}       //button[contains(text(),'Reboot BMC')]
+
+*** Test Cases ***
+
+Verify Existence Of All Buttons In Reboot BMC Page
+    [Documentation]  Verify existence of all buttons in reboot BMC page.
+    [Tags]  Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page
+
+    Page Should Contain Element  ${xpath_reboot_bmc_button}
+
+
+*** Keywords ***
+
+Test Setup Execution
+    [Documentation]  Do test case setup tasks.
+
+    Click Element  ${xpath_control_menu}
+    Click Element  ${xpath_reboot_bmc_sub_menu}
+    Wait Until Keyword Succeeds  30 sec  10 sec  Location Should Contain  reboot-bmc
diff --git a/gui/gui_test/control_menu/test_server_led_sub_menu.robot b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
new file mode 100644
index 0000000..d163760
--- /dev/null
+++ b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
@@ -0,0 +1,31 @@
+*** Settings ***
+
+Documentation  Test OpenBMC GUI "Server LED" sub-menu of "Server control".
+
+Resource        ../../lib/resource.robot
+
+Suite Setup     Launch Browser And Login GUI
+Suite Teardown  Close Browser
+Test Setup      Test Setup Execution
+
+
+*** Variables ***
+
+
+*** Test Cases ***
+
+Verify Existence Of All Sections In Server LED Page
+    [Documentation]  Verify existence of all sections in Server LED page.
+    [Tags]  Verify_Existence_Of_All_Sections_In_Server_LED_Page
+
+    Page Should Contain  LED light control
+
+
+*** Keywords ***
+
+Test Setup Execution
+    [Documentation]  Do test case setup tasks.
+
+    Click Element  ${xpath_control_menu}
+    Click Element  ${xpath_server_led_sub_menu}
+    Wait Until Keyword Succeeds  30 sec  10 sec  Location Should Contain  server-led
diff --git a/gui/gui_test/control_menu/test_server_power_operations_sub_menu.robot b/gui/gui_test/control_menu/test_server_power_operations_sub_menu.robot
new file mode 100644
index 0000000..67da8d3
--- /dev/null
+++ b/gui/gui_test/control_menu/test_server_power_operations_sub_menu.robot
@@ -0,0 +1,33 @@
+*** Settings ***
+
+Documentation  Test OpenBMC GUI "Server power operations" sub-menu of "Server control".
+
+Resource        ../../lib/resource.robot
+
+Suite Setup     Launch Browser And Login GUI
+Suite Teardown  Close Browser
+Test Setup      Test Setup Execution
+
+
+*** Variables ***
+
+
+*** Test Cases ***
+
+Verify Existence Of All Sections In Server Power Operations Page
+    [Documentation]  Verify existence of all sections in Server Power Operations page.
+    [Tags]  Verify_Existence_Of_All_Sections_In_Server_Power_Operations_Page
+
+    Page Should Contain  Current status
+    Page Should Contain  Host OS boot settings
+    Page Should Contain  Operations
+
+
+*** Keywords ***
+
+Test Setup Execution
+    [Documentation]  Do test case setup tasks.
+
+    Click Element  ${xpath_control_menu}
+    Click Element  ${xpath_server_power_operations_sub_menu}
+    Wait Until Keyword Succeeds  30 sec  10 sec  Location Should Contain  server-power-operations