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