在通过TestCafe运行某些JavaScript测试时遇到了一些问题。我设置的项目使用BDD样式,它调用TestCafe测试运行程序来运行测试。我已经使用browserstack集成了它们,但是从Jenkins运行它时却遇到了。我一直收到此错误,无法解决问题,因为它甚至没有到达BS服务器。
我能够从本地成功运行
错误日志
[BrowserStack] BROWSERSTACK_USERNAME=natarajankrishna1
[BrowserStack] BROWSERSTACK_ACCESS_KEY=********************
[BrowserStack] BROWSERSTACK_BUILD=jenkins-H_QA_SPRINT_FEATURETESTS-363
[BrowserStack] BROWSERSTACK_LOCAL=true
[BrowserStack] BROWSERSTACK_LOCAL_IDENTIFIER=2abd3c29-8371-45c7-b28d-44fd7820fcd4-H_QA_SPRINT_FEATURETESTS__363
[31mF[39m[36m-[39m[36m-[39m[36m-[39m[36m-[39m[36m-[39m[36m-[39m[36m-[39m[31mF[39m[32m.[39m{ Error: Unable to find the browser. "browserstack:Chrome@68.0:Windows 10" is not a browser alias or path to an executable file.
at /opt/jenkins2/jobs/H_QA_SPRINT_FEATURETESTS/workspace/node_modules/testcafe/src/browser/provider/pool.js:107:19
at Generator.next (<anonymous>)
at step (/opt/jenkins2/jobs/H_QA_SPRINT_FEATURETESTS/workspace/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
at /opt/jenkins2/jobs/H_QA_SPRINT_FEATURETESTS/workspace/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
at <anonymous> constructor: [Function: GeneralError] }