Tests will run automatically without user intervention. You just start your 
JUnit class. The JUnit class will start the GUI under test and run the tests on 
your GUI according to your test implementation.


--- On Wed, 7/23/08, Shalini Gupta <[EMAIL PROTECTED]> wrote:
From: Shalini Gupta <[EMAIL PROTECTED]>
Subject: Re: [SWTBot-users] Automatic Testing of SWT Application
To: swtbot-users@lists.sourceforge.net
Date: Wednesday, July 23, 2008, 4:20 AM




 


 







Hi 

 

First of all Thanks for the reply. Can you
please tell me how actually automatic testing
happens for SWT Application? Is it like tests will run automatically with out
user intervention and I will just run the application. 

 

Please correct me if I m wrong 

 

Thanks in advance 

 

-----Original Message-----

From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans Schwaebli

Sent: Tuesday, July 22, 2008 5:50
PM

To:
swtbot-users@lists.sourceforge.net

Subject: Re: [SWTBot-users]
Automatic Testing of SWT Application

 


 
  
  Yes, SWT is supported (thats why it is called SWTBot
  by the way...)

  

  Even RCP applications can be tested with SWTBot.

  

  You can take a look at the tests in the plugin
  "net.sf.swtbot.finder.test", which is in the SVN repository (I
  recommend trunk). It starts some SWT example GUIs provided by Eclipse and
  runs JUnit test on them, like:

  

      public void testClicksButtons() throws Exception {

          SWTBotShell shell2 = null;

          try {

              SWTBotButton button
  = bot.button("Set/Get API");

              button.click();

              shell2 =
  bot.shell("Button Set/Get API");

             
  assertNotNull(shell2.widget);

             
  assertEquals("Button Set/Get API", shell2.getText());

          } finally {

              if ((shell2 != null)
  && (shell2.widget != null))

                 
  shell2.close();

          }

      }

  

  SVN-URL: https://swtbot.svn.sourceforge.net/svnroot/swtbot

  

  

  --- On Tue, 7/22/08, Shalini Gupta <[EMAIL PROTECTED]>
  wrote:
  From: Shalini Gupta
  <[EMAIL PROTECTED]>

  Subject: [SWTBot-users] Automatic Testing of SWT Application

  To: swtbot-users@lists.sourceforge.net

  Date: Tuesday, July 22, 2008, 7:19 AM
  
  
  Is it possible to do automatic testing of SWT Application
  by writing code using SWTBot 
   
  if yes please send some URL ………L 
   
   
  Shalini Gupta
   
  AZTECSOFT
  Limited,
  #23, III A Cross, 18th main,
  6th Block, Koramangala,
  Bangalore - 560 095
  Mobile: +91 - 9980158310
  
  
   
  
 


 



 

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.

The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address. 



www.aztecsoft.com

-------------------------------------------------------------------------
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
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse


      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to