Open chensheng0619 opened 3 years ago
This is the translated issue:
Log: [TEST @ zj130 uirecorder-MHD] $ source run.sh sample / test.spec.js
uirecordertest@1.0.0 singletest MOCHA - Reporter MacaCa-Reporter --Reporter-Options ReportJsonFileName = Index, Processalwaysexitwithzero = true --Bail "Sample / Test.Spec.js"
(Node: 115374) WARNING: Accessing Non-EXIStent Property 'Version' of Module Exports Inside Circular Dependency
(Use node - TRACE-WARNINGS ...
to show where the warning was created)
(Node: 115374) WARNING: Accessing Non-EXIStent Property 'Version' of Module Exports Inside Circular Dependency
Sample / Test.Spec: Chrome
1) "Before all" hook
0 PASING (134ms) 1 Failing
1) Sample / Test.SPEC: Chrome
"Before ALL" hook:
Error: the string "unknown error: can not find Chrome binary \ n (Driver info: chromedriver = 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs / branch-heads / 4280 @ {# 1761}), platform = Linux 3.10.0-1062.4.1 .el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information) \ nCommand duration or timeout: 5 milliseconds \ nBuild info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11 -14T08: 25: 53 '\ nsystem info: Host:' ZJ130 ', IP: '10 .108.160.139, os.name:' Linux ', Os.Arch:' AMD64 ', Os.Version:' 3.10.0- 1062.4.1.el7.x86_64 ', java.version:' 1.8.0_232 '\ ndriver info: driver.version: unknown "Was thrown, throw an error :)
AT runner.fail (Node_Modules / _Mocha @ 5.2.0 @ mocha / lib / runner.js: 235: 11)
At runner.failhook (node_modules / _mocha @ 5.2.0 @ mocha / lib / runner.js: 284: 8)
AT /Disk2/course/jenkins2018/Workspace/uirecorder-mocha @5.2.0@mocha/lib/runner.js:334:16
AT DONE (Node_Modules / _Mocha @ 5.2.0 @ mocha / lib / runnable.js: 319: 5)
AT promise.
HTML reporter generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/index.html Json Reporter generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/index.json Reporter config generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/config.json 2) "After ALL" HOOK HTML reporter generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/index.html Json Reporter generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/index.json Reporter config generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/config.json
HTML reporter generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/index.html Json Reporter generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/index.json Reporter config generated: /disk2/course/jenkins2018/Workspace/uirecorder-mhd/reports/config.json
any fix?
日志: [test@zj130 uirecorder-MHD]$ source run.sh sample/test.spec.js
(node:115374) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) (node:115374) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency sample/test.spec : chrome 1) "before all" hook0 passing (134ms) 1 failing
1) sample/test.spec : chrome "before all" hook: Error: the string "unknown error: cannot find Chrome binary\n (Driver info: chromedriver=87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}),platform=Linux 3.10.0-1062.4.1.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 5 milliseconds\nBuild info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'\nSystem info: host: 'zj130', ip: '10.108.160.139', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-1062.4.1.el7.x86_64', java.version: '1.8.0_232'\nDriver info: driver.version: unknown" was thrown, throw an Error :) at Runner.fail (node_modules/_mocha@5.2.0@mocha/lib/runner.js:235:11) at Runner.failHook (node_modules/_mocha@5.2.0@mocha/lib/runner.js:284:8) at /disk2/course/jenkins2018/workspace/uirecorder-MHD/node_modules/_mocha@5.2.0@mocha/lib/runner.js:334:16 at done (node_modules/_mocha@5.2.0@mocha/lib/runnable.js:319:5) at Promise. (node_modules/_mocha@5.2.0@mocha/lib/runnable.js:383:11)
at processTicksAndRejections (node:internal/process/task_queues:94:5)