Add GUI automation to check high priority error log entry
Added Test cases:
- Verify Event Under High Priority Events Section
Change-Id: I26ee1c041e10b93a63dfe90089500033d3e10554
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/gui/gui_test/overview_menu/test_overview_menu.robot b/gui/gui_test/overview_menu/test_overview_menu.robot
index da29612..fa01abd 100644
--- a/gui/gui_test/overview_menu/test_overview_menu.robot
+++ b/gui/gui_test/overview_menu/test_overview_menu.robot
@@ -4,6 +4,7 @@
Resource ../../lib/resource.robot
Resource ../../../lib/logging_utils.robot
+Resource ../../../lib/list_utils.robot
Suite Setup Launch Browser And Login GUI
Suite Teardown Close Browser
@@ -17,15 +18,6 @@
*** Test Cases ***
-Verify Message In High Priority Events Section For No Events
- [Documentation] Verify message under high priority events section in case of no events.
- [Tags] Verify_Message_In_High_Priority_Events_Section_For_No_Events
-
- Redfish Purge Event Log
- Click Element ${xpath_refresh_button}
- Wait Until Page Contains no high priority events to display timeout=10
-
-
Verify Existence Of All Sections In Overview Page
[Documentation] Verify existence of all sections in Overview page.
[Tags] Verify_Existence_Of_All_Sections_In_Overview_Page
@@ -37,6 +29,15 @@
Page Should Contain High priority events
+Verify Message In High Priority Events Section For No Events
+ [Documentation] Verify message under high priority events section in case of no events.
+ [Tags] Verify_Message_In_High_Priority_Events_Section_For_No_Events
+
+ Redfish Purge Event Log
+ Click Element ${xpath_refresh_button}
+ Wait Until Page Contains no high priority events to display timeout=10
+
+
Verify Server Information Section
[Documentation] Verify values under server information section in overview page.
[Tags] Verify_Server_Information_Section
@@ -69,6 +70,16 @@
Wait Until Page Contains Element ${xpath_network_page_header}
+Verify Event Under High Priority Events Section
+ [Documentation] Verify event under high priority events section in case of any event.
+ [Tags] Verify_Event_Under_High_Priority_Events_Section
+
+ Redfish Purge Event Log
+ Click Element ${xpath_refresh_button}
+ Generate Test Error Log
+ Wait Until Page Contains xyz.openbmc_project.Common.Error.InternalFailure timeout=30s
+
+
*** Keywords ***
Test Setup Execution
diff --git a/gui/lib/resource.robot b/gui/lib/resource.robot
index 1f91409..f79d413 100644
--- a/gui/lib/resource.robot
+++ b/gui/lib/resource.robot
@@ -34,6 +34,10 @@
${GUI_BROWSER} ff
${GUI_MODE} headless
+${CMD_INTERNAL_FAILURE} busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging
+... xyz.openbmc_project.Logging.Create Create ssa{ss} xyz.openbmc_project.Common.Error.InternalFailure
+... xyz.openbmc_project.Logging.Entry.Level.Error 0
+
*** Keywords ***
Launch OpenBMC GUI Browser
[Documentation] Launch the OpenBMC GUI URL on a browser.
@@ -322,3 +326,9 @@
Click Element ${xpath_logout_button}
Wait Until Page Contains Element ${xpath_login_button}
+
+
+Generate Test Error Log
+ [Documentation] Generate test error log.
+
+ BMC Execute Command ${CMD_INTERNAL_FAILURE}