DateTime:Setup to navigate to date and time page

Changes :
   - Added a fix to go to Date and Time page before each
test case starts.
Tested :
   - Ran fix on test cases from sandbox successfully

Change-Id: I0566cefcce31c071228b87e399270962e0b173e9
Signed-off-by: sarandev3 <saranyad@in.ibm.com>
diff --git a/gui/gui_test/settings_menu/test_date_and_time_sub_menu.robot b/gui/gui_test/settings_menu/test_date_and_time_sub_menu.robot
index da62c42..b6de138 100644
--- a/gui/gui_test/settings_menu/test_date_and_time_sub_menu.robot
+++ b/gui/gui_test/settings_menu/test_date_and_time_sub_menu.robot
@@ -6,7 +6,7 @@
 
 Suite Setup     Suite Setup Execution
 Suite Teardown  Close Browser
-
+Test Setup      Navigate To Date and Time Page
 
 *** Variables ***
 
@@ -134,7 +134,7 @@
 Verify NTP Server Input Fields In Date And Time Page
     [Documentation]  Verify NTP server input fields in date and time page.
     [Tags]  Verify_NTP_Server_Input_Fields_In_Date_And_Time_Page
-    [Setup]  Redfish Power off  stack_mode=skip
+    [Setup]  Setup To Power Off And Navigate
 
     Click Element At Coordinates  ${xpath_select_ntp}  0  0
     Input Text  ${xpath_ntp_server1}  10.10.10.10
@@ -159,7 +159,14 @@
 
     Launch Browser And Login GUI
     Maximize Browser Window
-    Navigate To Date and Time Page
+
+Setup To Power Off And Navigate   
+   [Documentation]  Power off system if not powered off and go to date and
+   ...  time page.
+
+   Redfish Power off  stack_mode=skip
+   Navigate To Date and Time Page
+
 
 Navigate To Date and Time Page
     [Documentation]  Navigate to the date and time page from main menu.