2016-10-23 27 views
0

allure-reportとjunitコードを統合しようとしています。 これを試すには、まず魅力的な例を実行しようとしましたhttps://github.com/allure-examples/allure-junit-exampleallure-junitの実行中にエラーが発生しました

このコードを実行すると、以下のエラーが表示されます。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-  plugin:2.18:test (default-test) on project SampleAllureTest: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There was an error in the forked process 
[ERROR] java.lang.NoSuchMethodError: org.apache.commons.beanutils.ConvertUtilsBean.register(ZZI)V 
[ERROR] at ru.yandex.qatools.properties.decorators.DefaultFieldDecorator.<init>(DefaultFieldDecorator.java:24) 
[ERROR] at ru.yandex.qatools.properties.PropertyLoader.populate(PropertyLoader.java:29) 
[ERROR] at ru.yandex.qatools.properties.PropertyLoader.populate(PropertyLoader.java:23) 
[ERROR] at ru.yandex.qatools.allure.config.AllureConfig.<init>(AllureConfig.java:80) 
[ERROR] at ru.yandex.qatools.allure.config.AllureConfig.newInstance(AllureConfig.java:84) 
[ERROR] at ru.yandex.qatools.allure.Allure.getVersion(Allure.java:266) 
[ERROR] at ru.yandex.qatools.allure.Allure.fire(Allure.java:187) 
[ERROR] at ru.yandex.qatools.allure.junit.AllureRunListener.testSuiteFinished(AllureRunListener.java:89) 
[ERROR] at ru.yandex.qatools.allure.junit.AllureRunListener.testRunFinished(AllureRunListener.java:95) 
[ERROR] at org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42) 
[ERROR] at org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103) 
[ERROR] at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72) 
[ERROR] at org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100) 
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:131) 
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) 
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) 
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException 

誰でもこの問題を解決するのに手伝ってください。サンプルのコードに変更はありません。

+0

pom.xmlも添付できますか?あなたの確かなプラグインに何か問題があるように見えます。 – Thibstars

+0

ありがとう@ Thibstars。最新のサンプルをダウンロードした後、問題は修正されています。 – sudheer1437

答えて

関連する問題