I'm not sure, but if it start your SWT application in another VM, then SWTBot 
cannot access it. That would require SWT instrumentation I think.

Maybe you can separate doing the preconditions and starting the SWT 
application. Then it would work. So don't start your client in the bat file, 
only do the other things there.

SWTBot does not work for Swing applications, but maybe it will be supported in 
future Ketan wrote in the proposal: http://www.eclipse.org/proposals/swtbot/


--- On Thu, 10/23/08, nawaz ahmed <[EMAIL PROTECTED]> wrote:
From: nawaz ahmed <[EMAIL PROTECTED]>
Subject: Re: [SWTBot-users] SWTBot-users Digest, Vol 8, Issue 27
To: swtbot-users@lists.sourceforge.net
Date: Thursday, October 23, 2008, 7:43 AM

  


Hello,
 
    Thanks for your reply,
    Here I am starting the Swt application using the Batch file.
    Since this Application requires some initial settings to be set before 
starting it.
    So i have typed the below code:
 
    
new Thread(new Runnable() 
{
     public void run()
    {
    try 
    {
              Process p=Runtime.getRuntime().exec("cmd /C start 
C:/Sonicnew/MQ7.6/bin/startmc.bat");
    }
    catch (IOException e) 
    {
             System.out.println("Exception in launching the 
application"+e.getMessage());
    }  
 }
  }).start();      So after the SWT application is started. It fails to 
identify the widget i.e 
    ( (screennet.sf.swtbot.widgets.WidgetNotFoundException: Couldnt find widget 
with text Create Connection) message is displayed .. and it does not proceed 
further. 
    Tell me if the application is designed using Swings instead of SWT. Will 
SWTBot work on it or not?
Thanks and Regards,
Nawaz Ahmed
 
       
 
 


Date: Thu, 23 Oct 2008 09:59:43 +0200
From: Vincent Mahe <[EMAIL PROTECTED]>

Subject: Re: [SWTBot-users] Any Spy in SWTBot
To: swtbot-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>

Content-Type: text/plain; charset="iso-8859-1"

nawaz ahmed a ?crit :
> Hello Kethan and all other SWTBot Users,
>    In the last mail I have requested for the SWT Recorder.
>    I dont want to use it as it slows down my PC and as per Kethans

> suggestions its not the good idea to use it.
>
>    The reason why I have requested for the recorder is because I am
> facing problem in one application (designed usinf SWT) i.e SWT
> application,

>    Whenever I run the SWTBot Test case on that application it stops
> runnig displaying the message
>    "Could not find the widget".
>    That is it opens the first window of the application and stop

> runnning further displaying the above message. (Message: Could not
> find the widget)
>    Neither it is able to detect any buttons or other controls in the
> first window.
>
>    Could you please let me know how do it handle this problem or how

> do I proceed?

Do you launch the test inside a non UI thread? if not, you must, because
the test execution is synchronous so it blocks itself, waiting for next
step.
See how the user guide proceeds for launch:


 private static void startApplicationInAnotherThread() {
   new Thread(new Runnable() {
     public void run() {
       new MyApplication().main(new String[] { "some", "command", "line", 
"arguments for your application" });

     }
   }).start();
 }


>    On using the recorder My PC was slow and I could not go further.
>    Is there any SWTbot Spy for detecting the SWT Application
> compnenets as you find in the other testing tool?

>    if so how do I start it or use it?
>
>    Please I need a help in this regard as i am not able to proceed
> with my work?
>    Eagerly waiting for you reply.
>
> Thanks and Regards

> Nawaz Ahmed
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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

>
>


--
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

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

-------------------------------------------------------------------------

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



End of SWTBot-users Digest, Vol 8, Issue 27
*******************************************


-------------------------------------------------------------------------
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