Added test verify date and time in gui page

Changes:
        -Added Verify_Display_Of_Date_And_Time_In_Gui_Page test case

Change-Id: Ic176805adfbe925bdeda443eb1e6d8fb9d573285
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/gui/gui_test/server_config/test_date_time_settings_sub_menu.robot b/gui/gui_test/server_config/test_date_time_settings_sub_menu.robot
index 22bb4fc..008d04a 100644
--- a/gui/gui_test/server_config/test_date_time_settings_sub_menu.robot
+++ b/gui/gui_test/server_config/test_date_time_settings_sub_menu.robot
@@ -72,13 +72,36 @@
     Should contain  ${cli_date_time}  ${manual_date}  ${manual_time}
 
 
+Verify Display Of Date and Time In GUI Page
+     [Documentation]  Get date and time from Redfish and verify it via GUI date and time page.
+     [Tags]  Verify_Display_Of_Date_And_Time_In_Gui_Page
+
+    # Set Default timezone in profile settings page.
+    Set Timezone In Profile Settings Page  Default
+    Navigate To Date and Time Page
+
+    # Get date and time from Redfish.
+    ${redfish_date_time}=  CLI Get BMC DateTime
+    ${redfish_date}=  Convert Date  ${redfish_date_time}  result_format=%Y-%m-%d
+    ${redfish_time}=  Convert Date  ${redfish_date_time}  result_format=%H:%M
+
+    # Verify date and time via GUI date and time page.
+
+    Page Should Contain  ${redfish_date}
+    Page Should Contain  ${redfish_time}
+
+
 *** Keywords ***
 
 Suite Setup Execution
    [Documentation]  Do test case setup tasks.
 
     Launch Browser And Login GUI
+    Navigate To Date and Time Page
+
+Navigate To Date and Time Page
+    [Documentation]  Navigate to the date and time page from main menu.
+
     Click Element  ${xpath_server_configuration}
     Click Element  ${xpath_date_time_settings_sub_menu}
     Wait Until Keyword Succeeds  30 sec  10 sec  Location Should Contain  date-time-settings
-