Added test use case for server configuration menu pages
Testcases added:
- Verify_Navigation_To_Date_And_Time_Settings_Page
- Verify_Navigation_To_Network_Settings_Page
- Verify_Existence_Of_All_Sections_In_Network_Settings_Page
- Verify_Existence_Of_All_Buttons_In_Network_Settings_Page
- Verify_Navigation_To_Firmware_Page
- Verify_Existence_Of_All_Sections_In_Firmware_Page
- Verify_Existence_Of_All_Buttons_In_Firmware_Page
Change-Id: Ib46179440e6fbb1ef5f725c8418fa4b28bea651b
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
diff --git a/gui/gui_test/server_config/test_obmc_gui_firmware_update.robot b/gui/gui_test/server_config/test_obmc_gui_firmware_update.robot
new file mode 100644
index 0000000..aefa65a
--- /dev/null
+++ b/gui/gui_test/server_config/test_obmc_gui_firmware_update.robot
@@ -0,0 +1,50 @@
+*** Settings ***
+
+Documentation Test OpenBMC Firmware Update" sub menu of "Configuration".
+
+Resource ../../lib/resource.robot
+
+Suite Setup Suite Setup Execution
+Suite Teardown Close Browser
+
+*** Variables ***
+
+${xpath_firmware_heading} //h1[text()="Firmware"]
+${xpath_change_image_and_reboot} //button[contains(text(),'Change image and reboot BMC')]
+${xpath_upload_image_and_reboot} //button[contains(text(),'Upload and reboot BMC')]
+
+*** Test Cases ***
+
+Verify Navigation To Firmware Page
+ [Documentation] Verify navigation to firmware page.
+ [Tags] Verify_Navigation_To_Firmware_Page
+
+ Page Should Contain Element ${xpath_firmware_heading}
+
+
+Verify Existence Of All Sections In Firmware Page
+ [Documentation] Verify existence of all sections in firmware page.
+ [Tags] Verify_Existence_Of_All_Sections_In_Firmware_Page
+
+ Page Should Contain Firmware on system
+ Page Should Contain Change to backup image
+ Page Should Contain Update code
+
+
+Verify Existence Of All Buttons In Firmware Page
+ [Documentation] Verify existence of all buttons in firmware page.
+ [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page
+
+ Page Should Contain Element ${xpath_change_image_and_reboot}
+ Page Should Contain Element ${xpath_upload_image_and_reboot}
+
+
+*** Keywords ***
+
+Suite Setup Execution
+ [Documentation] Do test case setup tasks.
+
+ Launch Browser And Login GUI
+ Click Element ${xpath_server_configuration}
+ Click Element ${xpath_firmware_update_sub_menu}
+ Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain firmware