Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Testing and Eclipse RCP Application
Testing and Eclipse RCP Application [message #495132] Tue, 03 November 2009 21:05 Go to next message
Eclipse UserFriend
Originally posted by: plenty.groover.gmail.com

I've been trying to get SWTBot to test an application that has been
implemented as an Eclipse RCP Application and getting the tests to run
within the executable is completely escaping me. I can get the
executable to start up, but then nothing at all happens. For the
moment, I'm simply trying to click on "File", "Exit" to see if I have
everything correct, once I get that, I should then be able to start with
more in depth testing (I hope). If I run my code as a normal SWTBot
Test, then another Eclipse instance starts up and will correctly have
the menu selections made for a successful test. I know I'm missing
something key, but as I said earlier, it simply escapes me.

I'm using it as an Ant headless test as that's the closest I've come
thus far. I used the examples from what I've found on the web and have
listed the files and the output below.

How can I get SWTBot to recognize, and execute it's tests inside the
executable?

thx,
Plenty


****** SimpleTest.java ******

package com.simple.test;

import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(SWTBotJunit4ClassRunner.class)
public class SimpleTest {
private static SWTWorkbenchBot bot;

@BeforeClass
public static void beforeClass() throws Exception {
bot = new SWTWorkbenchBot();
bot.viewByTitle("Welcome").close();
}

@Test
public void testSimple() throws Exception {
bot.menu("File").menu("Exit").click();
}

@AfterClass
public static void sleep() {
bot.sleep(2000);
}

}


****** org.eclipse.swtbot.eclipse.finder.test.xml ******

<?xml version="1.0" encoding="UTF-8" ?>
<project name="SimpleTest" default="run" basedir=".">
<property name="all.buildId" value="2.0.0.394-dev-e35" />
<property name="eclipse-home" value="." />
<property name="plugin-name" value="com.simple.test" />
<property name="library-file"
value=" ${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.he adless_${all.buildId}/library.xml "
/>
<property name="test-classname" value="com.other.simple.application" />

<target name="init">
<tstamp />
<delete>
<fileset dir="${eclipse-home}" includes="org*.xml" />
</delete>
</target>

<target name="suite">
<property name="jvmOption" value="" />

<property name="temp-workspace" value="workspace" />
<delete dir="${temp-workspace}" quiet="false" />

<ant target="swtbot-test" antfile="${library-file}" dir="${eclipse-home}">
<property name="data-dir" value="${temp-workspace}" />
<property name="plugin-name" value="${plugin-name}" />
<property name="os" value="win32" />
<property name="ws" value="win32" />
<property name="arch" value="x86" />
<property name="classname" value="${test-classname}" />
<property name="vmargs" value=" -Xms128M -Xmx368M
-XX:MaxPermSize=256M ${jvmOption}" />
<property name="testApplication" value="com.other.simple.application" />
</ant>
</target>

<target name="cleanup" />

<target name="run" depends="init,suite,cleanup">
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
<property name="output-file" value="${plugin-name}.xml" />
</ant>
</target>

</project>


****** library.xml ******
<?xml version="1.0"?>
<project name="Library" default="usage" basedir=".">
<target name="usage">
<echo message="Please refer to the testframework.html in
org.eclipse.test for instructions on usage." />
</target>

<target name="init">

<tstamp>
<format property="TIMENOW" pattern="HHmmssSSSS" />
</tstamp>
<!--property setting useEclipseExe launches tests using the eclipse
executable-->
<condition property="launchTarget" value="eclipse-test">
<isset property="useEclipseExe" />
</condition>
<!--default launch target for launching tests-->
<property name="launchTarget" value="java-test" />

<!-- default product/application to launch -->
<condition property="testproduct.if.available" value="-product
${testProduct}">
<isset property="testProduct" />
</condition>
<property name="testproduct.if.available" value="" />

<condition property="testapplication.if.available"
value="-testApplication ${testApplication}">
<isset property="testApplication" />
</condition>

<property name="testapplication.if.available" value="" />

<!--default heap sizes when running performance tests-->
<condition property="vmargs" value=" -Xms256M -Xmx256M">
<equals arg1="${test.target}" arg2="performance" />
</condition>
<property name="extraVMargs" value="" />
<property name="plugin-path" value="" />
<property name="timeout" value="7200000" />
<property name="test-output" value="${eclipse-home}/${classname}.xml" />
<property name="junit-report-output" value="${eclipse-home}/results" />
<mkdir dir="${junit-report-output}" />
</target>

<target name="swtbot-test" description="Eclipse application used to
launch UI plugin tests." depends="init">
<antcall target="${launchTarget}">
<!--param name="application" value="com.simple.test.SimpleTestCase" /-->
<param name="application" value="com.other.simple.application" />
</antcall>
</target>

<target name="java-test">
<!--default vm args-->
<property name="vmargs" value="-Xms256m -Xmx512m" />

<!-- this argument is needed for macosx -->
<condition property="jvmOption" value="-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts">
<os family="mac" />
</condition>

<property name="jvmOption" value="" />

<!--set default jvm to use for testing-->
<property name="jvm" value="${java.home}/bin/java" />

<property name="launcher-arg-line" value="
-application ${application}
${testproduct.if.available}
${testapplication.if.available}
-data ${data-dir}

formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,${test-output}
formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter
-testPluginName ${plugin-name}
-className ${classname}
-os ${os}
-ws ${ws}
-arch ${arch}
-consoleLog
-debug" />
<property name="jvm-arg-line" value="${vmargs} ${extraVMargs}
${jvmOption}" />

<echo>======================================</echo>
<echo>Running swtbot junit tests in ${classname}</echo>
<echo>Command line args are ${launcher-arg-line}</echo>
<echo>JVM args are ${jvm-arg-line}</echo>
<echo>JUnit Result File: ${junit-report-output}/${classname}.xml.</echo>
<echo>Console output File: ${junit-report-output}/${classname}.txt.</echo>
<echo>======================================</echo>

<fail unless="application" message="variable 'application' not
defined." />
<fail unless="data-dir" message="variable 'data-dir' not defined." />
<fail unless="test-output" message="variable 'test-output' not defined" />
<fail unless="plugin-name" message="variable 'plugin-name' not defined" />
<fail unless="classname" message="variable 'classname' not defined" />
<fail unless="os" message="variable 'os' not defined. os can be one of
win32, linux, macosx" />
<fail unless="ws" message="variable 'ws' not defined. ws can be one of
win32, wpf, gtk, carbon, cocoa" />
<fail unless="arch" message="variable 'arch' not defined. arch can be
one of x86, x86_64, ppc" />

<java fork="true" dir="." timeout="${timeout}" jvm="${jvm}"
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="${launcher-arg-line}" />
<jvmarg line="${jvm-arg-line}" />
<sysproperty key="PLUGIN_PATH" value="${plugin-path}" />
</java>

<echo>======================================</echo>
<echo>If you see errors above please see the file
${junit-report-output}/${classname}.txt for more information.</echo>
<echo>Errors are generally caused by missing or incorrect
dependencies.</echo>
<echo>======================================</echo>

<antcall target="collect-results" />
</target>

<target name="collect-results">
<dirname property="output-dir" file="${test-output}" />
<basename property="output-file-name" file="${test-output}" />
<junitreport todir="${junit-report-output}" tofile="${classname}.xml">
<fileset dir="${output-dir}">
<include name="${output-file-name}" />
</fileset>
</junitreport>

<style style="${eclipse-home}/plugins/org.eclipse.test/JUNIT.XSL"
basedir="${junit-report-output}" includes="${classname}.result.xml"
destdir="${junit-report-output}" />

<!--save .log content and *.log content from configuration directory-->
<concat destfile="${junit-report-output}/${classname}.log">
<fileset dir="${eclipse-home}" includes="${data-dir}/.metadata/*.log" />
<fileset dir="${eclipse-home}" includes="configuration/*.log" />
</concat>
</target>

<target name="collect">
<junitreport todir="." tofile="${output-file}">
<fileset dir=".">
<include name="${includes}" />
</fileset>
</junitreport>
</target>

</project>



****** output ******

Buildfile:
C:\workspace\com.simple.test\org.eclipse.swtbot.eclipse.find er.test.xml
init:
suite:
[delete] Deleting directory C:\workspace\com.simple.test\workspace
init:
swtbot-test:
java-test:
[echo] ======================================
[echo] Running swtbot junit tests in com.other.simple.application
[echo] Command line args are -application
com.other.simple.application -testApplication
com.other.simple.application -data workspace
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,./com.other.simple.application.xml
formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter
-testPluginName com.simple.test -className
com.other.simple.application -os win32 -ws win32 -arch x86
-consoleLog -debug
[echo] JVM args are -Xms128M -Xmx368M -XX:MaxPermSize=256M
[echo] JUnit Result File: ./results/com.other.simple.application.xml.
[echo] Console output File:
../results/com.other.simple.application.txt.
[echo] ======================================
[java] log4j:ERROR Could not read configuration file
[log4j.properties].
[java] java.io.FileNotFoundException: log4j.properties (The system
cannot find the file specified)
[java] at java.io.FileInputStream.open(Native Method)
[java] at java.io.FileInputStream.<init>(Unknown Source)
[java] at java.io.FileInputStream.<init>(Unknown Source)
[java] at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCo nfigurator.java:316)
[java] at
org.apache.log4j.PropertyConfigurator.configure(PropertyConf igurator.java:342)
[java] at
com.other.simple.service.logger.LoggerService.initialize(Log gerService.java:45)
[java] at
com.other.simple.internal.service.GlobalServiceRegistry.init ialize(GlobalServiceRegistry.java:127)
[java] at
com.other.simple.internal.service.GlobalServiceRegistry.getI nstance(GlobalServiceRegistry.java:51)
[java] at
com.other.simple.eclipse.rcp.Application.initBackgroundSetup (Application.java:51)
[java] at
com.other.simple.eclipse.rcp.Application.start(Application.j ava:74)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
[java] at java.lang.reflect.Method.invoke(Unknown Source)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
[java] at org.eclipse.core.launcher.Main.main(Main.java:34)
[java] log4j:ERROR Ignoring configuration file [log4j.properties].
[echo] ======================================
[echo] If you see errors above please see the file
../results/com.other.simple.application.txt for more information.
[echo] Errors are generally caused by missing or incorrect
dependencies.
[echo] ======================================
collect-results:
[style] Warning: the task name <style> is deprecated. Use <xslt>
instead.
[style] Transforming into C:\workspace\com.simple.test\results
cleanup:
run:
collect:
BUILD SUCCESSFUL
Total time: 20 seconds
Re: Testing and Eclipse RCP Application [message #495709 is a reply to message #495132] Thu, 05 November 2009 19:36 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
The test-classname should be a test class, not an application. SWTBot
does not discover the test classes given an application, but needs to be
pointed to a suite[2].

See the library xml[1] for what params need to be defined. Or hand code
the command line based on the "swtbot-test" target in the library.xml --
this one calls the "java-test" ant target.


[1] -
http://github.com/ketan/swtbot/blob/master/org.eclipse.swtbo t.eclipse.junit4.headless/library.xml
[2] -
http://github.com/ketan/swtbot/blob/master/org.eclipse.swtbo t.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/ AllTests.java

-- Ketan

Plenty Groover Jr. wrote:
> I've been trying to get SWTBot to test an application that has been
> implemented as an Eclipse RCP Application and getting the tests to run
> within the executable is completely escaping me. I can get the
> executable to start up, but then nothing at all happens. For the
> moment, I'm simply trying to click on "File", "Exit" to see if I have
> everything correct, once I get that, I should then be able to start with
> more in depth testing (I hope). If I run my code as a normal SWTBot
> Test, then another Eclipse instance starts up and will correctly have
> the menu selections made for a successful test. I know I'm missing
> something key, but as I said earlier, it simply escapes me.
>
> I'm using it as an Ant headless test as that's the closest I've come
> thus far. I used the examples from what I've found on the web and have
> listed the files and the output below.
>
> How can I get SWTBot to recognize, and execute it's tests inside the
> executable?
>
> thx,
> Plenty
>
>
> ****** SimpleTest.java ******
>
> package com.simple.test;
>
> import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
> import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
> import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
> import org.junit.AfterClass;
> import org.junit.BeforeClass;
> import org.junit.Test;
> import org.junit.runner.RunWith;
>
> @RunWith(SWTBotJunit4ClassRunner.class)
> public class SimpleTest {
> private static SWTWorkbenchBot bot;
>
> @BeforeClass
> public static void beforeClass() throws Exception {
> bot = new SWTWorkbenchBot();
> bot.viewByTitle("Welcome").close();
> }
>
> @Test
> public void testSimple() throws Exception {
> bot.menu("File").menu("Exit").click();
> }
>
> @AfterClass
> public static void sleep() {
> bot.sleep(2000);
> }
>
> }
>
>
> ****** org.eclipse.swtbot.eclipse.finder.test.xml ******
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <project name="SimpleTest" default="run" basedir=".">
> <property name="all.buildId" value="2.0.0.394-dev-e35" />
> <property name="eclipse-home" value="." />
> <property name="plugin-name" value="com.simple.test" />
> <property name="library-file"
> value=" ${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.he adless_${all.buildId}/library.xml "
> />
> <property name="test-classname" value="com.other.simple.application" />
>
> <target name="init">
> <tstamp />
> <delete>
> <fileset dir="${eclipse-home}" includes="org*.xml" />
> </delete>
> </target>
>
> <target name="suite">
> <property name="jvmOption" value="" />
>
> <property name="temp-workspace" value="workspace" />
> <delete dir="${temp-workspace}" quiet="false" />
>
> <ant target="swtbot-test" antfile="${library-file}"
> dir="${eclipse-home}">
> <property name="data-dir" value="${temp-workspace}" />
> <property name="plugin-name" value="${plugin-name}" />
> <property name="os" value="win32" />
> <property name="ws" value="win32" />
> <property name="arch" value="x86" />
> <property name="classname" value="${test-classname}" />
> <property name="vmargs" value=" -Xms128M -Xmx368M
> -XX:MaxPermSize=256M ${jvmOption}" />
> <property name="testApplication"
> value="com.other.simple.application" />
> </ant>
> </target>
>
> <target name="cleanup" />
>
> <target name="run" depends="init,suite,cleanup">
> <ant target="collect" antfile="${library-file}"
> dir="${eclipse-home}">
> <property name="output-file" value="${plugin-name}.xml" />
> </ant>
> </target>
>
> </project>
>
>
> ****** library.xml ******
> <?xml version="1.0"?>
> <project name="Library" default="usage" basedir=".">
> <target name="usage">
> <echo message="Please refer to the testframework.html in
> org.eclipse.test for instructions on usage." />
> </target>
>
> <target name="init">
>
> <tstamp>
> <format property="TIMENOW" pattern="HHmmssSSSS" />
> </tstamp>
> <!--property setting useEclipseExe launches tests using the
> eclipse executable-->
> <condition property="launchTarget" value="eclipse-test">
> <isset property="useEclipseExe" />
> </condition>
> <!--default launch target for launching tests-->
> <property name="launchTarget" value="java-test" />
>
> <!-- default product/application to launch -->
> <condition property="testproduct.if.available" value="-product
> ${testProduct}">
> <isset property="testProduct" />
> </condition>
> <property name="testproduct.if.available" value="" />
>
> <condition property="testapplication.if.available"
> value="-testApplication ${testApplication}">
> <isset property="testApplication" />
> </condition>
>
> <property name="testapplication.if.available" value="" />
>
> <!--default heap sizes when running performance tests-->
> <condition property="vmargs" value=" -Xms256M -Xmx256M">
> <equals arg1="${test.target}" arg2="performance" />
> </condition>
> <property name="extraVMargs" value="" />
> <property name="plugin-path" value="" />
> <property name="timeout" value="7200000" />
> <property name="test-output"
> value="${eclipse-home}/${classname}.xml" />
> <property name="junit-report-output"
> value="${eclipse-home}/results" />
> <mkdir dir="${junit-report-output}" />
> </target>
>
> <target name="swtbot-test" description="Eclipse application used to
> launch UI plugin tests." depends="init">
> <antcall target="${launchTarget}">
> <!--param name="application"
> value="com.simple.test.SimpleTestCase" /-->
> <param name="application"
> value="com.other.simple.application" />
> </antcall>
> </target>
>
> <target name="java-test">
> <!--default vm args-->
> <property name="vmargs" value="-Xms256m -Xmx512m" />
>
> <!-- this argument is needed for macosx -->
> <condition property="jvmOption" value="-XstartOnFirstThread
> -Dorg.eclipse.swt.internal.carbon.smallFonts">
> <os family="mac" />
> </condition>
>
> <property name="jvmOption" value="" />
>
> <!--set default jvm to use for testing-->
> <property name="jvm" value="${java.home}/bin/java" />
>
> <property name="launcher-arg-line" value="
> -application ${application}
> ${testproduct.if.available}
> ${testapplication.if.available}
> -data ${data-dir}
>
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,${test-output}
> formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter
>
> -testPluginName ${plugin-name}
> -className ${classname}
> -os ${os}
> -ws ${ws}
> -arch ${arch}
> -consoleLog
> -debug" />
> <property name="jvm-arg-line" value="${vmargs} ${extraVMargs}
> ${jvmOption}" />
>
> <echo>======================================</echo>
> <echo>Running swtbot junit tests in ${classname}</echo>
> <echo>Command line args are ${launcher-arg-line}</echo>
> <echo>JVM args are ${jvm-arg-line}</echo>
> <echo>JUnit Result File:
> ${junit-report-output}/${classname}.xml.</echo>
> <echo>Console output File:
> ${junit-report-output}/${classname}.txt.</echo>
> <echo>======================================</echo>
>
> <fail unless="application" message="variable 'application' not
> defined." />
> <fail unless="data-dir" message="variable 'data-dir' not
> defined." />
> <fail unless="test-output" message="variable 'test-output' not
> defined" />
> <fail unless="plugin-name" message="variable 'plugin-name' not
> defined" />
> <fail unless="classname" message="variable 'classname' not
> defined" />
> <fail unless="os" message="variable 'os' not defined. os can be
> one of win32, linux, macosx" />
> <fail unless="ws" message="variable 'ws' not defined. ws can be
> one of win32, wpf, gtk, carbon, cocoa" />
> <fail unless="arch" message="variable 'arch' not defined. arch
> can be one of x86, x86_64, ppc" />
>
> <java fork="true" dir="." timeout="${timeout}" jvm="${jvm}"
> 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="${launcher-arg-line}" />
> <jvmarg line="${jvm-arg-line}" />
> <sysproperty key="PLUGIN_PATH" value="${plugin-path}" />
> </java>
>
> <echo>======================================</echo>
> <echo>If you see errors above please see the file
> ${junit-report-output}/${classname}.txt for more information.</echo>
> <echo>Errors are generally caused by missing or incorrect
> dependencies.</echo>
> <echo>======================================</echo>
>
> <antcall target="collect-results" />
> </target>
>
> <target name="collect-results">
> <dirname property="output-dir" file="${test-output}" />
> <basename property="output-file-name" file="${test-output}" />
> <junitreport todir="${junit-report-output}"
> tofile="${classname}.xml">
> <fileset dir="${output-dir}">
> <include name="${output-file-name}" />
> </fileset>
> </junitreport>
>
> <style
> style="${eclipse-home}/plugins/org.eclipse.test/JUNIT.XSL"
> basedir="${junit-report-output}" includes="${classname}.result.xml"
> destdir="${junit-report-output}" />
>
> <!--save .log content and *.log content from configuration
> directory-->
> <concat destfile="${junit-report-output}/${classname}.log">
> <fileset dir="${eclipse-home}"
> includes="${data-dir}/.metadata/*.log" />
> <fileset dir="${eclipse-home}"
> includes="configuration/*.log" />
> </concat>
> </target>
>
> <target name="collect">
> <junitreport todir="." tofile="${output-file}">
> <fileset dir=".">
> <include name="${includes}" />
> </fileset>
> </junitreport>
> </target>
>
> </project>
>
>
>
> ****** output ******
>
> Buildfile:
> C:\workspace\com.simple.test\org.eclipse.swtbot.eclipse.find er.test.xml
> init:
> suite:
> [delete] Deleting directory C:\workspace\com.simple.test\workspace
> init:
> swtbot-test:
> java-test:
> [echo] ======================================
> [echo] Running swtbot junit tests in com.other.simple.application
> [echo] Command line args are -application
> com.other.simple.application -testApplication
> com.other.simple.application -data workspace
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,./com.other.simple.application.xml
> formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter
> -testPluginName com.simple.test -className
> com.other.simple.application -os win32 -ws win32 -arch x86
> -consoleLog -debug
> [echo] JVM args are -Xms128M -Xmx368M -XX:MaxPermSize=256M
> [echo] JUnit Result File: ./results/com.other.simple.application.xml.
> [echo] Console output File:
> ./results/com.other.simple.application.txt.
> [echo] ======================================
> [java] log4j:ERROR Could not read configuration file
> [log4j.properties].
> [java] java.io.FileNotFoundException: log4j.properties (The system
> cannot find the file specified)
> [java] at java.io.FileInputStream.open(Native Method)
> [java] at java.io.FileInputStream.<init>(Unknown Source)
> [java] at java.io.FileInputStream.<init>(Unknown Source)
> [java] at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCo nfigurator.java:316)
>
> [java] at
> org.apache.log4j.PropertyConfigurator.configure(PropertyConf igurator.java:342)
>
> [java] at
> com.other.simple.service.logger.LoggerService.initialize(Log gerService.java:45)
>
> [java] at
> com.other.simple.internal.service.GlobalServiceRegistry.init ialize(GlobalServiceRegistry.java:127)
>
> [java] at
> com.other.simple.internal.service.GlobalServiceRegistry.getI nstance(GlobalServiceRegistry.java:51)
>
> [java] at
> com.other.simple.eclipse.rcp.Application.initBackgroundSetup (Application.java:51)
>
> [java] at
> com.other.simple.eclipse.rcp.Application.start(Application.j ava:74)
> [java] at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> Source)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> [java] at java.lang.reflect.Method.invoke(Unknown Source)
> [java] at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> [java] at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> [java] at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> [java] at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
> [java] at org.eclipse.core.launcher.Main.main(Main.java:34)
> [java] log4j:ERROR Ignoring configuration file [log4j.properties].
> [echo] ======================================
> [echo] If you see errors above please see the file
> ./results/com.other.simple.application.txt for more information.
> [echo] Errors are generally caused by missing or incorrect
> dependencies.
> [echo] ======================================
> collect-results:
> [style] Warning: the task name <style> is deprecated. Use <xslt>
> instead.
> [style] Transforming into C:\workspace\com.simple.test\results
> cleanup:
> run:
> collect:
> BUILD SUCCESSFUL
> Total time: 20 seconds
Previous Topic:SWTBot test run configuration type actually needed?
Next Topic:WorkbenchTestable : No classLoader
Goto Forum:
  


Current Time: Thu Apr 25 15:25:55 GMT 2024

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

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

Back to the top