OpenLiberty / OpenLiberty/liberty-tools-eclipse

testDashboardActions() test case failing - LibertyPluginSWTBotGradleTest.

Open
#580 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.