Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » ClassCastException during running swtbot test with ant
ClassCastException during running swtbot test with ant [message #482413] Wed, 26 August 2009 13:21 Go to next message
Michelle Davidson is currently offline Michelle DavidsonFriend
Messages: 41
Registered: August 2009
Member
Hello,

I have done the two video tutorials from the swtbot website and I read the tipps from the website http://wiki.eclipse.org/SWTBot/Ant
But, when I start my test with ant. The Test application (eclipse IDE) starts but my tests dont run and I get this exception
Quote:
Total time: 57 seconds
C:\eclipse4test\headlessEclipse>ant
Buildfile: build.xml

init:

suite:
[delete] Deleting directory C:\eclipse4test\headlessEclipse\workspace

init:

swtbot-test:

java-test:
[echo] Running testpackage.FirstTestCase. Result file: C:/eclipse4test/headlesseclipse/results/testpackage.FirstTes tCase.xml.
[java] Exception in thread "WorkbenchTestable" java.lang.ClassCastException: org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF ormatter cannot be cast to junit.framework.TestListener
[java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:331)
[java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:208)
[java] at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .runTests(UITestApplication.java:115)
[java] at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)
[java] at java.lang.Thread.run(Thread.java:619)

collect-results:
[junitreport] the file C:\eclipse4test\headlesseclipse\testpackage.FirstTestCase.xm l is empty.
[junitreport] This can be caused by the test JVM exiting unexpectedly
[style] Warning: the task name <style> is deprecated. Use <xslt> instead.
[style] Transforming into C:\eclipse4test\headlesseclipse\results

cleanup:

run:



This ist my build.xml

<?xml version="1.0" encoding="UTF-8" ?>
<project name="testsuite" default="run" basedir=".">    
	<property name="eclipse-home" value="C:/eclipse4test/headlesseclipse" />
    <property name="plugin-name" value="aaa.swtbot.test" />
    <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.headless_2.0.0.371-dev-e34/library.xml"/>
	<property name="class-name" value="testpackage.FirstTestCase" />
 
    <target name="init">
        <tstamp />
        <delete>
            <fileset dir="${eclipse-home}" includes="org*.xml" />
        </delete>
    </target>
 
    <target name="suite">
 
<property name="jvmOption" value=""></property>
 
     <property name="temp-workspace" value="workspace" />
        <delete dir="${temp-workspace}" quiet="true" />
 
  
     <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="testProduct" value="org.eclipse.sdk.ide" />
            <property name="classname" value="${class-name}" />
			<property name="os" value="win32" /> 
			<property name="ws" value="win32" /> 
			<property name="arch" value="x86" />
			<property name="formatter" value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
            <property name="vmargs" value="-Xms40m -Xmx256m" />
        </ant>
    </target>
 
    <target name="cleanup" />
 
    <target name="run" depends="init,suite,cleanup">
        <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
            <property name="includes" value="*.xml" />
            <property name="output-file" value="${plugin-name}.xml" />
        </ant>
    </target>
 
</project>


Is there a wrong parameter in thebuild.xml or must I have another version of a plugin? Or is there another error?

The tests run when I launch the class in eclipse as swtbottest.

[Updated on: Wed, 26 August 2009 13:25]

Report message to a moderator

