Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Running SWTBot testcase with ant
Running SWTBot testcase with ant [message #44986] Wed, 22 July 2009 22:59 Go to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
I tried running the steps for executing SWTBot tests from Ant. I followed
the tutorial which was helpful.

When I run ant from the cmd prompt, it goes through the build.xml, says
it's running my testcase and ends with a Build Successful.
In the tutorial I see that it shows Eclipse run and steps performed. Mine
does not visually show this, but does take the time I would expect it to.
I also get a "Java Result: 13"

I tried going back through using what the tutorial uses as far as code
goes.

Not sure what may be different on my end. I'm running WinXP64 as my OS and
have my environment variables set correctly to run ant.

Any help or suggestions would be greatly appreciated.

Thanks,

Derek


Buildfile: build.xml
suite:
init:
swtbot-test:
java-test:
[echo] Running MySampleTestCase. Result file:
C:/eclipse_ganymede/eclipse/results/MySampleTestCase.xml.
[java] Java Result: 13
collect-results:
[style] Warning: the task name <style> is deprecated. Use <xslt>
instead.
[style] Transforming into C:\eclipse_ganymede\eclipse\results
cleanup:
run:
BUILD SUCCESSFUL
Total time: 11 seconds


build.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<project name="testsuite" default="run" basedir=".">

<property name="eclipse-home" value="C:/eclipse_ganymede/eclipse" />
<property name="plugin-name" value="com.eclipse.swtbot.tester" />
<property name="test-classname" value="MySampleTestCase" />
<property name="library-file"
value=" ${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.he adless_2.0.0.371-dev-e34/library.xml "
/>

<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="classname" value="${test-classname}" />
<property name="vmargs" value=" -Xms128M -Xmx368M -XX:MaxPermSize=256M
${jvmOption}" />
</ant>
</target>

<target name="cleanup" />

<target name="run" depends="suite,cleanup">
</target>
</project>
Re: Running SWTBot testcase with ant [message #45076 is a reply to message #44986] Thu, 23 July 2009 04:20 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 23/7/09 04:29, Derek wrote:
> I tried running the steps for executing SWTBot tests from Ant. I
> followed the tutorial which was helpful.
>
> When I run ant from the cmd prompt, it goes through the build.xml, says
> it's running my testcase and ends with a Build Successful.
> In the tutorial I see that it shows Eclipse run and steps performed.
> Mine does not visually show this, but does take the time I would expect
> it to.
> I also get a "Java Result: 13"

Can you look at the generated XML file ? It contains the JUnit report
for the tests. You may also optionally import it into the junit view to
see any errors.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Re: Running SWTBot testcase with ant [message #45109 is a reply to message #45076] Thu, 23 July 2009 05:16 Go to previous messageGo to next message
Asif is currently offline AsifFriend
Messages: 11
Registered: July 2009
Junior Member
One reason could be incorrect os value. Please check these value are
correct w.r.to your O.S.

-os win32 -arch x86

build.xml
<property name="os" value="win32" />
<property name="ws" value="workspace" />
<property name="arch" value="x86" />

Just to verify if it is due incorrect os parameter value, open the
library.xml file exists in the headless directory and comment the
following line and execute again.
<!--arg line="-os ${os}"/>
Re: Running SWTBot testcase with ant [message #45136 is a reply to message #45109] Thu, 23 July 2009 07:09 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Yes indeed!

I think the wiki page misses these values.

Derek the valid values are:
os: win32/linux/macosx
ws: win32/wpf/gtk/cocoa/carbon
arch: x86/x86_64

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


On 23/7/09 10:46, Asif wrote:
> One reason could be incorrect os value. Please check these value are
> correct w.r.to your O.S.
>
> -os win32 -arch x86
> build.xml
> <property name="os" value="win32" />
> <property name="ws" value="workspace" />
> <property name="arch" value="x86" />
>
> Just to verify if it is due incorrect os parameter value, open the
> library.xml file exists in the headless directory and comment the
> following line and execute again.
> <!--arg line="-os ${os}"/>
>
>
>
Re: Running SWTBot testcase with ant [message #45194 is a reply to message #45076] Thu, 23 July 2009 16:35 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Ketan Padegaonkar wrote:

> On 23/7/09 04:29, Derek wrote:
>> I tried running the steps for executing SWTBot tests from Ant. I
>> followed the tutorial which was helpful.
>>
>> When I run ant from the cmd prompt, it goes through the build.xml, says
>> it's running my testcase and ends with a Build Successful.
>> In the tutorial I see that it shows Eclipse run and steps performed.
>> Mine does not visually show this, but does take the time I would expect
>> it to.
>> I also get a "Java Result: 13"

> Can you look at the generated XML file ? It contains the JUnit report
> for the tests. You may also optionally import it into the junit view to
> see any errors.

The generated XML file that was put in the results folder doesn't have any
information in it. Just:
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />

The text file gives more information:

Looks like it's got a bunch of class not found errors, though, I really
don't know what these actually mean. >_>;;


Install location:
file:/c:/eclipse_ganymede/eclipse/
Configuration file:
file:/c:/eclipse_ganymede/eclipse/configuration/config.ini loaded
Configuration location:
file:/c:/eclipse_ganymede/eclipse/configuration/
Framework located:

file:/c:/eclipse_ganymede/eclipse/plugins/org.eclipse.osgi_3 .4.3.R34x_v20081215-1030.jar
Framework classpath:

file:/c:/eclipse_ganymede/eclipse/plugins/org.eclipse.osgi_3 .4.3.R34x_v20081215-1030.jar
Debug options:
file:/C:/eclipse_ganymede/eclipse/.options not found
Time to load bundles: 16
Starting application: 3609
!SESSION 2009-07-23 10:12:13.705
-----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.6.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=workspace, NL=en_US
Framework arguments: -application
org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,C:/eclipse_ganymede/eclipse/MySampleTestC ase.xml
formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter
-testPluginName com.eclipse.swtbot.tester -className MySampleTestCase
Command-line arguments: -application
org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion -data
workspace
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,C:/eclipse_ganymede/eclipse/MySampleTestC ase.xml
formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter
-testPluginName com.eclipse.swtbot.tester -className MySampleTestCase -os
win32 -ws workspace -arch x86_64 -consoleLog -debug

!ENTRY org.eclipse.osgi 4 0 2009-07-23 10:12:17.361
!MESSAGE An error occurred while automatically activating bundle
org.eclipse.ui.workbench (158).
!STACK 0
org.osgi.framework.BundleException: The activator
org.eclipse.ui.internal.WorkbenchPlugin for bundle
org.eclipse.ui.workbench is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:146)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:980)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:23 89)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
... 34 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
... 40 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:23 89)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:980)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
... 40 more

