Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTbot vs Jubula
SWTbot vs Jubula [message #1066528] Wed, 03 July 2013 00:42 Go to next message
Jiajian Lei is currently offline Jiajian LeiFriend
Messages: 36
Registered: June 2013
Member
Hi all,

My manager asked me to investigate both SWTbot and Jubula, since they both help automate GUI functional testing. My product is a company-specific CDT debugger that is built on java. I am very new to SWTbot and Jubula. Could anyone please give me some advice on which one might fit us better and why? What's the pros and cons of each one?

Thanks a lot.
Re: SWTbot vs Jubula [message #1066561 is a reply to message #1066528] Wed, 03 July 2013 07:53 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

On 07/03/2013 02:42 AM, Jiajian Lei wrote:
> My manager asked me to investigate both SWTbot and Jubula, since they
> both help automate GUI functional testing. My product is a
> company-specific CDT debugger that is built on java. I am very new to
> SWTbot and Jubula. Could anyone please give me some advice on which one
> might fit us better and why? What's the pros and cons of each one?

I think both are easy to get started with, and your manager does expect
you to try both and choose according to your product specificities.

Then, here is my understanding about the key points in SWTBot vs Jubula
discussion:

* SWTBot is a Java API to consume while writing tests (can be JUnit,
TestNG...), which makes it very easy to use for Java developers
http://wiki.eclipse.org/SWTBot/UsersGuide
* Jubula has its own XML-based languages to write tests

* SWTBot supports and focuses only on SWT-based application.
* Jubula supports many types of application (SWT, Swing, HTML and
probably others...)

* SWTBot APIs have support for Eclipse workbench and
GEF/GMF/Graphiti/Sirius concepts (views, perspectives, editparts...)
* I don't know for Jubula

* SWTBot has a test recorder and generator that generates pieces of code
by monitoring at user-actions. It's still young but already provides
support for most usual UI operations; so it already provides a nice
productivity gain in writing tests. http://wiki.eclipse.org/SWTBot/Generator
* Jubula has a test recorder and generator, which is probably more
mature. But I never tried it, so I can't tell more.

If you go for SWTBot, it's also important that you understand that this
is a community project, and that it can be extended based on community
needs. However, there is no guaranteed support and development, so you
might need to contribute some missing pieces if you want to get them in.

Cheers,
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: SWTbot vs Jubula [message #1066615 is a reply to message #1066528] Wed, 03 July 2013 13:07 Go to previous messageGo to next message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
Member
Hi Mickael

You have mentioned We can use TEstNg with SWtbot, How can we use TestNG.
Can you please explain me ??
I tried but not able to figure it out.

Pawan
Re: SWTbot vs Jubula [message #1066688 is a reply to message #1066615] Wed, 03 July 2013 18:22 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

AFAIK, there is no application to execute TestNG tests in Eclipse RCP
products (http://code.google.com/p/testng-eclipse/issues/detail?id=48 )

However, TestNG and SWTBot should work with non-Eclipse SWT
applications. In such case, all you have to do is to create the instance
of SWTBot by yourself in your Test, just like it is done in the
SWTBotTestCase class:
http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/tree/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/SWTBotTestCase.java#n41

HTH,
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:SWTBot and RAP
Next Topic:Problem with SWTBot after upgrading to Eclipse 4.2 and 4.3
Goto Forum:
  


Current Time: Fri Apr 19 12:38:03 GMT 2024

Powered by FUDForum. Page generated in 0.02176 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top