Thank you, but I already got it working. The only problem is the port number
which is dynamic. In the other example there is a class to determine that port
number. So it seems it is not working without such a class like
PDETestPortLocator to automate it. So these classes need to be in the class
path for everyone who wants to automate it. They could be included in SWTBot.
Are you aware of that? Then the patch would include at least one source class.
--- On Wed, 7/9/08, Ketan Padegaonkar <[EMAIL PROTECTED]> wrote:
From: Ketan Padegaonkar <[EMAIL PROTECTED]>
Subject: Re: [SWTBot-users] Running SWTBot Plugin Test from Ant
To: swtbot-users@lists.sourceforge.net
Date: Wednesday, July 9, 2008, 6:20 AM
On 09-Jul-08, at 3:40 PM, Hans Schwaebli wrote:
> I discovered I need to know the right port number. It varies from
> run to run. Thats why in the other example there is a class which
> gets this number and stores it into a property file before the test
> is run. I now will automate this for org.rcpmail.test. When
> finished, I will make a patch so that other users who need it can
> simply copy and paste it from that example if you agree.
You'll need to set the variable names to whatever is applicable to you:
<property name="eclipse-home"
value="/path/to/install/location/of/your/
plugin+eclipse+swtbot+junit3" />
<property name="classname"
value="com.foo.example.AllTests" />
<property name="plugin-name" value="com.foo.example"
/>
<property name="junit-report-output"
value="/reports/dir" />
<java fork="true" dir="." timeout="100000"
logError="true"
classname="org.eclipse.core.launcher.Main"
output="${junit-report-
output}/${classname}.txt">
<classpath>
<fileset dir="${eclipse-home}/plugins">
<include
name="org.eclipse.equinox.launcher_*.jar"/>
</fileset>
</classpath>
<arg line="-application
net.sf.swtbot.eclipse.headless.swtbottestapplication"/>
<arg line="-data test-workspace"/>
<arg
line
=
"formatter
=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,$
{eclipse-home}/${classname}.xml"/>
<arg line="-testPluginName ${plugin-name}"/>
<arg line="-className ${classname}"/>
<arg line="-os win32"/>
<arg line="-ws win32"/>
<arg line="-arch x86"/>
<arg line="-consolelog"/>
<arg line="-debug"/>
<jvmarg line="-Xmx512m -Xms256m"/>
</java>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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