【发布时间】:2015-01-23 13:24:53
【问题描述】:
我遇到了 surefire 2.18v 的问题,它无法正常工作并出现错误。我使用的是surefire 2.6v,但是我遇到了这个版本的堆空间问题,因此我更新到了surefire 2.18v,但这也让我遇到了问题。我尝试在网上搜索,但没有找到解决问题的正确输入。我正在使用 Eclipse 进行测试项目,其中包含 Java 1.7、Maven、TestNg、TestNG 报告和 selenium webdriver。以下是错误详情
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25:23.563s
[INFO] Finished at: Fri Jan 23 18:37:38 IST 2015
[INFO] Final Memory: 12M/1013M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project ProjectTest: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C ""D:\Program Files\Java\jdk1.7.0_67\jre\bin\java" -jar "D:\Automation\Java Project\ProjectTest\target\surefire\surefirebooter297839004395456325.jar" "D:\Automation\Java Project\ProjectTest\target\surefire\surefire7250122540039248955tmp" "D:\Automation\Java Project\ProjectTest\target\surefire\surefire_06252333885408211489tmp""
[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
非常感谢您的意见。
谢谢, 卡里姆
【问题讨论】:
-
Karim,请提供其他信息,例如 selenium 版本号、浏览器、maven 调用的 POM 文件。这些信息将真正有助于进一步进行
-
我使用的是selenium 4.42, maven 1.3, testng 6.8,在所有最新版本的ff,ie和chrome浏览器中都可以找到。
标签: java selenium-webdriver testng surefire