单击构建时,我在Jenkins 控制台中收到以下错误。但是,当我在 intelij IDE 中运行测试时,它运行没有任何故障。是Jenkins的这个问题还是chromedriver.exe的路径问题
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
[ERROR] Tests run: 38, Failures: 1, Errors: 0, Skipped: 37, Time elapsed: 2.237 s <<< FAILURE! - in TestSuite
[ERROR] SetUp(com.ancon.automation.tests.TenantsTest) Time elapsed: 1.593 s **<<< FAILURE!
java.lang.IllegalStateException: The driver executable does not exist: /var/lib/jenkins/jobs/Ancon-Automation/workspace\src\main\java\com\ancon\automation\webDriver\chromedriver.exe**
at com.ancon.automation.tests.TenantsTest.SetUp(TenantsTest.java:62)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TenantsTest.SetUp:62 » IllegalState The driver executable does not exist: /var...
[INFO]
[ERROR] Tests run: 16, Failures: 1, Errors: 0, Skipped: 15
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.616 s
[INFO] Finished at: 2018-08-17T09:56:58+05:30
[INFO] ------------------------------------------------------------------------
**[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project Ancon: There are test failures.
[ERROR]**
[ERROR] Please refer to /var/lib/jenkins/jobs/Ancon-Automation/workspace/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
注意:我发现了类似的问题,但找不到正确的答案。
芜湖不芜
翻翻过去那场雪
至尊宝的传说
相关分类