为什么不以用户jenkins的身份启动selenium standalon服务器?

时间:2015-07-18 10:13:12

标签: ubuntu selenium jenkins automated-tests nightwatch.js

有两个用户jehord和jenkins 从命令控制台运行测试生成了nightwatch 如果从用户jehord开始,那么一切都很好,但如果切换并运行来自用户jenkins的测试我得到一个错误

> Error retrieving a new session from the selenium server { sessionId:
> null,   status: 13,   state: 'unhandled error',   value:     {
> supportUrl: null,
>      screen: null,
>      additionalInformation: '\nDriver info: org.openqa.selenium.chrome.ChromeDriver',
>      hCode: 1457029,
>      buildInformation: 
>       { releaseLabel: '2.45.0',
>         buildTime: '2015-02-26 23:59:50',
>         class: 'org.openqa.selenium.internal.BuildInfo',
>         buildRevision: '5017cb8',
>         hCode: 13974215 },
>      systemInformation: 'System info: host: \'jehord-VirtualBox\', ip: \'127.0.1.1\', os.name: \'Linux\', os.arch: \'i386\', os.version:
> \'3.13.0-32-generic\', java.version: \'1.7.0_79\'',
>      class: 'org.openqa.selenium.WebDriverException',
>      cause: null,
>      localizedMessage: 'unknown error: Chrome failed to start: exited abnormally\n  (Driver info: chromedriver=2.9.248316,platform=Linux
> 3.13.0-32-generic x86) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 60.62
> seconds\nBuild info: version: \'2.45.0\', revision: \'5017cb8\', time:
> \'2015-02-26 23:59:50\'\nSystem info: host: \'jehord-VirtualBox\', ip:
> \'127.0.1.1\', os.name: \'Linux\', os.arch: \'i386\', os.version:
> \'3.13.0-32-generic\', java.version: \'1.7.0_79\'\nDriver info:
> org.openqa.selenium.chrome.ChromeDriver',
>      message: 'unknown error: Chrome failed to start: exited abnormally\n  (Driver info: chromedriver=2.9.248316,platform=Linux
> 3.13.0-32-generic x86) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 60.62
> seconds\nBuild info: version: \'2.45.0\', revision: \'5017cb8\', time:
> \'2015-02-26 23:59:50\'\nSystem info: host: \'jehord-VirtualBox\', ip:
> \'127.0.1.1\', os.name: \'Linux\', os.arch: \'i386\', os.version:
> \'3.13.0-32-generic\', java.version: \'1.7.0_79\'\nDriver info:
> org.openqa.selenium.chrome.ChromeDriver',
>      suppressed: [ [length]: 0 ] },   class: 'org.openqa.selenium.remote.Response',   hCode: 24277937 }
> 
> Connection refused! Is selenium server started?

有什么问题?

0 个答案:

没有答案