Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] Help with ANT [Trying to follow Tutorial]

Hi everyone,

I work at MOTOROLA (Brazil) in the MOTODEV Program (developer.motorola.com)
And I have working with SWTBot to automate the tool MOTODEV Studio For Android (in which it is based on Eclipse platform)

OK... So...
Now I need a help with ANT.

First, I'm try to reproduce exactly what this video does:

http://download.eclipse.org/technology/swtbot/docs/videos/beginners/SWTBotHeadlessTestingForNovices/

However, when I run the command ant (on my Windows PromptCommand)

An error occurs (see the attached image 001.jpg) and I can't find what I did wrong.

Could anyone help me?

I attached 6 files:

1) Image Printscreen - 001.JPG  (my Command Prompt)
2) Image Printscreen - 002.JPG  (my folder /plugin)
3) My project plugin Test Case (exactly the same of the Tutorial) - com.eclipse.swtbot.setup.zip
4) The .jar exported - com.eclipse.swtbot.setup_1.0.0.201009021316.jar
5) My build.xml (exactly the same of the Tutorial) - build.xml
6) The generated.txt on eclipse/results - MyFirstTestCase.txt


Please, could anyone help me on this?

--
Caio Bulgarelli
R&D - CM - MOTODEV
+55 . 19 - 3847-6938 - desk
+55 . 19 - 9135-0809 - mobile
Install location:
    file:/c:/eclipse/
Configuration file:
    file:/c:/eclipse/configuration/config.ini loaded
Configuration location:
    file:/c:/eclipse/configuration/
Framework located:
    file:/c:/eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
Loading extension: reference:file:javax.transaction_1.1.1.v201002111330.jar
	eclipse.properties not found
Loading extension: reference:file:org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
	eclipse.properties not found
Framework classpath:
    file:/c:/eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
    file:/c:/eclipse/plugins/
    file:/c:/eclipse/plugins/javax.transaction_1.1.1.v201002111330.jar
    file:/c:/eclipse/plugins/org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
Debug options:
    file:/C:/eclipse/.options not found
Time to load bundles: 0
!SESSION 2010-09-02 13:17:26.690 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=workspace, NL=en_US
Framework arguments:  -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:/eclipse/MyFirstTestCase.xml formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter -testPluginName com.eclipse.swtbot.setup -className MyFirstTestCase
Command-line arguments:  -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication -data workspace formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:/eclipse/MyFirstTestCase.xml formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter -testPluginName com.eclipse.swtbot.setup -className MyFirstTestCase -os win32 -ws workspace -arch x86 -consoleLog -debug

!ENTRY org.eclipse.osgi 2 0 2010-09-02 13:17:34.549
!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 2010-09-02 13:17:34.549
!MESSAGE Bundle org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 [260] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.launcher.win32.win32.x86 2 0 2010-09-02 13:17:34.549
!MESSAGE Platform filter did not match: (& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-02 13:17:34.658
!MESSAGE Bundle org.eclipse.swt.win32.win32.x86_3.5.2.v3557f [536] was not resolved.
!SUBENTRY 2 org.eclipse.swt.win32.win32.x86 2 0 2010-09-02 13:17:34.658
!MESSAGE Platform filter did not match: (& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-02 13:17:34.658
!MESSAGE Bundle org.eclipse.ui.win32_3.2.100.v20090429-1800 [575] was not resolved.
!SUBENTRY 2 org.eclipse.ui.win32 2 0 2010-09-02 13:17:34.658
!MESSAGE Platform filter did not match: (osgi.ws=win32)
Starting application: 8078

!ENTRY org.eclipse.osgi 4 0 2010-09-02 13:17:34.768
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.rose.Rose2GenModel, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.director.app.application, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.pde.build.Build, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.swtbot.eclipse.core.swtbottestapplication, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.wst.jsdt.core.JavaCodeFormatter, org.eclipse.wst.server.preview.preview.
	at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
	at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
	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(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
	at org.eclipse.core.launcher.Main.main(Main.java:34)

!ENTRY org.eclipse.osgi 2 0 2010-09-02 13:17:34.940
!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 2010-09-02 13:17:34.940
!MESSAGE Bundle org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 [260] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.launcher.win32.win32.x86 2 0 2010-09-02 13:17:34.940
!MESSAGE Platform filter did not match: (& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-02 13:17:34.987
!MESSAGE Bundle org.eclipse.swt.win32.win32.x86_3.5.2.v3557f [536] was not resolved.
!SUBENTRY 2 org.eclipse.swt.win32.win32.x86 2 0 2010-09-02 13:17:34.987
!MESSAGE Platform filter did not match: (& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-02 13:17:34.987
!MESSAGE Bundle org.eclipse.ui.win32_3.2.100.v20090429-1800 [575] was not resolved.
!SUBENTRY 2 org.eclipse.ui.win32 2 0 2010-09-02 13:17:34.987
!MESSAGE Platform filter did not match: (osgi.ws=win32)

Attachment: 001.JPG
Description: JPEG image

Attachment: 002.JPG
Description: JPEG image

Attachment: com.eclipse.swtbot.setup.zip
Description: Zip archive

Attachment: com.eclipse.swtbot.setup_1.0.0.201009021316.jar
Description: application/java-archive

<?xml version="1.0" encoding="UTF-8" ?>
<project name="testsuite" default="run" basedir=".">
	<property name="eclipse-home" value="C:/eclipse" />
	<property name="plugin-name" value="com.eclipse.swtbot.setup" />
	<property name="test-classname" value="MyFirstTestCase" />
	<property name="library-file" value="${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.headless_2.0.0.595-dev-e35/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="os" value="win32" />
			 <property name="ws" value="workspace" />
			 <property name="arch" value="x86" />
			 <property name="classname" value="${test-classname}" />
			 <property name="vmargs" value=" -Xms128M -XX:MaxPermSize=512m -Xmx512M" />
			</ant>
		</target>
		
		<target name="cleanup" />
		
		<!--target name="run" depends="init, suite, cleanup"-->
		<target name="run" depends="suite, cleanup">
		</target>
		
</project>
			 

Back to the top