Added test for event logs sub menu
Changes:
- Added suite to test event logs page
- Added test to verify existence of all sections of event logs page
Change-Id: I9d45aa9fa7c1f037ce742e598b736a9d50ae3a3f
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/gui/data/resource_variables.py b/gui/data/resource_variables.py
index b31fa9c..a36df7f 100644
--- a/gui/data/resource_variables.py
+++ b/gui/data/resource_variables.py
@@ -128,6 +128,10 @@
# xpath for overview menu
xpath_overview_menu = "//a[@href='#/']"
+ # xpath for health menu
+ xpath_health_menu = "//button[@aria-controls='health-menu']"
+ xpath_event_logs_sub_menu = "//a[@href='#/health/event-logs']"
+
# xpath for control menu
xpath_control_menu = "//button[@aria-controls='control-menu']"
xpath_manage_power_usage_sub_menu = "//a[@href='#/control/manage-power-usage']"
diff --git a/gui/gui_test/health_menu/test_event_logs_sub_menu.robot b/gui/gui_test/health_menu/test_event_logs_sub_menu.robot
new file mode 100644
index 0000000..93337e6
--- /dev/null
+++ b/gui/gui_test/health_menu/test_event_logs_sub_menu.robot
@@ -0,0 +1,28 @@
+*** Settings ***
+
+Documentation Test OpenBMC GUI "Event logs" sub-menu.
+
+Resource ../../lib/resource.robot
+
+Suite Setup Launch Browser And Login GUI
+Suite Teardown Close Browser
+Test Setup Test Setup Execution
+
+
+*** Test Cases ***
+
+Verify Existence Of All Sections In Event Logs Page
+ [Documentation] Verify existence of all sections in Event Logs page.
+ [Tags] Verify_Existence_Of_All_Sections_In_Event_Logs_Page
+
+ Page Should Contain Event logs
+
+
+*** Keywords ***
+
+Test Setup Execution
+ [Documentation] Do test case setup tasks.
+
+ Click Element ${xpath_health_menu}
+ Click Element ${xpath_event_logs_sub_menu}
+ Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain event-logs