Pourquoi est-à défaut de Maven avec un SurefireExecutionException: > Ne peut pas définir l'option parallèle avec la valeur
Salut, je suis en train de travailler dans le tutoriel ici à l'aide de windows XP et les dernières versions
http://binil.wordpress.com/2006/12/08/automated-smoke-tests-with-selenium-cargo-testng-and-maven/
Quelqu'un pourrait-il me dire en quoi les balises sont.
<parallel>true</parallel>
<threadCount>10</threadCount>
Quand je construire avec ces balises incluses-je obtenir un échec:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
org.apache.maven.surefire.booter.SurefireExecutionException:
Cannot set option parallel with value
true; nested exception is
java.lang.reflect.InvocationTargetException:
null; nested exception is
org.apache.maven.surefire.util.NestedRuntimeException:
Cannot set option parallel with value
true; nested exception is
java.lang.reflect.InvocationTargetException:
null
org.apache.maven.surefire.util.NestedRuntimeException:
Cannot set option parallel with value
true; nested exception is
java.lang.reflect.InvocationTargetException:
null
java.lang.reflect.InvocationTargetException
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:585)
at
org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator$Setter.invoke(AbstractDirectConfigurator.java:117)
at
org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator.configure(AbstractDirectConfigurator.java:63)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:71)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by:
java.lang.NullPointerException at
org.testng.TestNG.setParallel(TestNG.java:347)
... 15 more [INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE [INFO]
------------------------------------------------------------------------
OriginalL'auteur Ric | 2009-09-21
Vous devez vous connecter pour publier un commentaire.
De la surefire-plugin documentation:
Il y a une section sur l'exécution des tests en parallèle sur le TestNG page du plugin de la documentation. Pour ce faire, votre plugin surefire doit être configuré comme ceci:
OriginalL'auteur Rich Seller
true
n'est pas une valeur valide pour l'optionparallel
; essayezmethods
(selon les docs)OriginalL'auteur Aaron Digulla
Cela pourrait également se produire si vous utilisez une ancienne version de TestNG.
Essayez de mettre à niveau votre dépendance à TestNG, par exemple:
PS: Beaucoup de gens utilisent généralement la version 5.1.
Acclamations
S. Ali Tokmen
http://ali.tokmen.com/
OriginalL'auteur S. Ali Tokmen