Hi Vitor,

The tests on trunk continue to run as green on the local cruise 
instance. SWTBot captures screenshots of failed builds, could you post 
those screeshots so that I could investigate more ?

Also does the test fail because it's not able to open the view, the 
tests use eclipse's show view dialog. This dialog uses a tree which is 
what could be causing problems.

There have been problems reported with swtbot acting bad with trees 
because a lot of these trees use OpenStrategy which maintains a lot of 
state about events to decide to expand/collapse and open nodes.

-- Ketan

On 22/11/08 00:48, Vitor Rodrigues wrote:
> Hi all,
>
> I just checked out the latest code from SVN trunk. Everything compiles
> fine, but when I run tests for net.sf.swtbot.eclipse.finder, several
> tests are failing. First one to fail is on SWTBotViewTest.testOpenView,
> with following trace info:
>
> net.sf.swtbot.widgets.WidgetNotFoundException: Could not find widget
> with text SWTBot Test View
> at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:127)
> at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:93)
> at
> net.sf.swtbot.eclipse.finder.widgets.SWTBotView.<init>(SWTBotView.java:81)
> at net.sf.swtbot.eclipse.finder.SWTEclipseBot.view(SWTEclipseBot.java:65)
> at
> net.sf.swtbot.eclipse.finder.widgets.SWTBotViewTest.openSWTBotTestView(SWTBotViewTest.java:66)
> at
> net.sf.swtbot.eclipse.finder.widgets.SWTBotViewTest.testOpenView(SWTBotViewTest.java:57)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:599)
> at junit.framework.TestCase.runTest(TestCase.java:164)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at net.sf.swtbot.SWTBotTestCase.runBare(SWTBotTestCase.java:239)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at
> org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)
> at
> net.sf.swtbot.eclipse.ui.TestApplication.runTests(TestApplication.java:112)
> at
> org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:68)
> at java.lang.Thread.run(Thread.java:735)
> Caused by: net.sf.swtbot.widgets.TimeoutException: Timeout after: 5000
> ms.: Could not find widget
> at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:678)
> at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:639)
> at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:610)
> at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:114)
> ... 29 more
>
>
> The reason why I'm running these tests is because I have similar issues
> with code that was working fine in 1.2, but now with 2.0 returns
> widgetnotfoundexception for stuff like bot.menu("File").
>
> - Vitor
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK&  win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SWTBot-users mailing list
> SWTBot-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/swtbot-users
> http://swtbot.org/ - a functional testing tool for SWT/Eclipse
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to