Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Automating the launch of SWTBot tests with Ant
Automating the launch of SWTBot tests with Ant [message #28047] Tue, 17 March 2009 08:57 Go to next message
Marc is currently offline MarcFriend
Messages: 32
Registered: July 2009
Member
Hi,

This thread follows a discussion started in an old one "Start SWTbotTest
from Java Application". I started a new one because the subject of the
previous one was not exactly that (and has become long).

I want to fully automate the launch of my tests (of an RCP app), with the
help of an Ant script.
If so I'll be able to run the tests with just launching one .bat file.
This is really interesting and I think it gives value added to SwtBot.

Below is an extract from previous talk. The links are interesting.

If you have any clue please tell me.

@Hugulas Chen:
Did you get time to achieve the paper you're talking about?


Marc

********************

> From hugulas chen:

I am already using ant script to test my rcp automatically.
First, you need to install your test plugins under eclipse plugin dir.
Then,you can run such a parallel task.It contains two threads: execute and
listen.
Execute Task will start your eclipse and execute your test case.
Listen task will collect the test result.
The listener can be downloaded from
http://www.eclipse.org/articles/Article-PDEJUnitAntAutomatio n/PDETestExampleProjects-3.3.zip.

This task can run one case each.I wrote a small tool to generate the test
case name list. Finally, you can use junitreport task to generate the test
report.

Ketan, may I contribute a paper about how to automate the swtbot test with
ant?

<target name="test">
<parallel>
<daemons>
<antcall target="listen" />
</daemons>
<sequential>
<sleep seconds="10" />
<!-- Give the listener a few seconds to startup -->
<antcall target="execute" />
</sequential>
</parallel>
</target>
<target name="execute">
<echo>${test.workspace}</echo>
<delete dir="${test.workspace}" />
<mkdir dir="${test.workspace}" />
<java classname="org.eclipse.equinox.launcher.Main" fork="true"
dir="${build.home}" output="reports/${testcase}.out.txt"
error="reports/${testcase}.err.txt" append="true">
<arg line="-application
org.eclipse.swtbot.eclipse.core.swtbottestapplication" />
<arg line="-classNames ${testcase} -testpluginname ${testplugin}" />
<arg line="-version 3 -testLoaderClass
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname
org.eclipse.jdt.junit4.runtime" />
<arg line="-port 2625 -pdelaunch" />
<arg line="-data ${test.workspace}" />
<arg line="-debug -consolelog -clean" />
<classpath>
<fileset dir="${build.plugins}">
<include name="org.eclipse.equinox.launcher_*.jar" />
</fileset>
</classpath>
</java>
</target>
<target name="listen">
<java classname="pde.test.utils.PDETestResultsCollector">
<arg line="${testcase} 2625" />
<classpath>
<fileset dir="${build.plugins}">
<include name="**/*.jar" />
</fileset>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${java.home}/lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</java>
</target>

http://www.eclipse.org/articles/Article-PDE-Automation/autom ation.html
Re: Automating the launch of SWTBot tests with Ant [message #28087 is a reply to message #28047] Tue, 17 March 2009 10:06 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Hi Marc,

I've just setup http://wiki.eclipse.org/SWTBot/Ant with a brief
description on how this can be done.

This of course assumes that you've got an ant task that can build your
plugins.

-- Ketan
Re: Automating the launch of SWTBot tests with Ant [message #28164 is a reply to message #28087] Tue, 17 March 2009 15:08 Go to previous messageGo to next message
Marc is currently offline MarcFriend
Messages: 32
Registered: July 2009
Member
Hi,

Thanks for the page.
I checked it and I was wondering about a few points:

- the org.eclipse.swtbot.eclipse.test-2.0.0.187-dev.zip file contains a
features folder with data in it.
Is it mandatory to copy it into eclipse install?
In the wiki page, chapter "setup", there is nothing under "+ features".
So, do I have to copy anything into features?

- In the zip I don't see org.eclipse.swtbot.ant.optional.junit4 (or junit3)
So I'm missing it rigth now.
Where can I get it? or is it "optional"?

Thanks in advance.
Marc

Ketan Padegaonkar wrote:

> Hi Marc,

> I've just setup http://wiki.eclipse.org/SWTBot/Ant with a brief
> description on how this can be done.

> This of course assumes that you've got an ant task that can build your
> plugins.

> -- Ketan
Re: Automating the launch of SWTBot tests with Ant [message #28280 is a reply to message #28164] Tue, 17 March 2009 17:07 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 17/3/09 20:38, Marc wrote:
> - the org.eclipse.swtbot.eclipse.test-2.0.0.187-dev.zip file contains a
> features folder with data in it.
> Is it mandatory to copy it into eclipse install?

No it is not, the feature is not needed, and the feature will not load
if one of the plugins is missing, which will be the case since you'd
either be using junit4 or junit3.

> In the wiki page, chapter "setup", there is nothing under "+ features".
> So, do I have to copy anything into features?

The folder structure is what you already have, just need to add stuff
into plugins as mentioned in the wiki.

> - In the zip I don't see org.eclipse.swtbot.ant.optional.junit4 (or junit3)
> So I'm missing it rigth now.

The headless launcher is bundled separately and available from the
download page on swtbot.

-- Ketan
Re: Automating the launch of SWTBot tests with Ant [message #30679 is a reply to message #28280] Thu, 26 March 2009 13:51 Go to previous messageGo to next message
Marc is currently offline MarcFriend
Messages: 32
Registered: July 2009
Member
Hi, finally it worked for me :)

I think I'd share it with everyone, it may give some hints.

I prepared the eclipse install following http://wiki.eclipse.org/SWTBot/Ant
I used the structure Hugulas Chen mentioned (see first post of this
thread), but in the target "execute" I had to adapt the parameters to my
project. (and especially the fact that I'm testing an RCP app)


<target name="execute">
<echo>Debut target execute</echo>
<java classname="org.eclipse.core.launcher.Main" fork="true"
output="reports/com.obs.out.txt" error="reports/com.obs.err.txt" >
<arg line="-os win32" />
<arg line="-ws win32" />
<arg line="-arch x86" />
<arg line="-nl fr_FR" />
<arg line="-application" />
<arg line="org.eclipse.swtbot.eclipse.core.swtbottestapplication "
/>
<arg line="-classNames" />
<arg line="com.obs.AllTests" />
<arg line="-testpluginname" />
<arg line="com.obs" />
<arg line="-version" />
<arg line="3" />
<arg line="-testLoaderClass" />
<arg
line=" org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoade r " />
<arg line="-loaderpluginname" />
<arg line="org.eclipse.jdt.junit.runtime" />
<arg line="-testApplication" />
<arg line="thirdPartyRCP.application" />
<arg line="-port" />
<arg line="2625" />
<arg line="-pdelaunch" />
<arg line="-data" />
<arg line="C:\eclipse_auto\workspace/../junit-workspace" />
<arg line="-configuration
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/ "
/>
<arg line="-dev
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/dev.properties "
/>
<arg line="-debug" />
<arg line="-consolelog" />
<classpath>
<fileset dir="c:\eclipse_auto\eclipse\plugins">
<include name="org.eclipse.equinox.launcher_*.jar" />
</fileset>
</classpath>
</java>
</target>

Notice that I added:
<arg line="-testApplication" />
<arg line="thirdPartyRCP.application" />
this launches the RCP app.

Some point I'm not fully aware of is:
<arg line="-configuration
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/ "
/>
<arg line="-dev
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/dev.properties "
/>

I've found those parameters by lauching the swtbot plugin test in debug
view. When it is done, an icon of the process is displayed. Right click on
it then "properties" and you get a standalone command line.
If I remove those lines, the app that is being tested is launched but
never displays itself (and ends up crashing because a getView like method
fails).
I don't know exactly what's behind, but right now things work and it is
enough for me.


Finally I had to add xercesImpl.jar to the plugin directory of eclipse.
I just need it when launching from Ant not from Eclipse.
I don't know why.

Thanks to everyone who has helped me in any way.
Re: Automating the launch of SWTBot tests with Ant [message #30748 is a reply to message #30679] Thu, 26 March 2009 15:13 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 26/3/09 06:51, Marc wrote:
> Hi, finally it worked for me :)

Great! It would be great if you could update the wiki page and add
another section for rcp based apps.

> Some point I'm not fully aware of is:
> <arg line="-configuration
> file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/ "
> />
> <arg line="-dev
> file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/dev.properties "
> />

These directories are created when you launch tests from within eclipse.
I'm not sure if that'll work headless from a "checked out" source.

You'll need to put in a pde build in place before using the ant based
runner if you want to run headless. The existing wiki page assumes that
you'll have the plugins properly installed in an eclipse instance.

-- Ketan
Re: Automating the launch of SWTBot tests with Ant [message #30783 is a reply to message #30748] Thu, 26 March 2009 16:05 Go to previous messageGo to next message
Marc is currently offline MarcFriend
Messages: 32
Registered: July 2009
Member
Ketan Padegaonkar wrote:

> On 26/3/09 06:51, Marc wrote:
>> Hi, finally it worked for me :)

> Great! It would be great if you could update the wiki page and add
> another section for rcp based apps.

ok I will, just need to find some time.

>> Some point I'm not fully aware of is:
>> <arg line="-configuration
>>
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/ "
>> />
>> <arg line="-dev
>>
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/dev.properties "
>> />

> These directories are created when you launch tests from within eclipse.
> I'm not sure if that'll work headless from a "checked out" source.

> You'll need to put in a pde build in place before using the ant based
> runner if you want to run headless. The existing wiki page assumes that
> you'll have the plugins properly installed in an eclipse instance.

> -- Ketan

Yep, some point I did not mention and probably has to do with it.
I don't have a build in place for the RCP app. In fact I opened the RCP in
an eclipse env and I export all the plugin [deployable plug-ins and
fragments] to jar.
Then I have a second eclipse env (for test) where I manually put the
generated jar (I've already put the required swtbot ones).
It is a bit tricky because in that second instance I've also duplicated
the workspace of the dev one (that's why the 2 above directories do exist).
Now that I've managed to make things work, I'll be working on making all
of that cleaner, and especially automating the build.
Re: Automating the launch of SWTBot tests with Ant [message #30817 is a reply to message #30679] Fri, 27 March 2009 08:25 Go to previous messageGo to next message
Brice Laurel is currently offline Brice LaurelFriend
Messages: 72
Registered: July 2009
Member
Hi Marc,

There are many days I want to generate a report for my SWTBot'test. But
the ANT buildfile don't run. Can you send me your build.xml?

Thanks in advance for your help.
Re: Automating the launch of SWTBot tests with Ant [message #30852 is a reply to message #30817] Fri, 27 March 2009 11:15 Go to previous messageGo to next message
Marc is currently offline MarcFriend
Messages: 32
Registered: July 2009
Member
Below is my build.xml.

Notes:
I have some properties defined but I did not use all.
You have to get the PDEcollector (see first post) and point to it (see the
listen target)
About the -configuration and -dev args: see discussion in some other posts
of this thread.


When all works, you get err and out reports in the "/reports" and an xml
file report of all tests (created by PDETestResultsCollector).
Look at err and out to help you debug, if doesn't work well.


<project name="thirdparty-test" basedir=".">

<property name="test.workspace"
location="C:\eclipse_auto\workspace/../junit-workspace"/>
<property name="testcase" location="com.obs.AllTests"/>
<property name="testplugin" location="com.obs"/>
<property name="build.home" location="c:\eclipse_auto\eclipse"/>
<property name="build.plugins" location="${build.home}/plugins"/>
<property name="java.home" location="D:\Program
Files\Java\jdk1.6.0_11"/>
<property name="ant.home" location="c:\eclipse_auto"/>


<target name="test">
<parallel>
<daemons>
<antcall target="listen" />
</daemons>
<sequential>
<sleep seconds="8" />
<!-- Give the listener a few seconds to startup -->
<antcall target="execute" />
</sequential>
</parallel>
</target>

<target name="execute">
<echo>Debut target execute</echo>
<!--echo>${test.workspace}</echo-->
<!--delete dir="${test.workspace}" />
<mkdir dir="${test.workspace}" /-->
<!-- -classpath
/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819 .jar
org.eclipse.core.launcher.Main equinox" dir="${build.home}"-->
<java classname="org.eclipse.core.launcher.Main" fork="true"
output="reports/com.obs.out.txt" error="reports/com.obs.err.txt"
><!--append="true"-->
<!--arg line="-Xms128M -Xmx368M -XX:MaxPermSize=256M" /-->
<arg line="-os win32" />
<arg line="-ws win32" />
<arg line="-arch x86" />
<arg line="-nl fr_FR" />
<arg line="-application" />
<arg line="org.eclipse.swtbot.eclipse.core.swtbottestapplication " />
<arg line="-classNames" />
<arg line="com.obs.AllTests" />
<arg line="-testpluginname" />
<arg line="com.obs" />
<arg line="-version" />
<arg line="3" />
<arg line="-testLoaderClass" />
<arg
line=" org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoade r " />
<arg line="-loaderpluginname" />
<arg line="org.eclipse.jdt.junit.runtime" />
<arg line="-testApplication" />
<arg line="S3ic.application" />
<arg line="-port" />
<arg line="2625" />
<arg line="-pdelaunch" />
<arg line="-data" />
<arg line="C:\eclipse_auto\workspace/../junit-workspace" />
<arg line="-configuration
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/ "
/>
<arg line="-dev
file:C:/eclipse_auto/workspace/.metadata/.plugins/org.eclips e.pde.core/pde-junit/dev.properties "
/>
<arg line="-debug" />
<arg line="-consolelog" />
<classpath>
<fileset dir="c:\eclipse_auto\eclipse\plugins">
<include name="org.eclipse.equinox.launcher_*.jar" />
</fileset>
</classpath>
</java>
</target>
<!---->


<target name="listen">
<echo>Debut target listen</echo>
<java classname="pde.test.utils.PDETestResultsCollector">
<arg line="com.obs.AllTests 2625" />
<classpath>
<fileset dir="${build.plugins}">
<include name="**/*.jar" />
</fileset>
<!--fileset dir="lib"-->
<fileset dir="C:\eclipse_auto\pde.test.utils\target">
<include name="**/*.jar" />
</fileset>
<fileset dir="${java.home}/lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</java>
</target>

</project>
Re: Automating the launch of SWTBot tests with Ant [message #30888 is a reply to message #30852] Fri, 27 March 2009 16:15 Go to previous messageGo to next message
Brice Laurel is currently offline Brice LaurelFriend
Messages: 72
Registered: July 2009
Member
Thanks Marc.

I copy your build.xml in my workspace. I had the plugin "pde.test.utils"
in dependenciy tab of my plugin.

But this line

<java classname="pde.test.utils.PDETestResultsCollector">

of target "listen" causes this error

[java] Could not find pde.test.utils.PDETestResultsCollector. Make
sure you have it in your classpath
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJav a.java:138)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
[java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201 )
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )

I don't understand how? Thanks in advance for your help.
Re: Automating the launch of SWTBot tests with Ant [message #30923 is a reply to message #30888] Fri, 27 March 2009 17:24 Go to previous messageGo to next message
Marc is currently offline MarcFriend
Messages: 32
Registered: July 2009
Member
pde.test.utils doesn't have to be declared within tour test plugin.
just copy the repository somewhere (in my env, the pde.test.utils
top-directory is at the same place as my build.xml

look at the target named "listen" in the script. You can see how I pointed
to pde.test.utils\target. Adapt it to your conf and it should be found.

Marc


Brice Laurel wrote:

> Thanks Marc.

> I copy your build.xml in my workspace. I had the plugin "pde.test.utils"
> in dependenciy tab of my plugin.

> But this line

> <java classname="pde.test.utils.PDETestResultsCollector">

> of target "listen" causes this error

> [java] Could not find pde.test.utils.PDETestResultsCollector. Make
> sure you have it in your classpath
> [java] at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJav a.java:138)
> [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> [java] at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201 )
> [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
> [java] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [java] at org.apache.tools.ant.Task.perform(Task.java:348)
> [java] at org.apache.tools.ant.Target.execute(Target.java:357)
> [java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [java] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )

> I don't understand how? Thanks in advance for your help.
Re: Automating the launch of SWTBot tests with Ant [message #30958 is a reply to message #30923] Sat, 28 March 2009 15:27 Go to previous messageGo to next message
Brice Laurel is currently offline Brice LaurelFriend
Messages: 72
Registered: July 2009
Member
Thanks Marc,

Ihave somme problems to understand exactly the target "listen". Please
lets me explain :

1- <target name="listen">
the taget's name
2- <echo>Debut target listen</echo>
displays the message
3- <java classname="pde.test.utils.PDETestResultsCollector">
executes this class

Questions:

This class is compiled when? What is her goal?

Please I do tutotiels but I think I don't understand something?

4- <arg line="com.obs.AllTests 2625" />
I suppose "com.obs.AllTests" is the test I want to run. Am I wrong?
The argument "2625" means what?

5- <classpath>
...
<fileset dir="C:\eclipse_auto\pde.test.utils\target">
<include name="**/*.jar" />
</fileset>
...
</classpath>

the directory "target" is created when? Please I don't understand this
line. I don't see when the directory and the jar is generated.
I don't see task "junitreport" in the script. The report of test is
generated when?
Thanks in advance for your help.
Re: Automating the launch of SWTBot tests with Ant [message #30992 is a reply to message #30958] Mon, 30 March 2009 07:51 Go to previous messageGo to next message
Marc is currently offline MarcFriend
Messages: 32
Registered: July 2009
Member
When running the tests, the test results are send "somewhere". this
somewhere is port 2625 in my example (2625 is a port number). We need
something to collect those sent results.
in the execute target we sepcify to send it to port 2625. and in target
listen, we specify to be listening on same port 2625.
PDETestResultsCollector is something that listens junit results on a port
and will then write this data to a file

Q:pde.test.utils.PDETestResultsCollector?
A: the class is already compiled. Download
http://www.eclipse.org/articles/Article-PDEJUnitAntAutomatio n/PDETestExampleProjects-3.3.zip
unzip it and you will get the repositories (contain source + jar, just jar
is needed to execute)

Q:why no junitreport?
A: probably there's a way to work directly with junitreport instead of
this parallel listener.
But I did not even try it, because I've managed to make the
PDETestResultsCollector work.

your com.xxx.Alltest should be the class that contains all the tests.

The report is generated when all the tests are done I think.

Sorry I can explain very further. I have just taken the example that have
be given here and adapted it to my env. I don't know much more.
But I think once the listen target is set up correctly it will easier for
you to finish parametrization because you will have the "err" and "out"
logs.

Bye
Marc


Brice Laurel wrote:

> Thanks Marc,

> Ihave somme problems to understand exactly the target "listen". Please
> lets me explain :

> 1- <target name="listen">
> the taget's name
> 2- <echo>Debut target listen</echo>
> displays the message
> 3- <java classname="pde.test.utils.PDETestResultsCollector">
> executes this class

> Questions:

> This class is compiled when? What is her goal?

> Please I do tutotiels but I think I don't understand something?

> 4- <arg line="com.obs.AllTests 2625" />
> I suppose "com.obs.AllTests" is the test I want to run. Am I wrong?
> The argument "2625" means what?

> 5- <classpath>
> ...
> <fileset dir="C:eclipse_autopde.test.utilstarget">
> <include name="**/*.jar" />
> </fileset>
> ...
> </classpath>

> the directory "target" is created when? Please I don't understand this
> line. I don't see when the directory and the jar is generated.
> I don't see task "junitreport" in the script. The report of test is
> generated when?
> Thanks in advance for your help.
Re: Automating the launch of SWTBot tests with Ant [message #635762 is a reply to message #28047] Thu, 28 October 2010 02:25 Go to previous messageGo to next message
toni  is currently offline toni Friend
Messages: 8
Registered: October 2010
Junior Member
Hi all,

I'm very new to SWTBot. So, could you please explain more details about how to use ant to run a test case.

What I already have now:

- A RCP Application source code.

- A Test Case to test the RCP App. In Dependencies, I already added these plugins: org.eclipse.swtbot.swt.finder, org.eclipse.swtbot.eclipse.finder, org.hamcrest, org.junit4.

- Headless Junit testing framework has been downloaded and copy to the Eclipse plugin folder.

- TestCase has been exported into jar and copy into the eclipse plugin.

- ant can run the test case sucessfully but cannot launch the RCP application.

What I do not know is how and where I have to config to let ant able to launch the specified RCP application. The video demo from Ketan just shows how to use ant to launch and test an Eclipse window, not an specified Application. I've already looked at build.xml and library.xml, but still not understand much cuz these files doesn't have clear comments inside.

BTW, in this link http://wiki.eclipse.org/SWTBot/Ant, Ketan mentions about using command line to run the test but I really don't know how to? could you guys can explain more?


Very appreciate!
Toni


Re: Automating the launch of SWTBot tests with Ant [message #635819 is a reply to message #635762] Thu, 28 October 2010 08:59 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Maybe this link can be helpful: http://www.bonitasoft.org/blog/eclipse/swtbot-my-new-friend/


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Previous Topic:Alternate for sleep()
Next Topic:Help with ANT [ Tutorial-Video ]
Goto Forum:
  


Current Time: Thu Apr 18 00:11:50 GMT 2024

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

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

Back to the top