swtbot-users Mailing List for SWTBot - SWT/Eclipse functional testing
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 Qi <qiy...@gm...> - 2013-07-21 08:58:59
|
http://sagaconnect.in/lgnn/evublfopvb.mdipzgvarlbauwbewb |
From: Ketan P. <ket...@gm...> - 2010-01-15 00:56:52
|
Hi, Firstly this list is deprecated. See http://wiki.eclipse.org/SWTBot/Support for the new forums to ask support. To answer your question: No you can't. Part of swtbot has to sit within your product for this to happen. SWTBot cannot see or test your application without an some sort of an agent sitting inside your application. To be able to test this, you'll need another product configuration with swtbot features in it. There's a discussion on this here: http://www.eclipse.org/forums/index.php?&t=msg&th=157110 -- Ketan On 1/14/10 3:37 PM, lei Lin wrote: > Hello, > > The tested program is an eclipse plug-in, but has been exported as an > eclipse product. I wonder whether SWTBot is able to test it outside of > Eclipse IDE. > > Any kind of suggestions will be really appreciated. > > Thank you so much. > > Cheers. > > Lin, Lei > > > > > ------------------------------------------------------------------------ > Spread the cheer with Messenger for mobile. Learn more. > <http://go.microsoft.com/?linkid=9706115> > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > > > > _______________________________________________ > 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: lei L. <lin...@ho...> - 2010-01-14 23:37:44
|
Hello, The tested program is an eclipse plug-in, but has been exported as an eclipse product. I wonder whether SWTBot is able to test it outside of Eclipse IDE. Any kind of suggestions will be really appreciated. Thank you so much. Cheers. Lin, Lei _________________________________________________________________ |
From: Somesh S. <som...@gm...> - 2009-12-29 00:06:21
|
Hey Guys, I just updated to SWTBot 2.0 and need to setup a pde build of my plugin with Eclipse 3.3. I updated to SWTBot 2.0 with the ganymede update url. with the necessary updates made to my source files, the compilation issues have been resolved. I however do *NOT* see an SWTBot Test Launch configuration in the Eclipse Run/Debug configuration window. I noticed that the minimum version for org.eclipse.core.runtime in all swtbot plugin manifests is set to 3.4.0 inclusive. Could that be the reason? What do I need to do to 1) use swtbot 2.0 in eclipse 3.3 while testing my plugin. As I don't see the swtbot test launch config. Thanks in advance. Somesh |
From: Qin Y. C. <che...@cn...> - 2009-07-17 12:12:51
|
I will be out of the office starting 2009-07-17 and will not return until 2009-07-20. I am in vacation. I am not available for mail. My mobile number is 13916810415. |
From: S. W. <wi...@gm...> - 2009-07-17 09:45:38
|
Hi! The problem still exists and with our new API (the login data now come from a preference page) our current workaround (by setting an 'Autologin') won't work anymore. It would be nice if you could provide some informations on either how to control the login dialog with SWTBot or how to set my preferences programmatically (I tried this by overwriting the setUp() method in my Testclass, but this isn't executed until the application itself has started (see my mail from october))... Best regards, Stefan S. Winseth wrote: > > Hi, > > I have a very similar issue with my application, with the difference that > my Login Screen isn't 3rd party, but it's also blocking the tests. It's > defined within the Application class and starts a jface.Dialog. After this > dialog returns true, the workbench gets loaded and after that the tests > should run. > But with the setBlockOnOpen(true) statement the start() method within the > Application blocks until the login returns a value. > > So is there any possibility to get this kind of login controlled by > SWTBot? > > It seems to me, the tests can only run with the Application class fully > loaded, and not while the class is loading, so maybe there's some > workaround I can try... > > Best regards, > Stefan > > > --- On Mon, 7/14/08, Hans Schwaebli <han...@ya...> wrote: > From: Hans Schwaebli <han...@ya...> > Subject: [SWTBot-users] Cannot automate login because its dialog blocks > the start of JUnit > To: swt...@li... > Date: Monday, July 14, 2008, 5:13 AM > > The application we need to test has an login dialog. I cannot automate > login because the JUnit thread does not run until the login is done (enter > user/password and click OK button). > > I don`t know why this login dialog blocks the start of the JUnit thread. I > am using your SWTBot plugin "Run as SWTBot Test". > -- View this message in context: http://www.nabble.com/Cannot-automate-login-because-its-dialog-blocks-the-start-of-JUnit-tp18440098p24531506.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |
From: Ketan P. <ket...@gm...> - 2009-06-09 19:25:39
|
Hi Yann, Foremost, the old mailing list has now moved to a newsgroup[1], not many people lurk around the mailing list anymore and you'll have more chances of people responding on the newsgroup. Reg your feature request for spinner support, feel free to fork from my git repo, and send me a pull request. I'll however later ask you to file a git patch on the eclipse bugzilla. The eclipse IP process requires that all code that is committed to eclipse.org comes through the bugzilla. The only deep problem preventing adding support for the widgets that are missing are lack of time on my part and lack of people asking support for them! A test for your widget will help ensure that it gets checked in quickly :) Drop in a note should you need anything else. [1] - http://wiki.eclipse.org/SWTBot/Support -- Ketan http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr On 10/6/09 00:12, Yann Nicolas Dauphin wrote: > Hello Ketan, > > I am testing an application that makes uses of Spinners. SWTBot is great > and mostly feature complete but Spinners aren't supported. > > I am considering adding support for spinners myself. I have a good > understanding of the code behind SWTBot. > > I would like to know if there is a deep problem preventing support for > them. If not, I would like to have your green light before I start > coding. In git terms, will you pull from me? > > Yann > |
From: Yann N. D. <yan...@er...> - 2009-06-09 18:43:47
|
Hello Ketan, I am testing an application that makes uses of Spinners. SWTBot is great and mostly feature complete but Spinners aren't supported. I am considering adding support for spinners myself. I have a good understanding of the code behind SWTBot. I would like to know if there is a deep problem preventing support for them. If not, I would like to have your green light before I start coding. In git terms, will you pull from me? Yann |
From: mtbJan H. <jan...@ho...> - 2009-02-19 08:00:46
|
I have more than one widgets of the same type e.g. button or textbox on a shell. The buttons have the same button text and the textbox have no text. The problem is that I can not access the widgets (click or set text). _________________________________________________________________ Hetaste modetipsen & härligaste skönhetstesterna! http://salongk.msn.se/ |
From: Hans S. <han...@ya...> - 2009-02-12 16:21:27
|
Please use the new SWTBot newsgroup: http://www.eclipse.org/newsportal/thread.php?group=eclipse.swtbot You should use a new SWTBot version. The package prefix "net.sf." suggests that you have an old version. SWTBot is now a Eclipse project, so the package prefix is now "org.eclipse." Try it with the new SWTBot version and use the new newsgroup (forum) pages. --- On Wed, 2/11/09, Nawaz Ahmed <na...@pr...> wrote: From: Nawaz Ahmed <na...@pr...> Subject: [SWTBot-users] Error on running the SWTBot Test Script To: swt...@li... Date: Wednesday, February 11, 2009, 12:41 AM Hello, I am new to SWTBot Tool, Got some code from SWTBot site (Refer the attachment). Get the following error on running Test script (Below). it starts the eclipse perfectly but does not run further: Exception in thread "WorkbenchTestable" java.lang.NoClassDefFoundError: net/sf/swtbot/eclipse/finder/SWTBotEclipseTestCase at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner$BundleClassLoader.findClass(RemotePluginTestRunner.java:38) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:425) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445) 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(Unknown Source) Please check it and give me solution. Thanks and Regards, ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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: Nawaz A. <na...@pr...> - 2009-02-11 05:41:16
|
package swtbot_project; import net.sf.swtbot.eclipse.finder.SWTBotEclipseTestCase; import net.sf.swtbot.widgets.SWTBotText; public class FooTest1 extends SWTBotEclipseTestCase { public void testDoSomethingInterestingWithEclipse() throws Exception { bot.sleep(3000); bot.view("Welcome").close(); bot.sleep(1000); // Creating the Project bot.menu("File").menu("New").menu("Java Project").click(); bot.shell("New Java Project").activate(); SWTBotText swt=bot.textWithLabel("Project name:"); swt.typeText("project"); bot.button("Finish").click(); bot.sleep(1000); // Creating the Class bot.menu("File").menu("New").menu("Class").click(); bot.sleep(3000); try { bot.shell("New Java Class").activate(); swt=bot.textWithLabel("Source folder:"); bot.button("OK").click(); swt=bot.textWithLabel("Name:"); swt.typeText("First"); System.out.println(swt.getText()); bot.radio("default").click(); bot.radio("public").click(); bot.checkBox("public static void main(String[] args)").click(); bot.checkBox("Constructors from superclass").click(); bot.button("Browse...").click(); bot.button("OK").click(); bot.button("Finish").click(); System.out.println(bot.activeShell()); bot.sleep(1000); bot.editor("First.java").typeText(5, 1, "int i"); bot.sleep(1000); bot.editor("First.java").save(); } catch(Exception e) { System.out.println("Exception caught in SWTBotText "+e); } } } |
From: Ketan P. <ket...@gm...> - 2009-01-29 04:32:50
|
Hi Michael, The newsgroups are available over the web and rss at http://www.eclipse.org/newsportal/thread.php?group=eclipse.swtbot If you are behind a firewall and you do not have access to the newsgroups you may want to use port 80 instead of 119 (http://wiki.eclipse.org/index.php/Webmaster_FAQ#I_can.27t_connect_to_news.eclipse.org_using_Thunderbird_or_Outlook_Express.__What_do_I_do.3F) -- Ketan On 28/1/09 22:48, EXTERNAL Wagner Michael (ISS; G2/PJ-PMT) wrote: > Hi Vincent, > > thanks for the clarification that forum means newsgroup. I understand. > > Unfortunately we are not allowed to use newsgroups here at Bosch. So you will never see me there. > > Anyway I wish you a nice talk there. Is the newsgroups archive somewhere on the web, perhaps? > > Mit freundlichen Grüßen / Best regards > > Michael Wagner > > Robert Bosch GmbH > > Postfach 30 02 20 > 70442 Stuttgart > GERMANY > www.bosch.com > > Tel. +49 711 811 30176 > ext...@de... > > Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000; > Aufsichtsratsvorsitzender: Hermann Scholl; Geschäftsführung: Franz Fehrenbach, Siegfried Dais; > Bernd Bohr, Rudolf Colm, Volkmar Denner, Gerhard Kümmel, Wolfgang Malchow, Peter Marks, > Peter Tyroller; Uwe Raschke > > > >> -----Ursprüngliche Nachricht----- >> Von: Vincent Mahe [mailto:vin...@ir...] >> Gesendet: Mittwoch, 28. Januar 2009 14:56 >> An: swt...@li... >> Betreff: Re: [SWTBot-users] [SWTBot] Recorder >> >> EXTERNAL Wagner Michael (ISS; G2/PJ-PMT) a écrit : >> >> Hi, >> >> thanks for the great SWTBot and your help on the list here. >> >> >> >> On another note, please use the forums on >> eclipse.org, and not this >> list, most people have switched to using the >> new forums, and >> I'm trying >> to reduce the administrative of managing both. >> >> >> I perfectly understand. But I cant find the forum at eclipse.org >> Even a google-search revealed no relevant results: >> "site:eclipse.org >> forum" >> >> Could you please post a direct link or tell us how to >> navigate there? >> >> >> In your favorite mail reader, you can add the >> "news.eclipse.org" server and then subscribe to the >> "eclipse.swtbot" newsgroup. >> >> -- >> 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: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > 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...> - 2009-01-29 04:28:03
|
I've blocked Nawaz from posting to this group. -- Ketan On 29/1/09 02:22, Nawaz A wrote: > > FanIQ <http://FanIQ.com/user/nawaz30/connect/127261726> > Nawaz A has sent you a private message > Click to read message <http://FanIQ.com/user/nawaz30/connect/127261726> > Read private message <http://FanIQ.com/user/nawaz30/connect/127261726> > Please read it or Nawaz will think you ignored this :( > This message has been forwarded at the request of na...@gm... > <mailto:na...@gm...>. To block all emails from FanIQ, please click > here > <http://www.faniq.com/unsubscribe.php?invite_id=127261726&stkn=058073c50a5f21bb3cd71afa4c78da4e>. > FanIQ is located at 604 mission St, Suite 600, San Francisco, CA 94105, > USA. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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: EXTERNAL W. M. (I. G2/PJ-PMT) <ext...@de...> - 2009-01-28 17:18:37
|
Hi Vincent, thanks for the clarification that forum means newsgroup. I understand. Unfortunately we are not allowed to use newsgroups here at Bosch. So you will never see me there. Anyway I wish you a nice talk there. Is the newsgroups archive somewhere on the web, perhaps? Mit freundlichen Grüßen / Best regards Michael Wagner Robert Bosch GmbH Postfach 30 02 20 70442 Stuttgart GERMANY www.bosch.com Tel. +49 711 811 30176 ext...@de... Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000; Aufsichtsratsvorsitzender: Hermann Scholl; Geschäftsführung: Franz Fehrenbach, Siegfried Dais; Bernd Bohr, Rudolf Colm, Volkmar Denner, Gerhard Kümmel, Wolfgang Malchow, Peter Marks, Peter Tyroller; Uwe Raschke > -----Ursprüngliche Nachricht----- > Von: Vincent Mahe [mailto:vin...@ir...] > Gesendet: Mittwoch, 28. Januar 2009 14:56 > An: swt...@li... > Betreff: Re: [SWTBot-users] [SWTBot] Recorder > > EXTERNAL Wagner Michael (ISS; G2/PJ-PMT) a écrit : > > Hi, > > thanks for the great SWTBot and your help on the list here. > > > > On another note, please use the forums on > eclipse.org, and not this > list, most people have switched to using the > new forums, and > I'm trying > to reduce the administrative of managing both. > > > I perfectly understand. But I cant find the forum at eclipse.org > Even a google-search revealed no relevant results: > "site:eclipse.org > forum" > > Could you please post a direct link or tell us how to > navigate there? > > > In your favorite mail reader, you can add the > "news.eclipse.org" server and then subscribe to the > "eclipse.swtbot" newsgroup. > > -- > 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: Vincent M. <vin...@ir...> - 2009-01-28 13:55:50
|
EXTERNAL Wagner Michael (ISS; G2/PJ-PMT) a écrit : > Hi, > > thanks for the great SWTBot and your help on the list here. > > >> On another note, please use the forums on eclipse.org, and not this >> list, most people have switched to using the new forums, and >> I'm trying >> to reduce the administrative of managing both. >> > I perfectly understand. But I cant find the forum at eclipse.org > Even a google-search revealed no relevant results: "site:eclipse.org > forum" > > Could you please post a direct link or tell us how to navigate there? > In your favorite mail reader, you can add the "news.eclipse.org" server and then subscribe to the "eclipse.swtbot" newsgroup. -- 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: EXTERNAL W. M. (I. G2/PJ-PMT) <ext...@de...> - 2009-01-28 12:39:11
|
Hi, thanks for the great SWTBot and your help on the list here. > On another note, please use the forums on eclipse.org, and not this > list, most people have switched to using the new forums, and > I'm trying > to reduce the administrative of managing both. I perfectly understand. But I cant find the forum at eclipse.org Even a google-search revealed no relevant results: "site:eclipse.org forum" Could you please post a direct link or tell us how to navigate there? Thanks! -- Michael |
From: Ketan P. <ket...@gm...> - 2009-01-27 03:51:34
|
The work with the recorder was never completed. It was a proof-of-concept to see if this was even possible. I do work on it once a while. That said feel free to checkout the code and file patches. Patches makes the world a better place :) On another note, please use the forums on eclipse.org, and not this list, most people have switched to using the new forums, and I'm trying to reduce the administrative of managing both. -- Ketan On 27/1/09 02:41, Toby wrote: > Hi Folks, > > Just wondered if someone could outline the purpose of the recorder > module? I'm assuming its for recording test scripts and playing them > back? Is it suitable for playing back for a show and tell / demo? > > The old (SF) site says its not the "prefered way" but the link doesn't > go anywhere. I can't find much in the new (eclipse.org > <http://eclipse.org>) site docs. > > Cheers > -- > Toby > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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...> - 2009-01-26 21:13:01
|
Hi Folks, Just wondered if someone could outline the purpose of the recorder module? I'm assuming its for recording test scripts and playing them back? Is it suitable for playing back for a show and tell / demo? The old (SF) site says its not the "prefered way" but the link doesn't go anywhere. I can't find much in the new (eclipse.org) site docs. Cheers -- Toby |
From: Ketan P. <ket...@gm...> - 2009-01-17 03:35:00
|
No there's no support for drag-and-drop in SWTBot. Also this list has moved and you should probably ask support on the eclipse.swtbot newsgroup. -- Ketan On 16/1/09 20:19, Csaba Koncz wrote: > Hello! > > Is it possible to perform drag-and-drop operations with SWTBot? > > Csaba > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > 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...> - 2009-01-17 03:30:55
|
My replies inline. The mailing list has moved and you'll find better luck finding answers at news://news.eclipse.org/eclipse.swtbot than here :) On 16/1/09 19:24, Marc Guéguéniat wrote: > But now I want to switch to another app (a rcp eclipse app too). > So I opened 'run configuration' and change 'run a product' to the > product I want to test. > > But then swtbot seems to do nothing. > My app launches well, it displays its splash screen and then a form to > fill in. That's because SWTBot has not received control at this point. The form you're referring to is loaded before SWTBot receives control. For the sake of tests you'll need disable the form and set the form parameters using some different method. I recommend some JVM flag -Denable_test_mode that turns this off. > Any idea? > I can see that org.rcpmail.test has a plugin dependency with org.rcpmail. > I don't know where this comes from. Maybe there should be a dependency > to my app? Having a dependency to your app is not necessary. I have a tendency to add it in so that I can reuse my actual code from within tests. -- Ketan |
From: Csaba K. <csa...@gm...> - 2009-01-16 14:49:12
|
Hello! Is it possible to perform drag-and-drop operations with SWTBot? Csaba |
From: Marc G. <mar...@or...> - 2009-01-16 14:32:04
|
Hello, I have an eclipse rcp application to test and swtbot seems to be what I need. I've managed to run swtbot on the rcpmail example. It seems to work fine. But now I want to switch to another app (a rcp eclipse app too). So I opened 'run configuration' and change 'run a product' to the product I want to test. But then swtbot seems to do nothing. My app launches well, it displays its splash screen and then a form to fill in. But no test seems to be executed, the Junit panel (left in eclipse) opens but nothing displays. I tried to restrict org.rcpmail.test to run only MyFirstTest.java (with just pass and fail) but it is not executed. Any idea? I can see that org.rcpmail.test has a plugin dependency with org.rcpmail. I don't know where this comes from. Maybe there should be a dependency to my app? Thanks in advance. Marc |
From: Somesh S. <som...@gm...> - 2009-01-15 19:56:58
|
hi Ketan, I might be there. Need to work with my manager on that. Will get back to you. I have been using swtbot for a couple of months now and can help out with some stuff. will keep you posted. Thanks Somesh On Thu, Jan 15, 2009 at 5:08 AM, Ketan Padegaonkar < ket...@gm...> wrote: > Hi, > > I'm happy to announce that my tutorial > (https://www.eclipsecon.org/submissions/2009/view_talk.php?id=288) for > EclipseCon was accepted, and my employer is willing to sponsor my travel > to EclipseCon this year. > > The tutorial is a two part tutorial on UI testing with SWTBot, which I > would be conducting, followed by eclipse profiling using TPTP (conducted > by some TPTP contributors) > > Let me know if you're travelling to EclipseCon and would like to help > out with the tutorial. > > Here's an outline of the SWTBot tutorial (2 hours). Note that the > intended audience are not only developers, but also quality analysts. > I'm looking for any inputs on what what the community thinks about the > outline. Feel free to reply on this thread or over private email to me. > > The outline of the tutorial: > > For beginners: > > Types of testing: > - unit testing - for quick feedback - red/green/refactor - primarily > used by developers > - functional testing - long running - to test 'functionality' > > Understanding of SWT: > - Not everyone can understand SWT threading models > - Too many things to keep track of when testing SWT controls - UI > thread, state of controls, etc > > Challenges of writing testable code: > - good use of MVC > - minimal code in button click events > - delegate as much 'non-ui' behavior into classes that are independent of > UI > > There's always something more to test: > - writing end-to-end tests that go through complete application flows > - easier to do this at a UI level > - these tests cannot be written as 'unit-tests' > > Challenges in writing end-to-end tests: > - finding controls - how do you refer to a textbox with label 'project > name' > - what about controls with the same text ? for e.g. two 'edit' buttons > in a screen > - what do you do about controls that move around in the UI ? > > Multi threaded applications: > - doing most of the heavy lifting in the background, while updating the > UI at regular intervals > - there's no guarantees about when the background work finishes - how do > tests deal with indeterminate behavior of background jobs > > For the more advanced users: > > Given all the issues above, how do you ensure that your tests are > scalable, and maintainable over time: > - some common UI testing patterns > ( > http://ketan.padegaonkar.name/2008/06/21/reusing-functional-tests-part-1.html > ) > - objects that interact with screens and expose screen behavior and not > controls > - refactoring 'test-scripts' to ensure that they follow this pattern > > All the examples will use SWTBot to write expressive and intent > revealing tests. > > -- Ketan > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > 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...> - 2009-01-15 13:08:33
|
Hi, I'm happy to announce that my tutorial (https://www.eclipsecon.org/submissions/2009/view_talk.php?id=288) for EclipseCon was accepted, and my employer is willing to sponsor my travel to EclipseCon this year. The tutorial is a two part tutorial on UI testing with SWTBot, which I would be conducting, followed by eclipse profiling using TPTP (conducted by some TPTP contributors) Let me know if you're travelling to EclipseCon and would like to help out with the tutorial. Here's an outline of the SWTBot tutorial (2 hours). Note that the intended audience are not only developers, but also quality analysts. I'm looking for any inputs on what what the community thinks about the outline. Feel free to reply on this thread or over private email to me. The outline of the tutorial: For beginners: Types of testing: - unit testing - for quick feedback - red/green/refactor - primarily used by developers - functional testing - long running - to test 'functionality' Understanding of SWT: - Not everyone can understand SWT threading models - Too many things to keep track of when testing SWT controls - UI thread, state of controls, etc Challenges of writing testable code: - good use of MVC - minimal code in button click events - delegate as much 'non-ui' behavior into classes that are independent of UI There's always something more to test: - writing end-to-end tests that go through complete application flows - easier to do this at a UI level - these tests cannot be written as 'unit-tests' Challenges in writing end-to-end tests: - finding controls - how do you refer to a textbox with label 'project name' - what about controls with the same text ? for e.g. two 'edit' buttons in a screen - what do you do about controls that move around in the UI ? Multi threaded applications: - doing most of the heavy lifting in the background, while updating the UI at regular intervals - there's no guarantees about when the background work finishes - how do tests deal with indeterminate behavior of background jobs For the more advanced users: Given all the issues above, how do you ensure that your tests are scalable, and maintainable over time: - some common UI testing patterns (http://ketan.padegaonkar.name/2008/06/21/reusing-functional-tests-part-1.html) - objects that interact with screens and expose screen behavior and not controls - refactoring 'test-scripts' to ensure that they follow this pattern All the examples will use SWTBot to write expressive and intent revealing tests. -- Ketan |
From: Yao Q. <qiy...@gm...> - 2009-01-06 03:40:26
|
On Tue, Jan 6, 2009 at 12:22 AM, Ketan Padegaonkar <ket...@gm...> wrote: > 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. Exactly, :) I've formed a habit to assertNull when I get an object returned from a method. Exception here is better than null. -- Yao GNU/Linux Developer |