|Re: JUnit TestNG Test [message #545909 is a reply to message #545839]
||Fri, 09 July 2010 14:58
| Ketan Padegaonkar
Registered: July 2009
TestNG is not supported by the headless runner.|
Sorry that I do not any experience with TestNG. I think the problem in
this case is that the headless runner is unable to find the TestNG jars,
but I can't say for sure, unless you provide some console logs.
In order to ensure that the headless runner is able to find TestNG, you
may need to do the following:
* Create an OSGi bundle for the TestNG jar or get one from springsource
* Create a TestNG fragment to add testng jars to ant's classpath, this
should be similar to the junit-ant fragment
Try executing the tests once again to see where it goes.
http://ketan.padegaonkar.name | http://eclipse.org/swtbot
 - http://goo.gl/1NFe
 - http://goo.gl/kYf6
 - http://goo.gl/u0em
On 7/9/10 4:20 AM, gomesr wrote:
> Hi I have been trying to use SWTbot in headless mode, the problem is, my
> testcase is in testng which doesn't work, so what I did was use both
> annotations in one class so some tests will have @org.junit.Test and
> others will have @org.testng.annotations.Test and within eclipse this
> works just fine, running the class as a Junit runs only the junit tests
> and running as testng runs only the testng, but when I try to run this
> using an ant file the product starts up but ignores all tests and exits.
> If I remove the testng annotations then the test runs fine. Any ideas
> how I can get around this or if there is some known limitation in SWTBot
> in headless mode that does this?
> Rick Gomes
Powered by FUDForum
. Page generated in 0.21473 seconds