-
1. Re: Running tests with TestNG exlipse plugin
gaboo.gael.livre-rare-book.com Oct 31, 2008 12:29 PM (in response to gaboo.gael.livre-rare-book.com)Ahhh. The error wasn't explicit, it was still jars missing, namely those two : jsf-faceleets.jar and jboss-seam-ui.jar.
The only thing I miss is that when I debug, eclipse doesn't find the source because the class are named something lie
MyClassName$6.java
. I've found nothing about this, but I can live without it ...I hope this topic can save time for other people trying to setup TestNG tests in eclipse.
-
2. Re: Running tests with TestNG exlipse plugin
sunilinteti Mar 14, 2009 9:22 AM (in response to gaboo.gael.livre-rare-book.com)Click HELP for text formatting instructions. Then edit this text and check the preview.
Hi,
I follwed the Link given here! But i am still facing problems with running the TestNG test.
Here is the Stacktrace!
java.lang.NullPointerException
at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:492)
at dk.mathmagicians.skills.action.registration.RegisterTest.testRegisterHappyDay(RegisterTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:478)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:617)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:885)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)
at org.testng.TestRunner.runWorkers(TestRunner.java:712)
at org.testng.TestRunner.privateRun(TestRunner.java:582)
at org.testng.TestRunner.run(TestRunner.java:477)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
at org.testng.SuiteRunner.run(SuiteRunner.java:198)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
at org.testng.TestNG.run(TestNG.java:708)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)Please help!!!!!
-
3. Re: Running tests with TestNG exlipse plugin
jervin Jul 16, 2009 10:35 PM (in response to gaboo.gael.livre-rare-book.com)I don't know if this is your problem or not, but I have recently been using TestNG inside Eclipse. First off the TestNG plugin is antediluvian, i.e. really really old and out of date, but it still manages to barely function in my setup (Eclipse 3.5/M2Eclipse/JBoss Tools). Still I did notice one hangup, do not run the tests but rather debug the tests. I found that the right click option to debug as TestNG test from the desired test class seemed to provide the most consistent results. Of course, to run all the tests in a project I still had to defer to running it from Maven.
Good luck...