What I did is:
1. Export the WindowTest sample rcpContactMngr as deployable plugin
2. Modify the script to bind the created plugin (rcpContactMngr)
3. Change the test.xml and test-macros.xml to lauch the RCP product.
Please see the following snippet
- Code: Select all
--- test.xml ---
<launch-eclipse target="Eclipse3.2"
testname="WindowTesterExampleRCP"
testplugin="rcpContactMngr"
testclass="AddContactTest" />
<generate-summary />
--- test-macros.xml ---
<!-- Launch eclipse and run the tests -->
<exec executable="java" output="@{output}/test-out.txt">
<arg value="-Xms64M" />
<arg value="-Xmx256M" />
<arg value="-cp" />
<arg value="${@{target}}/startup.jar" />
<arg value="org.eclipse.core.launcher.Main" />
<arg value="-clean" />
<arg value="-noupdate" />
<arg value="-configuration" />
<arg value="C:\Program Files\eclipse/.metadata/.plugins/org.eclipse.pde.core/pde-junit" />
<arg value="-dev" />
<arg value="bin" />
<arg value="-product" />
<arg value="rcpContactMngr.product" />
<!--
<arg value="-application" />
<arg value="org.eclipse.test.uitestapplication" />
--> <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,@{output}/test-result.xml" />
<arg value="-testPluginName" />
<arg value="@{testplugin}" />
<arg value="-classname" />
<arg value="@{testclass}" />
<arg value="-verbose" />
<arg value="-consolelog" />
</exec>
The application is launched properly, but the test class does not work. The test result shows no test was run. I could not find any error message as well. I am not sure what I did is correct. Could anyone give me some hints for this?