| 
| ...\plugins\org.eclipse.test\JUNIT.XSL doesn't exist [message #539205] | Wed, 09 June 2010 19:47  |  | 
| Eclipse User  |  |  |  |  | I will to use SWTBOT Headless Testing Framework, so I started with a simple build.xml with the following content: 
 <?xml version="1.0" encoding="UTF-8" ?>
 <project name="pjt" default="tgt" basedir=".">
 <target name="tgt">
 <property name="eclipse-home" value="C:\temp\oda\eclipse" />
 <property name="data-dir" value="C:\temp\junit-workspace" />
 <delete dir="${data-dir}" quiet="true" />
 <ant target="swtbot-test" antfile=" plugins\org.eclipse.swtbot.eclipse.junit4.headless_2.0.0.568 -dev-e34\library.xml " dir="${eclipse-home}">
 <property name="plugin-name" value="ea.qa" />
 <property name="classname" value="ea.qa.startinstace.StartInstance" />
 <property name="junit-report-output" value="${data-dir}" />
 <property name="os" value="win32" />
 <property name="ws" value="win32" />
 <property name="arch" value="x86" />
 </ant>
 </target>
 </project>
 
 but when I run this, I am getting the following errors:
 
 collect-results:
 [style] Warning: the task name <style> is deprecated. Use <xslt> instead.
 
 BUILD FAILED
 C:\temp\oda\build.xml:7: The following error occurred while executing this line:
 
 C:\temp\oda\eclipse\plugins\org.eclipse.swtbot.eclipse.junit 4.headless_2.0.0.568
 -dev-e34\library.xml:73: The following error occurred while executing this line:
 
 C:\temp\oda\eclipse\plugins\org.eclipse.swtbot.eclipse.junit 4.headless_2.0.0.568
 -dev-e34\library.xml:155: The following error occurred while executing this line
 :
 C:\temp\oda\eclipse\plugins\org.eclipse.swtbot.eclipse.junit 4.headless_2.0.0.568
 -dev-e34\library.xml:167: stylesheet C:\temp\oda\eclipse\plugins\org.eclipse.test\JUNIT.XSL doesn't exist.
 
 
 Seem like some extra plug-ins for "org.eclipse.test" needs to be available, can anyone advices where to get such plug-ins? Btw, are we supposed to use the library.xml as is or need to be modified according to ones needs? I see the when an error occurs, the test stops/hangs - I guess that is due the the -debug option being passed at the command line, any advice there?
 
 
 
 |  |  |  | 
|  | 
| 
| Re: ...\plugins\org.eclipse.test\JUNIT.XSL doesn't exist [message #539417 is a reply to message #539260] | Thu, 10 June 2010 12:21  |  | 
| Eclipse User  |  |  |  |  | Hello Ketan, 
 thanks for your suggestion to point the line 167 in library.xml to JUNIT.XSL from org.eclipse.swtbot.eclipse.junit4.headless plugin
 
 In addition to that, line 161 also need to change from:
 
 <junitreport todir="${junit-report-output}" tofile="${classname}.xml">
 
 to:
 <junitreport todir="${junit-report-output}" tofile="${classname}.result.xml">
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03675 seconds