OpenLiberty / OpenLiberty/liberty-tools-eclipse
testDashboardActions() test case failing - LibertyPluginSWTBotGradleTest.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 16
- Forks
- 20
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 16
Description
testDashboardActions() test case is failing intermittently due to below error:
io.openliberty.tools.eclipse.test.it.LibertyPluginSWTBotGradleTest.testDashboardActions -- Time elapsed: 129.9 s <<< FAILURE!
org.opentest4j.AssertionFailedError: Message CWWKE0036I not found in /Users/suparnasuresh/Documents/GitHub/ECLIPSE_TEST/liberty-tools-eclipse/tests/resources/applications/gradle/liberty-gradle-test-app/build/wlp/usr/servers/defaultServer/logs/messages.log
at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
When the browser opens the test reports, the stop command from the dashboard fails to execute due to the window being out of focus. However, triggering liberty stop using launchStopWithRunAsShortcut(_NAME) works correctly, and the test cases complete successfully.
Need to investigate further on this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with testDashboardActions() in LibertyPluginSWTBotGradleTest and compare its dashboard stop flow with launchStopWithRunAsShortcut(_NAME). Reproduce the intermittent failure while checking the browser window focus and the messages.log assertion for CWWKE0036I. Done means the dashboard stop action reliably completes and the test passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100