我正在使用selenium,java,phantomjs驱动程序来使用jenkins运行我的自动化脚本。该代码是jenkins从git仓库获取的。触发构建后,将显示构建控制台,并显示以下错误
> WARNING: Unable to perform report configuration. The file > /home/unique-creations/eclipse-workspace/UC_School/extent-config.xml > was not found.
/var/lib/jenkins/workspace/uc-school
Oct 08, 2018 10:44:33 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Starting ChromeDriver 2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac) on port 24847
Only loc[1538975674.068][SEVERE]: bind() returned an error, errno=99: Cal connections are allowed.
annot assign requested address (99)
Oct 08, 2018 10:44:34 AM com.relevantcodes.extentreports.Configuration <init>
INFO: Configurating report from file:/var/lib/jenkins/.m2/repository/com/relevantcodes/extentreports/2.40/extentreports-2.40.jar!/com/relevantcodes/extentreports/resources/extent-config.xml
Oct 08, 2018 10:44:34 AM com.relevantcodes.extentreports.ExtentReports loadConfig
WARNING: Unable to perform report configuration. The file /home/unique-creations/eclipse-workspace/UC_School/extent-config.xml was not found.
/var/lib/jenkins/workspace/uc-school
Oct 08, 2018 10:44:34 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Starting ChromeDriver 2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac) on port 19068
Only local connections are allowed.
[1538975674.602][SEVERE]: bind() returned an error, errno=99: Cannot assign requested address (99)
Oct 08, 2018 10:44:34 AM com.relevantcodes.extentreports.Configuration <init>
INFO: Configurating report from file:/var/lib/jenkins/.m2/repository/com/relevantcodes/extentreports/2.40/extentreports-2.40.jar!/com/relevantcodes/extentreports/resources/extent-config.xml
Oct 08, 2018 10:44:34 AM com.relevantcodes.extentreports.ExtentReports loadConfig
WARNING: Unable to perform report configuration. The file /home/unique-creations/eclipse-workspace/UC_School/extent-config.xml was not found.
/var/lib/jenkins/workspace/uc-school
Oct 08, 2018 10:44:34 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Starting ChromeDriver 2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac) on port 32750
Only local connections are allowed.
[1538975674.858][SEVERE]: bind() returned an error, errno=99: Cannot assign requested address (99)
[ERROR] Tests run: 96, Failures: 3, Errors: 0, Skipped: 93, Time elapsed: 2.237 s <<< FAILURE! - in TestSuite
[ERROR] setup(com.pack.tests.Logout_Test) Time elapsed: 1.312 s <<< FAILURE!
org.openqa.selenium.WebDriverException:
unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux 4.15.0-34-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 149 milliseconds
Build info: version: '3.10.0', revision: '176b4a9', time: '2018-03-02T19:03:16.397Z'
System info: host: 'uniquecreations-Vostro-15-3568', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-34-generic', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
[ERROR] setup(com.pack.tests.Logout_Test) Time elapsed: 1.637 s <<< FAILURE!
org.openqa.selenium.WebDriverException:
unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux 4.15.0-34-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 108 milliseconds
Build info: version: '3.10.0', revision: '176b4a9', time: '2018-03-02T19:03:16.397Z'
System info: host: 'uniquecreations-Vostro-15-3568', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-34-generic', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
[ERROR] setup(com.pack.tests.Logout_Test) Time elapsed: 1.887 s <<< FAILURE!
org.openqa.selenium.WebDriverException:
unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux 4.15.0-34-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 115 milliseconds
Build info: version: '3.10.0', revision: '176b4a9', time: '2018-03-02T19:03:16.397Z'
System info: host: 'uniquecreations-Vostro-15-3568', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-34-generic', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
我的脚本未包含为chromedriver设置的任何属性,但不知道jenkins为什么指向chromedriver。
有人可以在这个问题上为我提供帮助