Re: ClassCastException during running swtbot test with ant [message #482523 is a reply to message #482413] Wed, 26 August 2009 21:28 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Michelle Davidson wrote:

> This ist my build.xml

> <property name="class-name" value="testpackage.FirstTestCase" />

> Is there a wrong parameter in thebuild.xml or must I have another version of
a plugin? Or is there another error?


You want to use:

<property name="test-classname" value="testpackage.FirstTestCase" />

test-classname, instead of class-name
Re: ClassCastException during running swtbot test with ant [message #482524 is a reply to message #482523] Wed, 26 August 2009 21:29 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Nevermind, I misread the file when comparing with mine. >_>;;
Been a long day...
Re: ClassCastException during running swtbot test with ant [message #482526 is a reply to message #482413] Wed, 26 August 2009 21:47 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
I had this happen saying there were no tests when I didn't have the right
plugin-name in my build.xml.
I had started a project, created a class, exported, moved the jar into the
plugins, started something else, forgot to change both plugin-name and
test_classname, and was still calling the old jar with my new classname.
That's what happened to me anyway.
Re: ClassCastException during running swtbot test with ant [message #482568 is a reply to message #482413] Thu, 27 August 2009 06:15 Go to previous messageGo to next message
Michelle Davidson is currently offline Michelle DavidsonFriend
Messages: 41
Registered: August 2009
Member
Hello,

Thanks for the answe but that wasn't the problem.

I checkt all names plugin-name, class-name package name. All this values are correct.

Then I make a mistake in these values and I get other Exceptions, which is ok. That means there are another mistake.

I attach my testplugin and my build.xml. Can anybody check, if the headless run does function. So I can exclude, that there was a mistake in the plugin or in the build.xml.

I used swtbot 2.0--371 (for eclipse 3.4.2)


Re: ClassCastException during running swtbot test with ant [message #482780 is a reply to message #482568] Thu, 27 August 2009 22:44 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Michelle Davidson wrote:

> Hello,
> Thanks for the answe but that wasn't the problem.
> I checkt all names plugin-name, class-name package name. All this values are
correct.
> Then I make a mistake in these values and I get other Exceptions, which is
ok. That means there are another mistake.
> I attach my testplugin and my build.xml. Can anybody check, if the headless
run does function. So I can exclude, that there was a mistake in the plugin or
in the build.xml.
> I used swtbot 2.0--371 (for eclipse 3.4.2)

When comparing your build.xml with my build.xml the only differences I see
are that I'm declaring the additional below:

<property name="plugin-path" value="${eclipse-home}/plugins" />
<property name="testProduct" value="org.eclipse.ui.ide.workbench" />
<property name="testApplication" value="org.eclipse.ui.ide.workbench" />
<property name="vmargs" value=" -Xms128M -Xmx368M -XX:MaxPermSize=256M " />

Not sure if that will change anything though.
So your tests run correctly within Eclipse, just not Ant?
Re: ClassCastException during running swtbot test with ant [message #482806 is a reply to message #482780] Fri, 28 August 2009 06:27 Go to previous messageGo to next message
Michelle Davidson is currently offline Michelle DavidsonFriend
Messages: 41
Registered: August 2009
Member
Hello,

Unfortunaly that hasn't any effect.

I still get the same exception, after the eclipse IDE has start, and the tests should launch.

I don't know If there was a problem, with the generation of the testreports.

I have the versions of ant, junit, log4j which where standard in the eclipse 3.4.2 destribution. Are these versions too old.

Could this be the reason?

Is there a chance to deactivate the testreports so that I can check, if the tests will launch?

Yes In eclipse, all will be fine. The tests run, and in the junit view I see,, if they was ok or not.
Re: ClassCastException during running swtbot test with ant [message #483781 is a reply to message #482806] Wed, 02 September 2009 23:01 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Michelle Davidson wrote:

> Hello,

> Unfortunaly that hasn't any effect.

> I still get the same exception, after the eclipse IDE has start, and the
tests should launch.

> I don't know If there was a problem, with the generation of the testreports.

> I have the versions of ant, junit, log4j which where standard in the eclipse
3.4.2 destribution. Are these versions too old.

> Could this be the reason?

> Is there a chance to deactivate the testreports so that I can check, if the
tests will launch?

> Yes In eclipse, all will be fine. The tests run, and in the junit view I
see,, if they was ok or not.


The part in your build.xml:
<property name="formatter"
value=" org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF ormatter "
/>

I don't know what that's doing, I don't have that in mine.
Will your tests run if you take that out?
Re: ClassCastException during running swtbot test with ant [message #483789 is a reply to message #482413] Thu, 03 September 2009 03:07 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Hi,

Looking at the build script, everything looks just fine. My gut feel is
some missing (or incorrect) depencencies.

This particular error is mostly caused because you probably have a
'org.eclipse.swtbot.eclipse.junit3.headless' or
'org.eclipse.swtbot.ant.optional.junit3' in your plugins directory. This
is documented in a bit of detail on the wiki[0].

You'll find a more detailed output of the execution in a
${classname}.txt file.

I've updated the library.xml to provide more meaningful error messages
to help diagnose errors in such cases. You may replace the library.xml
in your plugins directory from [1] or [2] depending on whether you're on
junit3 or 4.

Drop in a note if this does not resolve your problems with the error
messages in the ${classname}.txt file and I can help you further.

[0] - http://wiki.eclipse.org/SWTBot/Ant#Setup
[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.junit3.headless/library.xml

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr


Michelle Davidson wrote:
> Hello,
>
> I have done the two video tutorials from the swtbot website and I read
> the tipps from the website http://wiki.eclipse.org/SWTBot/Ant
> But, when I start my test with ant. The Test application (eclipse IDE)
> starts but my tests dont run and I get this exception Quote:
>> Total time: 57 seconds
>> C:\eclipse4test\headlessEclipse>ant
>> Buildfile: build.xml
>>
>> init:
>>
>> suite:
>> [delete] Deleting directory C:\eclipse4test\headlessEclipse\workspace
>>
>> init:
>>
>> swtbot-test:
>>
>> java-test:
>> [echo] Running testpackage.FirstTestCase. Result file:
>> C:/eclipse4test/headlesseclipse/results/testpackage.FirstTes tCase.xml.
>> [java] Exception in thread "WorkbenchTestable"
>> java.lang.ClassCastException:
>> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF ormatter
>> cannot be cast to junit.framework.TestListener
>> [java] at
>> org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
>> .run(EclipseTestRunner.java:331)
>> [java] at
>> org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
>> .run(EclipseTestRunner.java:208)
>> [java] at
>> org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
>> .runTests(UITestApplication.java:115)
>> [java] at
>> org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
>> benchTestable.java:68)
>> [java] at java.lang.Thread.run(Thread.java:619)
>>
>> collect-results:
>> [junitreport] the file
>> C:\eclipse4test\headlesseclipse\testpackage.FirstTestCase.xm l is empty.
>> [junitreport] This can be caused by the test JVM exiting unexpectedly
>> [style] Warning: the task name <style> is deprecated. Use <xslt>
>> instead.
>> [style] Transforming into C:\eclipse4test\headlesseclipse\results
>>
>> cleanup:
>>
>> run:
>
>
> This ist my build.xml
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <project name="testsuite" default="run" basedir="."> <property
> name="eclipse-home" value="C:/eclipse4test/headlesseclipse" />
> <property name="plugin-name" value="aaa.swtbot.test" />
> <property name="library-file"
> value=" ${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.he adless_2.0.0.371-dev-e34/library.xml "/>
>
> <property name="class-name" value="testpackage.FirstTestCase" />
>
> <target name="init">
> <tstamp />
> <delete>
> <fileset dir="${eclipse-home}" includes="org*.xml" />
> </delete>
> </target>
>
> <target name="suite">
>
> <property name="jvmOption" value=""></property>
>
> <property name="temp-workspace" value="workspace" />
> <delete dir="${temp-workspace}" quiet="true" />
>
>
> <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="testProduct" value="org.eclipse.sdk.ide" />
> <property name="classname" value="${class-name}" />
> <property name="os" value="win32" /> <property
> name="ws" value="win32" /> <property name="arch" value="x86" />
> <property name="formatter"
> value=" org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF ormatter "
> />
> <property name="vmargs" value="-Xms40m -Xmx256m" />
> </ant>
> </target>
>
> <target name="cleanup" />
>
> <target name="run" depends="init,suite,cleanup">
> <ant target="collect" antfile="${library-file}"
> dir="${eclipse-home}">
> <property name="includes" value="*.xml" />
> <property name="output-file" value="${plugin-name}.xml" />
> </ant>
> </target>
>
> </project>
>
> Is there a wrong parameter in thebuild.xml or must I have another
> version of a plugin? Or is there another error?
>
>
Re: ClassCastException during running swtbot test with ant [message #490528 is a reply to message #483789] Fri, 09 October 2009 01:19 Go to previous messageGo to next message
Denis Golovin is currently offline Denis GolovinFriend
Messages: 18
Registered: July 2009
Junior Member
If Eclipse Test Framework installed, then org.eclipse.ant.optional.junit_*.jar should be deleted to fix this problem with ClassCastException.
I had the same problem which was even worst, because this happened for me sometimes, even if previous build was successful and nothing changed for next one.

I works for me after org.eclipse.ant.optional.junit_*.jar was deleted.

[Updated on: Fri, 09 October 2009 05:48]

Report message to a moderator

Re: ClassCastException during running swtbot test with ant [message #501293 is a reply to message #490528] Tue, 01 December 2009 18:40 Go to previous messageGo to next message
John Reysa is currently offline John ReysaFriend
Messages: 21
Registered: July 2009
Junior Member
Denis Golovin wrote:
> If you Eclipse Test Framework installed, than
> org.eclipse.ant.optional.junit_*.jar should be deleted to fix this
> problem. I had the same problem which was even worst, because this
> happened for me sometimes, even if previous build was successful an
> nothing changed for next one.
> I works for me after org.eclipse.ant.optional.junit_*.jar was deleted.
Denis, thanks. I had the same problem and your solution worked for me.
Re: ClassCastException during running swtbot test with ant [message #535909 is a reply to message #490528] Wed, 26 May 2010 09:28 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 29
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------050608040306030902070101
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

I had the same problem : sometimes the Hudson job works and sometimes
it fails and nothing changed between this two jobs.
Although I have only installed
org.eclipse.swtbot.eclipse.junit4.headless_* and
org.eclipse.swtbot.ant.optional.junit4_*.

I removed the fragment org.eclipse.ant.optional.junit_*.jar from the
eclipse-test-framework.

I also removed the fragment org.pluginbuilder.ant.optional.junit_*.jar
from the org.pluginbuilder.autotestsuite framework.

Now my hudson job works each times.

Regards,

Laurent

Denis Golovin a écrit :
> If you Eclipse Test Framework installed, than
> org.eclipse.ant.optional.junit_*.jar should be deleted to fix this
> problem. I had the same problem which was even worst, because this
> happened for me sometimes, even if previous build was successful an
> nothing changed for next one.
> I works for me after org.eclipse.ant.optional.junit_*.jar was deleted.


--------------050608040306030902070101
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_redor.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_redor.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgUmVkb3INCm46UmVkb3I7TGF1cmVu dA0Kb3JnOk9i
ZW8NCmFkcjtxdW90ZWQtcHJpbnRhYmxlOjs7MiBydWUgUm9iZXJ0IFNjaHVt YW47UmV6PUMz
PUE5Ozs0NDQwMDtGcmFuY2UNCmVtYWlsO2ludGVybmV0OmxhdXJlbnQucmVk b3JAb2Jlby5m
cg0KdXJsOmh0dHA6Ly93d3cub2Jlby5mcg0KdmVyc2lvbjoyLjENCmVuZDp2 Y2FyZA0KDQo=
--------------050608040306030902070101--
Re: ClassCastException during running swtbot test with ant [message #536318 is a reply to message #535909] Thu, 27 May 2010 15:54 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Can you identify these as failures of a particular type ?

Something like menu clicks (this is an issue), certain buttons cannot be
clicked on certain dialogs, anything else you see as a pattern ?

It could also be an environment issue, see
http://wiki.eclipse.org/SWTBot/CI_Server for more.

Cheers!

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot

On 5/26/10 2:28 AM, Laurent Redor wrote:
> Hello,
>
> I had the same problem : sometimes the Hudson job works and sometimes it
> fails and nothing changed between this two jobs.
> Although I have only installed
> org.eclipse.swtbot.eclipse.junit4.headless_* and
> org.eclipse.swtbot.ant.optional.junit4_*.
>
> I removed the fragment org.eclipse.ant.optional.junit_*.jar from the
> eclipse-test-framework.
>
> I also removed the fragment org.pluginbuilder.ant.optional.junit_*.jar
> from the org.pluginbuilder.autotestsuite framework.
>
> Now my hudson job works each times.
>
> Regards,
>
> Laurent
>
> Denis Golovin a écrit :
>> If you Eclipse Test Framework installed, than
>> org.eclipse.ant.optional.junit_*.jar should be deleted to fix this
>> problem. I had the same problem which was even worst, because this
>> happened for me sometimes, even if previous build was successful an
>> nothing changed for next one.
>> I works for me after org.eclipse.ant.optional.junit_*.jar was deleted.
>
Re: ClassCastException during running swtbot test with ant [message #536321 is a reply to message #482413] Thu, 27 May 2010 16:13 Go to previous messageGo to next message
gachoki is currently offline gachokiFriend
Messages: 10
Registered: October 2009
Junior Member
Hi. I am also getting same exception when running test case through Ant.

[java] Exception in thread "WorkbenchTestable" java.lang.ClassCastException: org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF ormatter incompatible with junit.framework.TestListener
[java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .
run(EclipseTestRunner.java:331)

In my case, I tried using SWTBOT#2.0.0.329 and 2.0.0.568. Also my build.xml is a little different from yours. I don't pass in a formatter since the headless framework already defines one.

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


Anyway, I hope there is someone out there how knows what the right build.xml should look like and willing to share it with us. Problem is frustrating because test-cases are running fine in IDE but there is something wrong causing them to fail in with Ant. Hope someone out there can help.

Btw, I am able to run same test-cases on command-line as e.g.,

java -classpath C:\temp\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101 .R34x_v20081125.jar org.eclipse.equinox.launcher.Main -os win32 -ws win32 -arch x86 -nl en_US -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion -data C:\temp\junit-workspace testPluginName abc -className abc.Test -clean
Re: ClassCastException during running swtbot test with ant [message #536398 is a reply to message #536321] Fri, 28 May 2010 02:00 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Have you removed the org.eclipse.ant.optional.* fragments and
org.eclipse.swtbot.eclipse.junit3.headless from your plugins dir ?

The only reason for the CCE is because some fragment is providing an
implementation of TestListener which is not from a junit4 package.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot

On 5/27/10 9:13 AM, gachoki@us.ibm.com wrote:
> Hi. I am also getting same exception when running test case through Ant.
>
> [java] Exception in thread "WorkbenchTestable"
> java.lang.ClassCastException:
> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF ormatter
> incompatible with junit.framework.TestListener
> [java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .
> run(EclipseTestRunner.java:331)
>
> In my case, I tried using SWTBOT#2.0.0.329 and 2.0.0.568. Also my
> build.xml is a little different from yours. I don't pass in a formatter
> since the headless framework already defines one.
>
> <ant target="swtbot-test" antfile="${library-file}" dir="${eclipse-home}">
> <property name="os" value="win32" />
> <property name="ws" value="win32" />
> <property name="arch" value="x86" />
> <property name="data-dir" value="${temp-workspace}" />
> <property name="testApplication" value="org.eclipse.ui.ide.workbench" />
> <property name="plugin-name" value="${plugin-name}" />
> <property name="classname" value="${test-classname}" />
> <property name="vmargs" value="-Xms128M -Xmx368M -XX:MaxPermSize=256M
> ${jvmOption}" />
> </ant>
>
>
> Anyway, I hope there is someone out there how knows what the right
> build.xml should look like and willing to share it with us. Problem is
> frustrating because test-cases are running fine in IDE but there is
> something wrong causing them to fail in with Ant. Hope someone out there
> can help.
>
> Btw, I am able to run same test-cases on command-line as e.g.,
>
> java -classpath
> C:\temp\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101
> .R34x_v20081125.jar org.eclipse.equinox.launcher.Main -os win32 -ws
> win32 -arch x86 -nl en_US -application
> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion -data
> C:\temp\junit-workspace testPluginName abc -className abc.Test -clean
Re: ClassCastException during running swtbot test with ant [message #536401 is a reply to message #536398] Fri, 28 May 2010 04:01 Go to previous messageGo to next message
gachoki is currently offline gachokiFriend
Messages: 10
Registered: October 2009
Junior Member
With SWTBOT 568, removal of org.eclipse.ant.optional.* cleared the CCE, thanks for the hint. However I couldn't get SWTBOT 329 to work even with removal of org.eclipse.ant.optional.* and junit3.
Re: ClassCastException during running swtbot test with ant [message #536405 is a reply to message #536401] Fri, 28 May 2010 04:28 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 5/27/10 9:01 PM, gachoki@us.ibm.com wrote:
> With SWTBOT 568, removal of org.eclipse.ant.optional.* cleared the CCE,
> thanks for the hint. However I couldn't get SWTBOT 329 to work even with
> removal of org.eclipse.ant.optional.* and junit3.

You should not remove the junit3 bundle. Depending on your version of
eclipse, junit3 is a required dependency for jdt/junit support which may
cause tests to not run.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot
Previous Topic:when click a button which will open a shell it will hang (solved, because using pde-junit tests)
Next Topic:Support of Nebula-widgets in SWTBot
Goto Forum:
  


Current Time: Fri Mar 29 06:42:51 GMT 2024

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

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

Back to the top