SWTBot: issue while using headless [message #1006795] |
Sat, 02 February 2013 00:20 |
Shabari shetty Messages: 8 Registered: December 2012 |
Junior Member |
|
|
hi all,
I am facing an issue while running a swtbot test as headless..
I have attached the java class(MyTest.java) which I am trying to run from the ant script.
Please find below the build.xml entry
<?xml version="1.0" encoding="UTF-8" ?>
<project name="testsuite" default="run" basedir=".">
<property name="eclipse-home" value="C:/swtbot/Boreas_GA/GA"/>
<property name="plugin-name" value="mytest" />
<property name="test-classname" value="test.MyTest"/>
<property name="library-file" value="${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.headless_2.0.5.20111003_1754-3676ac8-dev-e36/library.xml"/>
<target name="suite">
<property name="jvmOption" value=""/>
<property name="temp-workspace" value="workspace4"/>
<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="win32"/>
<property name="arch" value="x86_64"/>
<property name="classname" value="${test-classname}"/>
<property name="vmargs" value="-Xms128M -XX:MaxPermSize=512M"/>
</ant>
</target>
<target name="cleanup" />
<target name="run" depends="suite,cleanup">
</target>
</project>
When I run the build script using ant command it does launch the workbench. But it doesnt execute MyTest class.
I see the below error in test.MyTest.xml file which is under results folder
<testcase classname="test.MyTest" name="initializationError" time="0.016">
<error message="No runnable methods" type="java.lang.Exception">java.lang.Exception: No runnable methods
at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner.getTest(EclipseTestRunner.java:259)
at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner.<init>(EclipseTestRunner.java:222)
at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner.run(EclipseTestRunner.java:206)
at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication.runTests(UITestApplication.java:116)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
at java.lang.Thread.run(Thread.java:722)
</error>
Could you please help. I am trying to use org.eclipse.swtbot.eclipse.junit4.headless_2.0.5.20111003_1754-3676ac8-dev-e36 on juno 3.8 build.
Thanks in advance.
Regards,
Shabari
-
Attachment: MyTest.java
(Size: 1.33KB, Downloaded 213 times)
[Updated on: Sat, 02 February 2013 00:31] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03053 seconds