!ENTRY org.eclipse.osgi 4 0 2009-07-23 10:12:17.361
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in
org.eclipse.swtbot.eclipse.junit4.headless was unable to load class
org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:162)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)
Caused by:
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.ui.workbench (158).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
... 17 more
Caused by: org.osgi.framework.BundleException: The activator
org.eclipse.ui.internal.WorkbenchPlugin for bundle
org.eclipse.ui.workbench is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:146)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:980)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 29 more
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:23 89)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
... 34 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
... 40 more

!ENTRY org.eclipse.osgi 2 0 2009-07-23 10:12:17.408
!MESSAGE The following is a complete list of bundles which are not
resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-23 10:12:17.408
!MESSAGE Bundle
reference:file:plugins/org.eclipse.core.filesystem.win32.x86 _1.1.0.v20080604-1400.jar
[23] was not resolved.
!SUBENTRY 2 org.eclipse.core.filesystem.win32.x86 2 0 2009-07-23
10:12:17.408
!MESSAGE Platform filter did not match: (& (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-23 10:12:17.424
!MESSAGE Bundle
reference:file:plugins/org.eclipse.core.net.win32.x86_1.0.0. I20080521.jar
[26] was not resolved.
!SUBENTRY 2 org.eclipse.core.net.win32.x86 2 0 2009-07-23 10:12:17.424
!MESSAGE Platform filter did not match: (& (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-23 10:12:17.424
!MESSAGE Bundle
reference:file:plugins/org.eclipse.core.resources.win32.x86_ 3.4.0.v20071204.jar
[29] was not resolved.
!SUBENTRY 2 org.eclipse.core.resources.win32.x86 2 0 2009-07-23
10:12:17.424
!MESSAGE Platform filter did not match: (& (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-23 10:12:17.424
!MESSAGE Bundle
reference:file:plugins/org.eclipse.equinox.launcher.win32.wi n32.x86_1.0.101.R34x_v20080731/
[54] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.launcher.win32.win32.x86 2 0 2009-07-23
10:12:17.424
!MESSAGE Platform filter did not match: (& (osgi.ws=win32) (osgi.os=win32)
(osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-23 10:12:17.424
!MESSAGE Bundle
reference:file:plugins/org.eclipse.equinox.security.win32.x8 6_1.0.0.v20080529-1600.jar
[80] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.security.win32.x86 2 0 2009-07-23
10:12:17.424
!MESSAGE Platform filter did not match: (& (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-23 10:12:17.424
!MESSAGE Bundle
reference:file:plugins/org.eclipse.swt.win32.win32.x86_3.4.1 .v3452b.jar
[131] was not resolved.
!SUBENTRY 2 org.eclipse.swt.win32.win32.x86 2 0 2009-07-23 10:12:17.424
!MESSAGE Platform filter did not match: (& (osgi.ws=win32) (osgi.os=win32)
(osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-23 10:12:17.424
!MESSAGE Bundle
reference:file:plugins/org.eclipse.ui.win32_3.2.100.v2008040 8-0800.jar
[157] was not resolved.
!SUBENTRY 2 org.eclipse.ui.win32 2 0 2009-07-23 10:12:17.424
!MESSAGE Platform filter did not match: (osgi.ws=win32)
Re: Running SWTBot testcase with ant [message #45224 is a reply to message #45109] Thu, 23 July 2009 16:37 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Asif wrote:

> One reason could be incorrect os value. Please check these value are
> correct w.r.to your O.S.

> -os win32 -arch x86

> build.xml
> <property name="os" value="win32" />
> <property name="ws" value="workspace" />
> <property name="arch" value="x86" />

> Just to verify if it is due incorrect os parameter value, open the
> library.xml file exists in the headless directory and comment the
> following line and execute again.
> <!--arg line="-os ${os}"/>

I tried commenting out that line. It runs the same as it had before. I
also added the os/ws/arch to my build.xml.
So perhaps there is a different problem I am having.
Though it's good that I have that in my build.xml now, thanks for the help.

-Derek
Re: Running SWTBot testcase with ant [message #45253 is a reply to message #45136] Thu, 23 July 2009 17:23 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Ketan Padegaonkar wrote:

> Yes indeed!

> I think the wiki page misses these values.

> Derek the valid values are:
> os: win32/linux/macosx
> ws: win32/wpf/gtk/cocoa/carbon
> arch: x86/x86_64


I updated my build.xml with:
<property name="os" value="win32" />
<property name="ws" value="win32" />
<property name="arch" value="x86_64" />

What is the difference when I've seen "ws" equal to "workspace"?

Thanks,

-Derek
Re: Running SWTBot testcase with ant [message #45281 is a reply to message #45253] Thu, 23 July 2009 17:47 Go to previous messageGo to next message
Pascal G is currently offline Pascal GFriend
Messages: 157
Registered: July 2009
Senior Member
> What is the difference when I've seen "ws" equal to "workspace"?

ws stands for Windowing System., not workspace. It's the native api for
the GUI, such as gtk or motif for linux and win32 or wpf (windows vista)
for windows.


--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Re: Running SWTBot testcase with ant [message #45310 is a reply to message #45281] Thu, 23 July 2009 17:54 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
Pascal Gelinas wrote:


>> What is the difference when I've seen "ws" equal to "workspace"?

> ws stands for Windowing System., not workspace. It's the native api for
> the GUI, such as gtk or motif for linux and win32 or wpf (windows vista)
> for windows.


Windowing System. Ah good. Thanks for the explanation :)

-
Derek
Re: Running SWTBot testcase with ant [message #45340 is a reply to message #45194] Thu, 23 July 2009 22:22 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
OK, I got some help diagnosing and it looks like the primary reason is
because I had a mismatch with running 32-bit SWT libraries on 64-bit JVM.
It was a mistake on my part since I had it pointing to 64-bit JVM instead
of 32-bit.

Oops!

Thanks guys,

-
Derek
Re: Running SWTBot testcase with ant [message #475279 is a reply to message #45340] Wed, 05 August 2009 22:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: saleem.khan.insha.gmail.com

I am also getting the same issue, did you you solve that.
Please post if it's working
Re: Running SWTBot testcase with ant [message #475489 is a reply to message #475279] Wed, 05 August 2009 22:37 Go to previous message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
saleem wrote:


> I am also getting the same issue, did you you solve that.
> Please post if it's working


Yes I was able to get it solved.

I am running WindowsXP 64-bit. I had my environment variables pointing to
the wrong locations. I had 64-bit JRE installed, but I didn't have the
32-bit JRE installed.
The variables I had set just needed to be switched over and I had to have
it correctly in my build.xml

<property name="os" value="win32" />
<property name="ws" value="win32" />
<property name="arch" value="x86" />

Above are what I needed it set to. And I needed the environment variables
to point correctly to use the appropriate JRE.
Previous Topic:Testing an exported rcp-app
Next Topic:weired behavior when Running SWTBot Plugin Test from Ant
Goto Forum:
  


Current Time: Tue Apr 23 17:10:10 GMT 2024

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

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

Back to the top