Pavel Gouchtchine
2014-07-06 03:00:03 UTC
On attempt to run testng tests from ant build file, TestNG throws exception
- see below.
Please help!!
An example project that includes my build.xml and suite file is here:
https://drive.google.com/file/d/0B2Oj5VU5ZPzDQloycTFzX0hVTVk/edit?usp=sharing
(it contains testng 6.8 library i am using)
The command line to execute:
c:\java\verifyanttestng>
c:\java\verifyanttestng>ant -DsuiteName=TestCalculator.xml
Buildfile: c:\java\verifyanttestng\build.xml
init:
[delete] Deleting directory c:\java\verifyanttestng\bin
[mkdir] Created dir: c:\java\verifyanttestng\bin
[delete] Deleting directory c:\java\verifyanttestng\test-output
[mkdir] Created dir: c:\java\verifyanttestng\test-output
compile:
[javac] Compiling 2 source files to c:\java\verifyanttestng\bin
Run_Suite:
[echo] ${browser}
[echo] ./test_suites/TestCalculator.xml
[testng] Exception in thread "main" java.util.ServiceConfigurationError:
org.
testng.ITestNGListener: Provider test.serviceloader.TmpSuiteListener not
found
[testng] at java.util.ServiceLoader.fail(ServiceLoader.java:239)
[testng] at
java.util.ServiceLoader.access$300(ServiceLoader.java:185)
[testng] at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoade
r.java:372)
[testng] at
java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:
404)
[testng] at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
[testng] at
org.testng.TestNG.addServiceLoaderListeners(TestNG.java:956)
[testng] at
org.testng.TestNG.initializeConfiguration(TestNG.java:891)
[testng] at org.testng.TestNG.run(TestNG.java:1005)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1338)
[testng] at org.testng.TestNG.main(TestNG.java:1307)
BUILD FAILED
c:\java\verifyanttestng\build.xml:43: The tests failed.
Total time: 2 seconds
c:\java\verifyanttestng>
- see below.
Please help!!
An example project that includes my build.xml and suite file is here:
https://drive.google.com/file/d/0B2Oj5VU5ZPzDQloycTFzX0hVTVk/edit?usp=sharing
(it contains testng 6.8 library i am using)
The command line to execute:
c:\java\verifyanttestng>
c:\java\verifyanttestng>ant -DsuiteName=TestCalculator.xml
Buildfile: c:\java\verifyanttestng\build.xml
init:
[delete] Deleting directory c:\java\verifyanttestng\bin
[mkdir] Created dir: c:\java\verifyanttestng\bin
[delete] Deleting directory c:\java\verifyanttestng\test-output
[mkdir] Created dir: c:\java\verifyanttestng\test-output
compile:
[javac] Compiling 2 source files to c:\java\verifyanttestng\bin
Run_Suite:
[echo] ${browser}
[echo] ./test_suites/TestCalculator.xml
[testng] Exception in thread "main" java.util.ServiceConfigurationError:
org.
testng.ITestNGListener: Provider test.serviceloader.TmpSuiteListener not
found
[testng] at java.util.ServiceLoader.fail(ServiceLoader.java:239)
[testng] at
java.util.ServiceLoader.access$300(ServiceLoader.java:185)
[testng] at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoade
r.java:372)
[testng] at
java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:
404)
[testng] at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
[testng] at
org.testng.TestNG.addServiceLoaderListeners(TestNG.java:956)
[testng] at
org.testng.TestNG.initializeConfiguration(TestNG.java:891)
[testng] at org.testng.TestNG.run(TestNG.java:1005)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1338)
[testng] at org.testng.TestNG.main(TestNG.java:1307)
BUILD FAILED
c:\java\verifyanttestng\build.xml:43: The tests failed.
Total time: 2 seconds
c:\java\verifyanttestng>
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to testng-dev-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to testng-dev-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.