Failure in LibertyPluginSWTBotGradleTest.testDashboardDebugWithCustomConfigAction - widget not found

Aperta
#433 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Inizia da LibertyPluginSWTBotGradleTest.testDashboardDebugWithCustomConfigAction e confronta la sua esecuzione con LibertyPluginSWTBotMavenTest. Traccia SWTBotPluginOperations.launchCustomDebugFromDashboard, setCustomStartParmsFromShell e MagicWidgetFinder.find intorno al problema segnalato, quindi riproduci il problema con diversi ordini dei test. Il lavoro è completato quando la causa è compresa e i test non dipendono più dall’ordine del workaround.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

testing

2023-09-08T19:44:40.2947775Z java.lang.RuntimeException: Unable to locate widget: Start parameters:
2023-09-08T19:44:40.2948419Z at io.openliberty.tools.eclipse.test.it.utils.MagicWidgetFinder.find(MagicWidgetFinder.java:1054)
2023-09-08T19:44:40.2949294Z at io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.setCustomStartParmsFromShell(SWTBotPluginOperations.java:541)
2023-09-08T19:44:40.2950363Z at io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.launchCustomDebugFromDashboard(SWTBotPluginOperations.java:523)
2023-09-08T19:44:40.2951532Z at io.openliberty.tools.eclipse.test.it.LibertyPluginSWTBotGradleTest.testDashboardDebugWithCustomConfigAction(LibertyPluginSWTBotGradleTest.java:428)

This failure was introduced by an earlier version of https://github.com/OpenLiberty/liberty-tools-eclipse/pull/428. It seemed to occur consistently on Linux in particular.

We decided to workaround the failure by configuring the tests to run in alphabetical order. Our guess is that the way to understand this fact is that the error is provoked by runningthe LibertyPluginSWTBotMavenTest tests before the LibertyPluginSWTBotGradleTest tests, and worked around when these are run in the opposite relative order, such that the Gradle tests are run first (it's conceivable there are other complicating factors, including possibly the other test classes).

Opening this issue to follow up on the failure, to understand it better. This will hopefully help us more generally under these SWTBot tests. It's not that running the tests in a predictable alphabetical order is necessarily bad, but we'd like to understand the failure while it's happening consistently, (as it was when merging the PR on top of the HEAD of https://github.com/OpenLiberty/liberty-tools-eclipse/commit/2fb4b6b2f3a87599c60e4571220eb593e5dd3cbe).

Lingua principale
Java
Stelle
16
Fork
20
Merge medio
16h 1m
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenLiberty/liberty-tools-eclipse

Tutte le issue di OpenLiberty/liberty-tools-eclipse

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.