Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ice-dev] test failures

Greg,

This error means that SWTBot can't find the widget it's looking for, which is usually a timing issue with the widget not being created before SWTBot times out. It's nothing wrong with your setup, just a race condition that the test sometimes fails. I've just pushed a changer to next that should make this less common. 

As an unrelated aside, while you're running the build you may want to keep focus on ICE and avoid touching the keyboard or mouse while SWTBot tests are running. Doing anything might cause the test to fail, and SWTBot can even click or type in other programs if they have focus while it's running.

Robert
________________________________________
From: ice-dev-bounces@xxxxxxxxxxx <ice-dev-bounces@xxxxxxxxxxx> on behalf of Greg Watson <greg@watson.earth>
Sent: Wednesday, February 24, 2016 10:29 AM
To: ice developer discussions
Subject: [ice-dev] test failures

Hi,

I’m trying to build ICE locally, but I’m getting test errors (not failures) in org.eclipse.ice.client.widgets.test. Here is an example of some of the errors:

Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 22.72 sec <<< FAILURE! - in org.eclipse.ice.client.widgets.test.ICEResourcePageTester
checkConstruction(org.eclipse.ice.client.widgets.test.ICEResourcePageTester)  Time elapsed: 0.143 sec  <<< ERROR!
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: The widget was null.
        at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:104)
        at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl.<init>(AbstractSWTBotControl.java:47)
        at org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.<init>(SWTBotShell.java:49)
        at org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.<init>(SWTBotShell.java:38)
        at org.eclipse.swtbot.swt.finder.SWTBotFactory.activeShell(SWTBotFactory.java:376)
        at org.eclipse.swtbot.swt.finder.SWTBotFactory.menu(SWTBotFactory.java:210)
        at org.eclipse.swtbot.swt.finder.SWTBotFactory.menu(SWTBotFactory.java:200)
        at org.eclipse.ice.client.widgets.test.utils.AbstractWorkbenchTester.openView(AbstractWorkbenchTester.java:272)
        at org.eclipse.ice.client.widgets.test.ICEResourcePageTester.beforeAllTests(ICEResourcePageTester.java:109)

…

Results :

Tests in error:
  ICEResourcePageTester.beforeEachTest:141->AbstractWorkbenchTester.beforeEachTest:122->AbstractICEUITester.beforeEachTest:155->beforeAllTests:109->AbstractWorkbenchTester.openView:272 » WidgetNotFound
  ICEResourcePageTester.beforeEachTest:145 » WidgetNotFound Could not find edito...
  ICEResourcePageTester.beforeEachTest:145 » WidgetNotFound Could not find edito...
  ICEResourcePageTester.beforeEachTest:145 » WidgetNotFound Could not find edito...
  ICEResourcePageTester>AbstractICEUITester.afterClass:210->afterAllTests:174 » WidgetNotFound

Tests run: 42, Failures: 0, Errors: 5, Skipped: 0

It looks like this is related to swtbot, but it seems to be installed in my Eclipse instance (I’m using ICE). Can anyone help?

Thanks,
Greg
_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev


Back to the top