swtbot-users Mailing List for SWTBot - SWT/Eclipse functional testing (Page 3)
Brought to you by:
kpadegaonkar
You can subscribe to this list here.
2008 |
Jan
|
Feb
(14) |
Mar
(6) |
Apr
|
May
(15) |
Jun
(126) |
Jul
(128) |
Aug
(31) |
Sep
(35) |
Oct
(188) |
Nov
(47) |
Dec
(19) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(25) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ketan P. <ket...@gm...> - 2008-12-17 12:36:53
|
Hi, I've checked in the source code into svn at eclipse.org. Most of the web pages have been moved to http://wiki.eclipse.org/SWTBot (thanks to Vitor). The new source repository repository lives at http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot/ Please file all bugs and support requests at bugs.eclipse.org and on the newsgroup on eclipse.swtbot -- Ketan |
From: Ketan P. <ket...@gm...> - 2008-12-17 12:36:17
|
Hi, I've checked in the source code into svn at eclipse.org. Most of the web pages have been moved to http://wiki.eclipse.org/SWTBot (thanks to Vitor). The new source repository repository lives at http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot/ Please file all bugs and support requests at bugs.eclipse.org and on the newsgroup on eclipse.swtbot -- Ketan |
From: Ketan P. <ket...@gm...> - 2008-12-05 14:18:28
|
You could write a matcher as follows: ofType(CDateTime.class, any_other_matchers...) The resolvers helps to drill down the UI to find all possible widgets. Since the CDateTime is a composite, you'll need to ensure that the CompositeResolver does not drill through the widget and find controls within CDateTime. You may also need to hack into the CompositeResolver to resolve Composites and not instances of Composites, and the matcher above should find you the widget. Reg sending notifications to event handlers, it's a matter of writing a SWTBotCDateTime class to send notifications to the control _within_ -- Ketan On 5/12/08 18:15, S. Winseth wrote: > Hi, > I'm trying to write some new test cases with swtbot 2.0. > > We now have a Nebula CDateTime Widget, that's opened by a Combo Button. > > How can I write a Matcher to get access to this widget? It wasn't necessary > to do something like that for our tests, until now... so I don't know where > to start! > > Thanks, > Winseth |
From: S. W. <wi...@gm...> - 2008-12-05 12:45:37
|
Hi, I'm trying to write some new test cases with swtbot 2.0. We now have a Nebula CDateTime Widget, that's opened by a Combo Button. How can I write a Matcher to get access to this widget? It wasn't necessary to do something like that for our tests, until now... so I don't know where to start! Thanks, Winseth -- View this message in context: http://www.nabble.com/Performance-optimization-for-SWTBot-tp20166739p20853094.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Paulin <pa...@sp...> - 2008-11-28 15:03:53
|
Congrats Hans, Any chance you could send it? I'd like to read it. steve On Fri, Nov 28, 2008 at 9:59 AM, Hans Schwaebli <han...@ya...>wrote: > I wrote an article on SWTBot recently. It has 6 pages and is a good > introduction I hope. There is also an interview with Ketan on the last page. > > My article is published in the German Eclipse Magazine in its current issue > number 01.2009. > > You can see the frontpage of the new edition on > http://www.eclipse-magazin.de/ soon. > > This is my first article and I am very happy. > > > ------------------------------------------------------------------------- > 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 > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > > |
From: Hans S. <han...@ya...> - 2008-11-28 14:59:47
|
I wrote an article on SWTBot recently. It has 6 pages and is a good introduction I hope. There is also an interview with Ketan on the last page. My article is published in the German Eclipse Magazine in its current issue number 01.2009. You can see the frontpage of the new edition on http://www.eclipse-magazin.de/ soon. This is my first article and I am very happy. |
From: Vitor R. <vac...@gm...> - 2008-11-27 18:48:26
|
Great news! Congrats again on being accepted into eclipse. - Vitor On Thu, Nov 27, 2008 at 10:23 AM, Ketan Padegaonkar < ket...@gm...> wrote: > Hi, > > The SWTBot project has been provisioned at eclipse.org. SWTBot will now > live at http://eclipse.org/swtbot > > I will eventually be checking in the SWTBot source code into the svn > repository at eclipse.org sometime during the next week, pending some IP > compliance. > > After the move I'll be suspending all activity on the existing mailing > lists and svn. Most of the project web content will be moved to the new > location, the existing web and svn content on sourceforge.net will > remain as is. > > Cheers! > > --Ketan > > ------------------------------------------------------------------------- > 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 > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > |
From: Ketan P. <ket...@gm...> - 2008-11-27 18:24:00
|
Hi, The SWTBot project has been provisioned at eclipse.org. SWTBot will now live at http://eclipse.org/swtbot I will eventually be checking in the SWTBot source code into the svn repository at eclipse.org sometime during the next week, pending some IP compliance. After the move I'll be suspending all activity on the existing mailing lists and svn. Most of the project web content will be moved to the new location, the existing web and svn content on sourceforge.net will remain as is. Cheers! --Ketan |
From: Jacek <ja...@gm...> - 2008-11-26 16:22:05
|
Unfortunately, I am running into some issues. When I try to get the Swing frame, I always get a Invalid thread access exception: Exception in thread "AWT-EventQueue-0" org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:3777) at org.eclipse.swt.SWT.error(SWT.java:3695) at org.eclipse.swt.SWT.error(SWT.java:3666) at org.eclipse.swt.widgets.Widget.error(Widget.java:463) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:355) at org.eclipse.swt.widgets.Widget.getStyle(Widget.java:661) at org.eclipse.swt.awt.SWT_AWT.getFrame(SWT_AWT.java:110) I've tried calling it directly from the unit and invoking it via SwingUtilities, e.g. SWTBotView cm = bot.view("Connection Manager"); assertNotNull("ConnectionManager view is null", cm); final Composite composite = (Composite) cm.widget; assertNotNull("Composite is null",composite); SwingUtilities.invokeLater(new Runnable() { public void run() { Frame swingFrame = SWT_AWT.getFrame(composite); assertNotNull("Swing frame is null",swingFrame); } }); but both approaches gave me the same exception. Any suggestions as to how I may get around it (and whether it is even possible)? -- View this message in context: http://www.nabble.com/Testing-Swing-components-in-an-RCP-app-tp20666693p20704213.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2008-11-25 09:37:16
|
Hitting CTRL+SHIFT+A shows me that the package org.eclipse.core.runtime.adaptor belongs to the org.eclipse.osgi plugin. You should not have this problem. Just try executing the rcp example in SVN to see if it works fine. -- Ketan On 25/11/08 02:24, Jacek wrote: > I changed everything (including modifying my target platform to include all > the 2.0 SWTBot bundles), but I still get the same exception: > > ava.lang.ClassNotFoundException: > org.eclipse.core.runtime.adaptor.EclipseStarter > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > > I poked around and I don't seee the org.eclipse.core.runtime.adaptor plugin > anywhere. It's neither in my target platform (that package is not visible in > the list of packages I can import into my bundle) and if I go to the > Ganymende 3.4.1 plugins folder it's not there either. > > I checked in the regular org.eclipse.core.runtime bundle and that package is > not in it at all, either. > > Any suggestion as to what else I am missing in my setup? |
From: Jacek <ja...@gm...> - 2008-11-24 20:54:27
|
I changed everything (including modifying my target platform to include all the 2.0 SWTBot bundles), but I still get the same exception: ava.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) I poked around and I don't seee the org.eclipse.core.runtime.adaptor plugin anywhere. It's neither in my target platform (that package is not visible in the list of packages I can import into my bundle) and if I go to the Ganymende 3.4.1 plugins folder it's not there either. I checked in the regular org.eclipse.core.runtime bundle and that package is not in it at all, either. Any suggestion as to what else I am missing in my setup? -- View this message in context: http://www.nabble.com/REPOST%3A-Failed-to-start-test-tp20664863p20669629.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2008-11-24 19:47:56
|
Yes, SWTBot needs to be installed both in the runtime instance (for launching SWTBot based tests) and in the target platform. Hanmcrest is only needed if you're on swtbot 2.0, and org.rcpmail is the dependency on the plugin under test. -- Ketan On 25/11/08 01:13, Jacek wrote: > OK, I have some issues, when I changed my manifest.mf files accordingly I get > the errors that: > > org.rcpmail, > net.sf.swtbot.eclipse.finder, > net.sf.swtbot.finder, > org.hamcrest;bundle-version="1.1.0" > > cannot be resolved (and SWTBot is installed via the update site). > > Does this mean they have to be added to my target platform? How do you > usually set it up for testing vs. production builds? |
From: Jacek <ja...@gm...> - 2008-11-24 19:43:36
|
OK, I have some issues, when I changed my manifest.mf files accordingly I get the errors that: org.rcpmail, net.sf.swtbot.eclipse.finder, net.sf.swtbot.finder, org.hamcrest;bundle-version="1.1.0" cannot be resolved (and SWTBot is installed via the update site). Does this mean they have to be added to my target platform? How do you usually set it up for testing vs. production builds? -- View this message in context: http://www.nabble.com/REPOST%3A-Failed-to-start-test-tp20664863p20668241.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2008-11-24 19:39:43
|
On 25/11/08 01:07, Jacek wrote: > BTW, should I stick to 1.0 or should we go with 2.0 at this point? I'd recommend moving to 2.0. It is quite stable, and 1.x is going to be phased out. The upcoming 1.3 is going to be the last of the 1.x branches. -- Ketan |
From: Jacek <ja...@gm...> - 2008-11-24 19:37:11
|
Ah, that explains it...the user guide should probably clarify that somewhat :-) I will change it and let you know right away. BTW, should I stick to 1.0 or should we go with 2.0 at this point? -- View this message in context: http://www.nabble.com/REPOST%3A-Failed-to-start-test-tp20664863p20668113.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2008-11-24 19:34:18
|
All swtbot jars should be plugin dependencies, and not referenced libraries. The manifest for the project containing test sources should look like the following: https://swtbot.svn.sourceforge.net/svnroot/swtbot/branches/java-1.5-api-spike/examples/rcp/org.rcpmail.test/META-INF/MANIFEST.MF -- Ketan On 25/11/08 01:00, Jacek wrote: > Yes, I followed the instructions. I have an Eclipse plugin as my RCP test. > > And the classpath of the plugin includes all the required jars, pls see > attached screenshot http://www.nabble.com/file/p20667968/swtbot.PNG > swtbot.PNG > > |
From: Jacek <ja...@gm...> - 2008-11-24 19:33:30
|
We can probably live with something like that. Test the SWT parts with SWTBot and the Swing parts with FEST. Thanks for the tip! Ketan Padegaonkar-2 wrote: > > No SWTBot does not provide for this. SWTBot currently only supports SWT > and eclipse. SWTBot can help you find out composites containing Swing > components. > > You can pull out swing panels using SWT_AWT#getFrame(Composite) and test > it using a swing testing library. > > I'd recommend using FEST (http://fest.easytesting.org/) for testing > swing panels. There is also Frankenstein written by a colleague on my > team (http://frankenstein.seleniumhq.org/) > > -- Ketan > > On 24/11/08 23:53, Jacek wrote: >> Does SWTBot provide any way to test Swing panels that are embedded in an >> SWT >> view using the SWT/Swing bridge? >> >> If not out of the box, is there any way to obtain a handle to the Swing >> panel/frame from SWTBot? > > ------------------------------------------------------------------------- > 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 > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > > -- View this message in context: http://www.nabble.com/Testing-Swing-components-in-an-RCP-app-tp20666693p20668023.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2008-11-24 19:31:22
|
No SWTBot does not provide for this. SWTBot currently only supports SWT and eclipse. SWTBot can help you find out composites containing Swing components. You can pull out swing panels using SWT_AWT#getFrame(Composite) and test it using a swing testing library. I'd recommend using FEST (http://fest.easytesting.org/) for testing swing panels. There is also Frankenstein written by a colleague on my team (http://frankenstein.seleniumhq.org/) -- Ketan On 24/11/08 23:53, Jacek wrote: > Does SWTBot provide any way to test Swing panels that are embedded in an SWT > view using the SWT/Swing bridge? > > If not out of the box, is there any way to obtain a handle to the Swing > panel/frame from SWTBot? |
From: Jacek <ja...@gm...> - 2008-11-24 19:30:22
|
Yes, I followed the instructions. I have an Eclipse plugin as my RCP test. And the classpath of the plugin includes all the required jars, pls see attached screenshot http://www.nabble.com/file/p20667968/swtbot.PNG swtbot.PNG -- View this message in context: http://www.nabble.com/REPOST%3A-Failed-to-start-test-tp20664863p20667968.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2008-11-24 19:21:44
|
Hi Jacek, Did you follow the instructions on the use guide? http://swtbot.sourceforge.net/users-guide.html On another note: you can use JUnit 4.0 for writing tests, but automated build process that runs these tests on cruise control or something else is not supported yet because of a pending bug with eclipse (https://bugs.eclipse.org/bugs/show_bug.cgi?id=153429) -- Ketan On 24/11/08 23:10, Jacek wrote: > REPOST: I posted this earlier, but was not subscribed to the list yet, so it > was rejected. Sorry for the dupe... > --------------------------------------------------------------------------------------------- > SWTBot newbie, trying to run my first test against a large Eclipse RCP app > with SWTBot 1.0 > > I created a new test class like this: > > public class RCPTest extends SWTBotEclipseTestCase { > > @Test > public void testOpeningConnectionManager() throws > WidgetNotFoundException { > > bot.menu("Adaptors").menu("Connection Management").click(); > > } > > } > > Set up Run -> Configuration to add a new launcher and pointed it to my app's > product. Our app launches fine on its own, but when I try to run the test, I > get an error launching the app: > > !SESSION Mon Nov 24 11:53:52 EST 2008 > ------------------------------------------ > !ENTRY org.eclipse.equinox.launcher 4 0 2008-11-24 11:53:52.371 > !MESSAGE Exception launching the Eclipse Platform: > !STACK > java.lang.ClassNotFoundException: > org.eclipse.core.runtime.adaptor.EclipseStarter > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:546) > at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) > at org.eclipse.equinox.launcher.Main.run(Main.java:1236) > at org.eclipse.equinox.launcher.Main.main(Main.java:1212) > > > Any idea what else am I missing in my setup? > > |
From: Jacek <ja...@gm...> - 2008-11-24 18:23:46
|
Does SWTBot provide any way to test Swing panels that are embedded in an SWT view using the SWT/Swing bridge? If not out of the box, is there any way to obtain a handle to the Swing panel/frame from SWTBot? -- View this message in context: http://www.nabble.com/Testing-Swing-components-in-an-RCP-app-tp20666693p20666693.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Jacek <ja...@gm...> - 2008-11-24 17:40:08
|
REPOST: I posted this earlier, but was not subscribed to the list yet, so it was rejected. Sorry for the dupe... --------------------------------------------------------------------------------------------- SWTBot newbie, trying to run my first test against a large Eclipse RCP app with SWTBot 1.0 I created a new test class like this: public class RCPTest extends SWTBotEclipseTestCase { @Test public void testOpeningConnectionManager() throws WidgetNotFoundException { bot.menu("Adaptors").menu("Connection Management").click(); } } Set up Run -> Configuration to add a new launcher and pointed it to my app's product. Our app launches fine on its own, but when I try to run the test, I get an error launching the app: !SESSION Mon Nov 24 11:53:52 EST 2008 ------------------------------------------ !ENTRY org.eclipse.equinox.launcher 4 0 2008-11-24 11:53:52.371 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:546) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) Any idea what else am I missing in my setup? -- View this message in context: http://www.nabble.com/REPOST%3A-Failed-to-start-test-tp20664863p20664863.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2008-11-23 04:59:41
|
Hi, There have been a ton of reports about trees being flaky with expand/select etc. I've myself observed this a couple of times. I've created bug http://swtbot.org/bugzilla/show_bug.cgi?id=143 to investigate and track this issue. Please add yourself to CC if this issue affects you and you are interested in tracking this issue, or have some information to help resolve this. -- Ketan On 23/11/08 08:30, Vitor Rodrigues wrote: > Hi Ketan, > > yes, it seems to be related with the tree. The tree is not expanded and > thus the view cannot be found. I'm attaching some screenshots. You can > see the junit test on the left, in the background. > > Regards, > Vitor > > On Fri, Nov 21, 2008 at 10:42 PM, Ketan Padegaonkar > <ket...@gm... <mailto:ket...@gm...>> wrote: > > 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=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/> > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > SWTBot-users mailing list > > SWT...@li... > <mailto:SWT...@li...> > > 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=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > <mailto:SWT...@li...> > 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 > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > |
From: Ketan P. <ket...@gm...> - 2008-11-22 06:42:45
|
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 > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > |
From: Vitor R. <vac...@gm...> - 2008-11-21 19:18:49
|
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 |