swtbot-users Mailing List for SWTBot - SWT/Eclipse functional testing (Page 2)
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: Yao Q. <qiy...@gm...> - 2009-01-06 03:38:06
|
On Tue, Jan 6, 2009 at 12:17 AM, Vincent Mahe <vin...@ir...> wrote: > Yao Qi a écrit : > > You must search for the tree | list and then for the tree item | list > item you are interested about in it. > > > Vincent, > > I add code snip shown as follows, > > SWTBotShell s = bot.shell("Main class as entry point"); // Find this > dialog, > assertNotNull (s); > s.activate(); > > tree = bot.tree(); > > got such error. If I replace Tree by List, got the same error. Am I > missing something? > > > Sorry > > I should have look at my source code before answer your request for help. > > What I do in my test (run Eclipse update site installs) for lists and trees: > > SWTBotTable table = bot.table(); > table.getTableItem("Ganymede Update Site").toggleCheck(); > table.getTableItem("The Eclipse Project Updates").toggleCheck(); Yeah, SWTBotTable works for me. // Select PoolHarness SWTBotTable table = bot.table(); int idx = table.indexOf("PoolHarness"); table.click(idx, 0); Vincent, thanks for your help. -- Yao GNU/Linux Developer |
From: Ketan P. <ket...@gm...> - 2009-01-05 16:23:10
|
You're possibly using a table, most 'lists' in eclipse are actually tables :) Also you need not assert on the shell being null, you'll *never* get a null, but a WidgetNotFoundException if any widget is not found. -- Ketan On 5/1/09 18:47, Yao Qi wrote: >> You must search for the tree | list and then for the tree item | list >> item you are interested about in it. > > Vincent, > > I add code snip shown as follows, > > SWTBotShell s = bot.shell("Main class as entry point"); // Find this dialog, > assertNotNull (s); > s.activate(); > > tree = bot.tree(); > > got such error. If I replace Tree by List, got the same error. Am I > missing something? > > net.sf.swtbot.widgets.WidgetNotFoundException: Could not find any tree > at net.sf.swtbot.SWTBot.tree(SWTBot.java:507) > at net.sf.swtbot.SWTBot.tree(SWTBot.java:493) > at com.ui.swtbot.TestMHPAnalysisProcess.testAnalyze(TestMHPAnalysisProcess.java:167) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:612) > at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99) > at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81) > at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34) > at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75) > at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45) > at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66) > at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35) > at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42) > at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34) > at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52) > at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) > 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:58) > 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) > > > > >> -- >> Cordialement >> >> Vincent MAHÉ >> >> Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org >> IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France >> Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> 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: Vincent M. <vin...@ir...> - 2009-01-05 16:17:46
|
Yao Qi a écrit : >> You must search for the tree | list and then for the tree item | list >> item you are interested about in it. >> > > Vincent, > > I add code snip shown as follows, > > SWTBotShell s = bot.shell("Main class as entry point"); // Find this dialog, > assertNotNull (s); > s.activate(); > > tree = bot.tree(); > > got such error. If I replace Tree by List, got the same error. Am I > missing something? > Sorry I should have look at my source code before answer your request for help. What I do in my test (run Eclipse update site installs) for lists and trees: SWTBotTable table = bot.table(); table.getTableItem("Ganymede Update Site").toggleCheck(); table.getTableItem("The Eclipse Project Updates").toggleCheck(); and SWTBotTreeItem openembeddSubTree = bot.tree().getTreeItem(labelID); openembeddSubTree.expand(); -- Cordialement Vincent MAHÉ Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 |
From: Yao Q. <qiy...@gm...> - 2009-01-05 13:17:40
|
>> > You must search for the tree | list and then for the tree item | list > item you are interested about in it. Vincent, I add code snip shown as follows, SWTBotShell s = bot.shell("Main class as entry point"); // Find this dialog, assertNotNull (s); s.activate(); tree = bot.tree(); got such error. If I replace Tree by List, got the same error. Am I missing something? net.sf.swtbot.widgets.WidgetNotFoundException: Could not find any tree at net.sf.swtbot.SWTBot.tree(SWTBot.java:507) at net.sf.swtbot.SWTBot.tree(SWTBot.java:493) at com.ui.swtbot.TestMHPAnalysisProcess.testAnalyze(TestMHPAnalysisProcess.java:167) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:612) at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99) at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81) at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34) at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75) at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45) at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66) at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35) at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42) at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34) at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) 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:58) 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) > > -- > Cordialement > > Vincent MAHÉ > > Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org > IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France > Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 > > > ------------------------------------------------------------------------------ > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > -- Yao GNU/Linux Developer |
From: Vincent M. <vin...@ir...> - 2009-01-05 09:33:33
|
Yao Qi a écrit : > My application's workflow is > 1) right click a project, > 2) got a dialog listing all the main classes in this project, > 3) select one main classes, and click 'OK', > > I want simulate this process via SWTBot, and we've use SWTBot to find > that project, right click it, and find that shell successfully. The > problem we got is how to select the main class in this dialog via > SWTBot. We know the name of that main class, but don't know how to > select this main class via SWTBot. > > I believe that this should be done by SWTBot, but unfortunately, I > could not get any hints from google. Could anyone here give some > hints or comments on this? Thanks in advance. > > You must search for the tree | list and then for the tree item | list item you are interested about in it. -- Cordialement Vincent MAHÉ Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 |
From: Yao Q. <qiy...@gm...> - 2009-01-05 05:14:19
|
My application's workflow is 1) right click a project, 2) got a dialog listing all the main classes in this project, 3) select one main classes, and click 'OK', I want simulate this process via SWTBot, and we've use SWTBot to find that project, right click it, and find that shell successfully. The problem we got is how to select the main class in this dialog via SWTBot. We know the name of that main class, but don't know how to select this main class via SWTBot. I believe that this should be done by SWTBot, but unfortunately, I could not get any hints from google. Could anyone here give some hints or comments on this? Thanks in advance. -- Yao GNU/Linux Developer |
From: Yao Q. <qiy...@gm...> - 2009-01-05 04:57:56
|
On Mon, Dec 29, 2008 at 11:50 AM, Ketan Padegaonkar <ket...@gm...> wrote: > Hi Yao, > > You'll need the following on your classpath: > > <include name="org.eclipse.swt.*.jar" /> > <include name="org.eclipse.equinox.common_*.jar" /> > <include name="org.eclipse.jface_*.jar" /> > <include name="org.eclipse.core.runtime_*.jar" /> > <include name="org.eclipse.core.commands_*.jar" /> > <include name="org.junit_*/junit*.jar" /> > > <include name="org.apache.commons.collections_3.2.0*.jar" /> > <include name="org.apache.log4j_1.2.*.jar" /> > <include name="org.hamcrest_*.jar" /> > > I've opened up bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=259731 > to reduce the dependency footprint, please add yourself to CC to keep > track and know when this is completed. Ketan, I followed your instructions above, and run my first SWTBot junit test case successfully. Thanks a lot. > > -- Ketan > > > On 28/12/08 22:13, Yao Qi wrote: >> Hello, >> I installed the latest SWTBot release, and try to run SWTBot example >> showed on its webpage. However, I got such error. Could anyone here >> tell me what I should do? >> >> >> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Assert >> at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:654) >> at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:641) >> at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:614) >> at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:119) >> at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:98) >> at net.sf.swtbot.eclipse.finder.widgets.SWTBotView.<init>(SWTBotView.java:85) >> at net.sf.swtbot.eclipse.finder.SWTEclipseBot.view(SWTEclipseBot.java:70) >> at TestAbbot.testDoSomethingInterestingWithEclipse(TestAbbot.java:11) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at junit.framework.TestCase.runTest(TestCase.java:164) >> at junit.framework.TestCase.runBare(TestCase.java:130) >> at net.sf.swtbot.SWTBotTestCase.runBare(SWTBotTestCase.java:234) >> 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 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:58) >> 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:619) >> Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.Assert >> at java.lang.ClassLoader.findClass(ClassLoader.java:358) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) >> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) >> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) >> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >> ... 30 more >> >> >> >> >> > > ------------------------------------------------------------------------------ > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > -- Yao GNU/Linux Developer |
From: diyfiesta <tob...@gm...> - 2009-01-02 10:37:57
|
Great, thanks Ketan, I just stumpled upon that class when I got this and noticed http://swtbot.org/bugzilla/show_bug.cgi?id=19 too! I'll have a play and see if it works for me ;) All the best, Toby ps, is this mailing list still the prefered one? The Eclipse.org project home seems like it just has a dev list? Ketan Padegaonkar-2 wrote: > > Although an bit out of date, you may want to look at the javadoc for > EventContextMenuFinder. > > It's used in SWTBotToolbarDropDownButton#menuItem. > > It's used to find context menus generated in a way similar to the one > you're mentioning here. > > -- Ketan > > On Fri, Jan 2, 2009 at 3:51 PM, diyfiesta <tob...@gm...> wrote: >> >> Hi, >> >> Am I right in thinking that the context menu is retrieved using the >> ContextMenuFinder at the getMenu() method of the Control class? If so, I >> wondered if/how it might support menus that weren't added via the >> setMenu() >> method. For example, the TrayItem can have a popup associated with it by >> adding a SWT.MenuDetect listener, but I can't think of a neat way to get >> this back with SWTBot... >> >> Cheers, >> Toby >> >> >> Vincent Mahe wrote: >>> >>> Veneet a écrit : >>>> so i can substitute it for a right click action rite???? >>>> >>> Yes. >>> SWTBot has few direct accesses to the GUI layer so it proceeds mainly >>> with methods offered by SWT widgets, like list of the context menus. >>> As we want to test our applications interface with users, and not how >>> GTK or WIN32 work, it is a good way to write conceptual commands to the >>> interface, in my opinion :-). >>> >>> -- >>> Cordialement >>> >>> Vincent MAHÉ >>> >>> Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org >>> IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France >>> Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 >>> >>> >>> ------------------------------------------------------------------------- >>> 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/can-right_click-be-performed-in-SWTbot---tp19854779p21249743.html >> Sent from the SWTBot Users List mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> SWTBot-users mailing list >> SWT...@li... >> https://lists.sourceforge.net/lists/listinfo/swtbot-users >> http://swtbot.org/ - a functional testing tool for SWT/Eclipse >> >> > > > > -- > Ketan Padegaonkar > I blog... therefore I am... http://ketan.padegaonkar.name > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > ------------------------------------------------------------------------------ > _______________________________________________ > 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/can-right_click-be-performed-in-SWTbot---tp19854779p21249857.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2009-01-02 10:33:39
|
Although an bit out of date, you may want to look at the javadoc for EventContextMenuFinder. It's used in SWTBotToolbarDropDownButton#menuItem. It's used to find context menus generated in a way similar to the one you're mentioning here. -- Ketan On Fri, Jan 2, 2009 at 3:51 PM, diyfiesta <tob...@gm...> wrote: > > Hi, > > Am I right in thinking that the context menu is retrieved using the > ContextMenuFinder at the getMenu() method of the Control class? If so, I > wondered if/how it might support menus that weren't added via the setMenu() > method. For example, the TrayItem can have a popup associated with it by > adding a SWT.MenuDetect listener, but I can't think of a neat way to get > this back with SWTBot... > > Cheers, > Toby > > > Vincent Mahe wrote: >> >> Veneet a écrit : >>> so i can substitute it for a right click action rite???? >>> >> Yes. >> SWTBot has few direct accesses to the GUI layer so it proceeds mainly >> with methods offered by SWT widgets, like list of the context menus. >> As we want to test our applications interface with users, and not how >> GTK or WIN32 work, it is a good way to write conceptual commands to the >> interface, in my opinion :-). >> >> -- >> Cordialement >> >> Vincent MAHÉ >> >> Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org >> IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France >> Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 >> >> >> ------------------------------------------------------------------------- >> 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/can-right_click-be-performed-in-SWTbot---tp19854779p21249743.html > Sent from the SWTBot Users List mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > -- Ketan Padegaonkar I blog... therefore I am... http://ketan.padegaonkar.name http://swtbot.org/ - a functional testing tool for SWT/Eclipse |
From: diyfiesta <tob...@gm...> - 2009-01-02 10:21:29
|
Hi, Am I right in thinking that the context menu is retrieved using the ContextMenuFinder at the getMenu() method of the Control class? If so, I wondered if/how it might support menus that weren't added via the setMenu() method. For example, the TrayItem can have a popup associated with it by adding a SWT.MenuDetect listener, but I can't think of a neat way to get this back with SWTBot... Cheers, Toby Vincent Mahe wrote: > > Veneet a écrit : >> so i can substitute it for a right click action rite???? >> > Yes. > SWTBot has few direct accesses to the GUI layer so it proceeds mainly > with methods offered by SWT widgets, like list of the context menus. > As we want to test our applications interface with users, and not how > GTK or WIN32 work, it is a good way to write conceptual commands to the > interface, in my opinion :-). > > -- > Cordialement > > Vincent MAHÉ > > Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org > IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France > Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 > > > ------------------------------------------------------------------------- > 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/can-right_click-be-performed-in-SWTbot---tp19854779p21249743.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Toby <tob...@gm...> - 2008-12-30 16:28:48
|
Hello, Just been playing with the SWTBotText and noticed that the caret doesn't move when setting the text. I was looking at the code and expected the call to notify (with keyDown and keyUp) to be recieved by the underlying text box and for it to update itself but the notifyKeyboardEvent actually sets it with setText. Bit confused about how it should work here, as when I enable logging I don't see anything happening in AbstractSWTBot.notify method, as if the notify isn't actually being received by any listeners?! I might be a bit muddled here so should the caret be moved when setting the text in a text box? I was trying to implement a select all thing where the entire contents of the box are selected. Seems like SWT wont allow me to do use Ctrl + A so I was trying to simulate it with a Shift + END thing. Thanks :D -- Toby |
From: diyfiesta <tob...@gm...> - 2008-12-30 13:59:32
|
Hi, Will do, I'm always interested in having a go so with a bit of orientation / direction from your good self perhaps, I can have a go a patch :D Cheers, Toby Ketan Padegaonkar-2 wrote: > > Toby, > > There's no support for Tray and TrayItem, please file a bug and I'll > take a look at it. > > Patches welcome :) > > -- Ketan > > On 30/12/08 18:22, Toby wrote: >> Hello, >> >> Just wondered if SWTBot has Tray and TrayItem support? I couldn't find >> anything, did I miss it? >> >> Thanks in advance, >> >> -- >> Toby >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> > -- View this message in context: http://www.nabble.com/Tray-and-TrayItem-support-for-SWTBot-tp21216801p21217520.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Toby <tob...@gm...> - 2008-12-30 13:51:21
|
Great, thanks for the reply. Please find the bug/patch at https://bugs.eclipse.org/bugs/show_bug.cgi?id=259787 All the best, Toby > Message: 4 > Date: Tue, 30 Dec 2008 05:56:21 +0530 > From: Ketan Padegaonkar <ket...@gm...> > Subject: Re: [SWTBot-users] JUnit 4 test runner > To: swt...@li... > Message-ID: <495...@gm...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Nice :) > > Could you file the patch at bugs.eclipse.org, and I could look at it. > > One of the reasons for not having junit 4 support is that junit4 support > is lacking in the eclipse testing framework > (https://bugs.eclipse.org/bugs/show_bug.cgi?id=153429) > > Please add a comment to the above bug to let the folks know that you > need it as well. > > -- Ketan > > On 30/12/08 18:07, Toby wrote: > > Hello, > > > > Just started looking at SWTBot which looks great. I wondered though why > > there didn't seem to be JUnit 4 test runner support? I couldn't see > > anything in the source so I created a runner (see patch below) which > > means you can start a test like below. > > > > > > @RunWith(SWTBotRunner.class) > > public class FooTest { > > > > private final SWTBot bot = new SWTBot(); > > > > @BeforeClass > > public static void startTheApplication() throws TimeoutException, > > InterruptedException { > > new Thread(new Runnable() { > > public void run() { > > Main.main(); > > } > > }).start(); > > waitForDisplay(5, SECONDS); > > } > > > > @Test > > public void rightClickStartsConfiguration() throws Exception { > > bot.button("click me").click(); > > bot.button("you just clicked me!").click(); > > } > > > > private static void waitForDisplay(long timeout, TimeUnit unit) throws > > TimeoutException, InterruptedException { > > long endTime = System.currentTimeMillis() + unit.toMillis(timeout); > > while (System.currentTimeMillis() < endTime) { > > try { > > Display display = SWTUtils.display(); > > if (display != null) > > return; > > } catch (Exception e) { > > } > > Thread.sleep(100); > > } > > throw new TimeoutException("timed out"); > > } > > > > } > > > > Seems to work for me, does it look about right to you guys? > > > > Cheers, > > Toby > > > > > > ### Eclipse Workspace Patch 1.0 > > #P net.sf.swtbot.finder > > Index: .classpath > > =================================================================== > > --- .classpath (revision 1233) > > +++ .classpath (working copy) > > @@ -1,11 +1,12 @@ > > -<?xml version="1.0" encoding="UTF-8"?> > > -<classpath> > > - <classpathentry kind="con" > > > path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> > > - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> > > - <accessrules> > > - <accessrule kind="accessible" pattern="**"/> > > - </accessrules> > > - </classpathentry> > > - <classpathentry kind="src" path="src"/> > > - <classpathentry kind="output" path="bin"/> > > -</classpath> > > +<?xml version="1.0" encoding="UTF-8"?> > > +<classpath> > > + <classpathentry kind="con" > > > path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> > > + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> > > + <accessrules> > > + <accessrule kind="accessible" pattern="**"/> > > + </accessrules> > > + </classpathentry> > > + <classpathentry kind="src" path="src"/> > > + <classpathentry kind="lib" > > path="/net.sf.swtbot.build/libs/junit-4.4.jar"/> > > + <classpathentry kind="output" path="bin"/> > > +</classpath> > > Index: src/net/sf/swtbot/SWTBotRunner.java > > =================================================================== > > --- src/net/sf/swtbot/SWTBotRunner.java (revision 0) > > +++ src/net/sf/swtbot/SWTBotRunner.java (revision 0) > > @@ -0,0 +1,41 @@ > > +package net.sf.swtbot; > > + > > +import java.io.File; > > +import java.lang.reflect.InvocationTargetException; > > +import java.lang.reflect.Method; > > + > > +import net.sf.swtbot.utils.ClassUtils; > > + > > +import org.junit.internal.runners.InitializationError; > > +import org.junit.internal.runners.JUnit4ClassRunner; > > +import org.junit.internal.runners.TestMethod; > > + > > +public class SWTBotRunner extends JUnit4ClassRunner { > > + > > + public SWTBotRunner(Class<?> klass) throws InitializationError { > > + super(klass); > > + } > > + > > + @Override > > + protected TestMethod wrapMethod(final Method method) { > > + return new TestMethod(method, getTestClass()) { > > + @Override > > + public void invoke(Object test) throws IllegalArgumentException, > > IllegalAccessException, InvocationTargetException { > > + try { > > + method.invoke(test); > > + } catch (Throwable e) { > > + captureScreenshot(); > > + throw new InvocationTargetException(e); > > + } > > + } > > + }; > > + } > > + > > + private void captureScreenshot() { > > + String fileName = "screenshots/screenshot-" + > > ClassUtils.simpleClassName(getClass()) + "." + getName() + ".png"; > > + new File("screenshots").mkdirs(); > > + SWTBotTestCase.captureScreenshot(fileName); > > + } > > + > > +} > > + > > > > > > -- > > Toby > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > SWTBot-users mailing list > > SWT...@li... > > https://lists.sourceforge.net/lists/listinfo/swtbot-users > > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > > > > > ------------------------------ > > > ------------------------------------------------------------------------------ > > > ------------------------------ > > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > > > End of SWTBot-users Digest, Vol 10, Issue 3 > ******************************************* > -- Toby |
From: Ketan P. <ket...@gm...> - 2008-12-30 13:27:58
|
Toby, There's no support for Tray and TrayItem, please file a bug and I'll take a look at it. Patches welcome :) -- Ketan On 30/12/08 18:22, Toby wrote: > Hello, > > Just wondered if SWTBot has Tray and TrayItem support? I couldn't find > anything, did I miss it? > > Thanks in advance, > > -- > Toby > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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-12-30 13:27:18
|
Nice :) Could you file the patch at bugs.eclipse.org, and I could look at it. One of the reasons for not having junit 4 support is that junit4 support is lacking in the eclipse testing framework (https://bugs.eclipse.org/bugs/show_bug.cgi?id=153429) Please add a comment to the above bug to let the folks know that you need it as well. -- Ketan On 30/12/08 18:07, Toby wrote: > Hello, > > Just started looking at SWTBot which looks great. I wondered though why > there didn't seem to be JUnit 4 test runner support? I couldn't see > anything in the source so I created a runner (see patch below) which > means you can start a test like below. > > > @RunWith(SWTBotRunner.class) > public class FooTest { > > private final SWTBot bot = new SWTBot(); > > @BeforeClass > public static void startTheApplication() throws TimeoutException, > InterruptedException { > new Thread(new Runnable() { > public void run() { > Main.main(); > } > }).start(); > waitForDisplay(5, SECONDS); > } > > @Test > public void rightClickStartsConfiguration() throws Exception { > bot.button("click me").click(); > bot.button("you just clicked me!").click(); > } > > private static void waitForDisplay(long timeout, TimeUnit unit) throws > TimeoutException, InterruptedException { > long endTime = System.currentTimeMillis() + unit.toMillis(timeout); > while (System.currentTimeMillis() < endTime) { > try { > Display display = SWTUtils.display(); > if (display != null) > return; > } catch (Exception e) { > } > Thread.sleep(100); > } > throw new TimeoutException("timed out"); > } > > } > > Seems to work for me, does it look about right to you guys? > > Cheers, > Toby > > > ### Eclipse Workspace Patch 1.0 > #P net.sf.swtbot.finder > Index: .classpath > =================================================================== > --- .classpath (revision 1233) > +++ .classpath (working copy) > @@ -1,11 +1,12 @@ > -<?xml version="1.0" encoding="UTF-8"?> > -<classpath> > - <classpathentry kind="con" > path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> > - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> > - <accessrules> > - <accessrule kind="accessible" pattern="**"/> > - </accessrules> > - </classpathentry> > - <classpathentry kind="src" path="src"/> > - <classpathentry kind="output" path="bin"/> > -</classpath> > +<?xml version="1.0" encoding="UTF-8"?> > +<classpath> > + <classpathentry kind="con" > path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> > + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> > + <accessrules> > + <accessrule kind="accessible" pattern="**"/> > + </accessrules> > + </classpathentry> > + <classpathentry kind="src" path="src"/> > + <classpathentry kind="lib" > path="/net.sf.swtbot.build/libs/junit-4.4.jar"/> > + <classpathentry kind="output" path="bin"/> > +</classpath> > Index: src/net/sf/swtbot/SWTBotRunner.java > =================================================================== > --- src/net/sf/swtbot/SWTBotRunner.java (revision 0) > +++ src/net/sf/swtbot/SWTBotRunner.java (revision 0) > @@ -0,0 +1,41 @@ > +package net.sf.swtbot; > + > +import java.io.File; > +import java.lang.reflect.InvocationTargetException; > +import java.lang.reflect.Method; > + > +import net.sf.swtbot.utils.ClassUtils; > + > +import org.junit.internal.runners.InitializationError; > +import org.junit.internal.runners.JUnit4ClassRunner; > +import org.junit.internal.runners.TestMethod; > + > +public class SWTBotRunner extends JUnit4ClassRunner { > + > + public SWTBotRunner(Class<?> klass) throws InitializationError { > + super(klass); > + } > + > + @Override > + protected TestMethod wrapMethod(final Method method) { > + return new TestMethod(method, getTestClass()) { > + @Override > + public void invoke(Object test) throws IllegalArgumentException, > IllegalAccessException, InvocationTargetException { > + try { > + method.invoke(test); > + } catch (Throwable e) { > + captureScreenshot(); > + throw new InvocationTargetException(e); > + } > + } > + }; > + } > + > + private void captureScreenshot() { > + String fileName = "screenshots/screenshot-" + > ClassUtils.simpleClassName(getClass()) + "." + getName() + ".png"; > + new File("screenshots").mkdirs(); > + SWTBotTestCase.captureScreenshot(fileName); > + } > + > +} > + > > > -- > Toby > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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: Toby <tob...@gm...> - 2008-12-30 12:52:46
|
Hello, Just wondered if SWTBot has Tray and TrayItem support? I couldn't find anything, did I miss it? Thanks in advance, -- Toby |
From: Toby <tob...@gm...> - 2008-12-30 12:37:34
|
Hello, Just started looking at SWTBot which looks great. I wondered though why there didn't seem to be JUnit 4 test runner support? I couldn't see anything in the source so I created a runner (see patch below) which means you can start a test like below. @RunWith(SWTBotRunner.class) public class FooTest { private final SWTBot bot = new SWTBot(); @BeforeClass public static void startTheApplication() throws TimeoutException, InterruptedException { new Thread(new Runnable() { public void run() { Main.main(); } }).start(); waitForDisplay(5, SECONDS); } @Test public void rightClickStartsConfiguration() throws Exception { bot.button("click me").click(); bot.button("you just clicked me!").click(); } private static void waitForDisplay(long timeout, TimeUnit unit) throws TimeoutException, InterruptedException { long endTime = System.currentTimeMillis() + unit.toMillis(timeout); while (System.currentTimeMillis() < endTime) { try { Display display = SWTUtils.display(); if (display != null) return; } catch (Exception e) { } Thread.sleep(100); } throw new TimeoutException("timed out"); } } Seems to work for me, does it look about right to you guys? Cheers, Toby ### Eclipse Workspace Patch 1.0 #P net.sf.swtbot.finder Index: .classpath =================================================================== --- .classpath (revision 1233) +++ .classpath (working copy) @@ -1,11 +1,12 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> - <accessrules> - <accessrule kind="accessible" pattern="**"/> - </accessrules> - </classpathentry> - <classpathentry kind="src" path="src"/> - <classpathentry kind="output" path="bin"/> -</classpath> +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> + <accessrules> + <accessrule kind="accessible" pattern="**"/> + </accessrules> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="lib" path="/net.sf.swtbot.build/libs/junit-4.4.jar"/> + <classpathentry kind="output" path="bin"/> +</classpath> Index: src/net/sf/swtbot/SWTBotRunner.java =================================================================== --- src/net/sf/swtbot/SWTBotRunner.java (revision 0) +++ src/net/sf/swtbot/SWTBotRunner.java (revision 0) @@ -0,0 +1,41 @@ +package net.sf.swtbot; + +import java.io.File; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; + +import net.sf.swtbot.utils.ClassUtils; + +import org.junit.internal.runners.InitializationError; +import org.junit.internal.runners.JUnit4ClassRunner; +import org.junit.internal.runners.TestMethod; + +public class SWTBotRunner extends JUnit4ClassRunner { + + public SWTBotRunner(Class<?> klass) throws InitializationError { + super(klass); + } + + @Override + protected TestMethod wrapMethod(final Method method) { + return new TestMethod(method, getTestClass()) { + @Override + public void invoke(Object test) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { + try { + method.invoke(test); + } catch (Throwable e) { + captureScreenshot(); + throw new InvocationTargetException(e); + } + } + }; + } + + private void captureScreenshot() { + String fileName = "screenshots/screenshot-" + ClassUtils.simpleClassName(getClass()) + "." + getName() + ".png"; + new File("screenshots").mkdirs(); + SWTBotTestCase.captureScreenshot(fileName); + } + +} + -- Toby |
From: Qin Y. C. <che...@cn...> - 2008-12-29 06:21:50
|
I will be out of the office starting 2008-12-29 and will not return until 2009-01-03. I am in vacation. I am not available for mail. My mobile number is 13916810415.Jia Sheng(gu...@cn...) and Zhe(di...@cn...) are my backup. Jia Sheng is my backup. His mailbox is gu...@cn... |
From: Qin Y. C. <che...@cn...> - 2008-12-29 06:20:46
|
I will be out of the office starting 2008-12-29 and will not return until 2009-01-03. I am in vacation. I am not available for mail. My mobile number is 13916810415.Jia Sheng(gu...@cn...) and Zhe(di...@cn...) are my backup. Jia Sheng is my backup. His mailbox is gu...@cn... |
From: Ketan P. <ket...@gm...> - 2008-12-29 03:51:04
|
Hi Yao, You'll need the following on your classpath: <include name="org.eclipse.swt.*.jar" /> <include name="org.eclipse.equinox.common_*.jar" /> <include name="org.eclipse.jface_*.jar" /> <include name="org.eclipse.core.runtime_*.jar" /> <include name="org.eclipse.core.commands_*.jar" /> <include name="org.junit_*/junit*.jar" /> <include name="org.apache.commons.collections_3.2.0*.jar" /> <include name="org.apache.log4j_1.2.*.jar" /> <include name="org.hamcrest_*.jar" /> I've opened up bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=259731 to reduce the dependency footprint, please add yourself to CC to keep track and know when this is completed. -- Ketan On 28/12/08 22:13, Yao Qi wrote: > Hello, > I installed the latest SWTBot release, and try to run SWTBot example > showed on its webpage. However, I got such error. Could anyone here > tell me what I should do? > > > java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Assert > at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:654) > at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:641) > at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:614) > at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:119) > at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:98) > at net.sf.swtbot.eclipse.finder.widgets.SWTBotView.<init>(SWTBotView.java:85) > at net.sf.swtbot.eclipse.finder.SWTEclipseBot.view(SWTEclipseBot.java:70) > at TestAbbot.testDoSomethingInterestingWithEclipse(TestAbbot.java:11) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at junit.framework.TestCase.runTest(TestCase.java:164) > at junit.framework.TestCase.runBare(TestCase.java:130) > at net.sf.swtbot.SWTBotTestCase.runBare(SWTBotTestCase.java:234) > 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 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:58) > 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:619) > Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.Assert > at java.lang.ClassLoader.findClass(ClassLoader.java:358) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) > at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) > at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) > at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > ... 30 more > > > > > |
From: Yao Q. <qiy...@gm...> - 2008-12-28 16:43:50
|
Hello, I installed the latest SWTBot release, and try to run SWTBot example showed on its webpage. However, I got such error. Could anyone here tell me what I should do? java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Assert at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:654) at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:641) at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:614) at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:119) at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:98) at net.sf.swtbot.eclipse.finder.widgets.SWTBotView.<init>(SWTBotView.java:85) at net.sf.swtbot.eclipse.finder.SWTEclipseBot.view(SWTEclipseBot.java:70) at TestAbbot.testDoSomethingInterestingWithEclipse(TestAbbot.java:11) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at net.sf.swtbot.SWTBotTestCase.runBare(SWTBotTestCase.java:234) 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 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:58) 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:619) Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.Assert at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 30 more -- Yao GNU/Linux Developer |
From: Ketan P. <ket...@gm...> - 2008-12-19 13:57:39
|
You'll need to navigate to Technology>SWTBot. The direct link is: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=SWTBot -- Ketan On 19/12/08 18:29, Hans Schwaebli wrote: > If I go to page > https://bugs.eclipse.org/bugs/enter_bug_wizard.cgi > I cannot choose SWTBot but only categories: > > * Eclipse itself > * Birt - Business Intelligence and Reporting Tools > * CDT - C/C++ IDE > * TPTP - Test and Performance Tools > * WebTools > * An Eclipse plugin > * An Eclipse plugin/component I installed from another source > * The Eclipse website, newsgroups, mailing lists, etc. > > > Can you please post the direct link to the Bugzilla for SWTBot at the > Eclipse site? > > > > --- On *Wed, 12/17/08, Ketan Padegaonkar /<ket...@gm...>/* > wrote: > > From: Ketan Padegaonkar <ket...@gm...> > Subject: [SWTBot-users] Please file all bugs on bugs.eclipse.org > To: swt...@li... > Date: Wednesday, December 17, 2008, 7:35 AM > > 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 > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register > at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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-12-19 12:59:15
|
If I go to page https://bugs.eclipse.org/bugs/enter_bug_wizard.cgi I cannot choose SWTBot but only categories: Eclipse itselfBirt - Business Intelligence and Reporting ToolsCDT - C/C++ IDETPTP - Test and Performance ToolsWebToolsAn Eclipse pluginAn Eclipse plugin/component I installed from another sourceThe Eclipse website, newsgroups, mailing lists, etc. Can you please post the direct link to the Bugzilla for SWTBot at the Eclipse site? --- On Wed, 12/17/08, Ketan Padegaonkar <ket...@gm...> wrote: From: Ketan Padegaonkar <ket...@gm...> Subject: [SWTBot-users] Please file all bugs on bugs.eclipse.org To: swt...@li... Date: Wednesday, December 17, 2008, 7:35 AM 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 ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ 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-12-18 03:34:15
|
Done, took me a while to figure out, but it works well, finally. -- Ketan On 17/12/08 21:14, Hans Schwaebli wrote: > Can you please close the old Bugzilla then, or make it read only or so? > > > > --- On *Wed, 12/17/08, Ketan Padegaonkar /<ket...@gm...>/* > wrote: > > From: Ketan Padegaonkar <ket...@gm...> > Subject: [SWTBot-users] Please file all bugs and support requests on > eclipse.org. > To: swt...@li... > Date: Wednesday, December 17, 2008, 7:36 AM > > 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 > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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-12-17 15:44:34
|
Can you please close the old Bugzilla then, or make it read only or so? --- On Wed, 12/17/08, Ketan Padegaonkar <ket...@gm...> wrote: From: Ketan Padegaonkar <ket...@gm...> Subject: [SWTBot-users] Please file all bugs and support requests on eclipse.org. To: swt...@li... Date: Wednesday, December 17, 2008, 7:36 AM 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 ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ SWTBot-users mailing list SWT...@li... https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse |