错误:找不到浏览器。 “ browserstack:Chrome@68.0:Windows 10”不是浏览器别名或可执行文件的路径

时间:2018-11-21 18:31:14

标签: jenkins automated-tests cucumberjs browserstack testcafe

在通过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] }

1 个答案:

答案 0 :(得分:0)

根据author's tweet,他设法解决了这个问题。