Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Testing RCP application with Ant
Testing RCP application with Ant [message #501116] Tue, 01 December 2009 07:07 Go to next message
Anubhav Manak is currently offline Anubhav Manak
Messages: 17
Registered: July 2009
Junior Member
Hi,

I followed the steps mentioned in http://wiki.eclipse.org/SWTBot/Ant to automate the testing of my RCP application, but it always launch eclipse instead of my RCP application and doesnot do anything. It works fine if I run tests from eclipse.

Regards,
Anubhav Manak
Re: Testing RCP application with Ant [message #502383 is a reply to message #501116] Mon, 07 December 2009 22:21 Go to previous messageGo to next message
John Reysa is currently offline John Reysa
Messages: 21
Registered: July 2009
Junior Member
Anubhav Manak wrote:
> Hi,
>
> I followed the steps mentioned in http://wiki.eclipse.org/SWTBot/Ant to
> automate the testing of my RCP application, but it always launch eclipse
> instead of my RCP application and doesnot do anything. It works fine if
> I run tests from eclipse.
>
> Regards,
> Anubhav Manak
I ran into a similar problem and didn't realize there was a
testApplication (or testProduct) switch to the swtbottestapplication.
If you look at the command line example from the link you specified,
you will see where to include the -testApplication or -testProduct
option. If you have an RCP app, you've probably defined the application
and product so just specify that in the call below. Ketan also
recommended using his ant build.xml example since that has a little bit
error checking if you have bad options
Re: Testing RCP application with Ant [message #502415 is a reply to message #502383] Tue, 08 December 2009 05:36 Go to previous message
Anubhav Manak is currently offline Anubhav Manak
Messages: 17
Registered: July 2009
Junior Member
Hi,

Thanks for reply, I followed the steps mentioned in following link and able to run SWTbot test and generate reports

http://xerus.zugaina.org/dotclear/index.php?post/2009/09/15/ Building-an-RCP-application-including-SWTbot-tests%2C-Cobert ura-coverage

Regards,
Anubhav Manak
Previous Topic:running ui and non-ui tests with swtbot
Next Topic:About testing the TabbedProperty View using SWTBot
Goto Forum:
  


Current Time: Wed Oct 01 12:28:37 GMT 2014

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

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