OpenLiberty / OpenLiberty/liberty-tools-eclipse

Intermittent test failure in LibertyPluginSWTBotMavenTest.setup()

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

Nobody has claimed this yet.

testing
Dominant language
Java
Stars
16
Forks
20
Avg merge
2d 9h
Merged PRs (30d)
16

Description


Test set: io.openliberty.tools.eclipse.test.it.LibertyPluginSWTBotMavenTest

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 73.966 s <<< FAILURE! - in null
io.openliberty.tools.eclipse.test.it.LibertyPluginSWTBotMavenTest Time elapsed: 73.966 s <<< FAILURE!
org.opentest4j.AssertionFailedError: The runAs menu associated with project: liberty.maven.test.app does not contain one or more expected entries. Expected number of entries: 7Found entry count: 5. Found menu entries: [1 Liberty Start, 2 Liberty Start in Container, 3 Liberty Start..., 4 Liberty Stop, 5 Liberty Run Tests, , Run Configurations...] ==> expected: but was:
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:211)
at io.openliberty.tools.eclipse.test.it.LibertyPluginSWTBotMavenTest.validateBeforeTestRun(LibertyPluginSWTBotMavenTest.java:213)
at io.openliberty.tools.eclipse.test.it.LibertyPluginSWTBotMavenTest.setup(LibertyPluginSWTBotMavenTest.java:144)

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 by running LibertyPluginSWTBotMavenTest and inspect setup() at LibertyPluginSWTBotMavenTest.java:144 and validateBeforeTestRun() at line 213. Compare the expected seven Run As entries with the five entries reported for liberty.maven.test.app, then identify why the test is intermittent and make the setup validation pass consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.