Added test to verify manual date and time in GUI page
Changes:
-Added Verify_Date_And_Time_From_Configuration_Section test case
Change-Id: I50a512b46571b0fcccdeae28cf6bcb7cd37b183f
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 596acb0..22bb4fc 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
@@ -60,6 +60,18 @@
Page Should Contain Element ${xpath_ntp_server3}
+Verify Date And Time From Configuration Section
+ [Documentation] Get date and time from configuration section and verify it via BMC CLI.
+ [Tags] Verify_Date_And_Time_From_Configuration_Section
+
+ Click Element At Coordinates ${xpath_select_manual} 0 0
+ ${manual_date}= Get Value ${xpath_manual_date}
+ ${manual_time}= Get Value ${xpath_manual_time}
+
+ ${cli_date_time}= CLI Get BMC DateTime
+ Should contain ${cli_date_time} ${manual_date} ${manual_time}
+
+
*** Keywords ***
Suite Setup Execution