Error: Unable to find the browser. “browserstack:Chrome@68.0:Windows 10” is not a browser alias or path...












1














I have been having some issues in running some JavaScript tests via TestCafe. The project I have set up uses a BDD style and it invokes the TestCafe test runner to run the tests. I have integrated them using browserstack however, I am having when I run it from Jenkins. I keep getting this error and unable to resolve the issue as it's not even reaching BS servers.



I am able to run successfully from my local



Error log



[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] }









share|improve this question
























  • The error suggests that package testcafe-browser-provider-browserstack is missing in your CD environment
    – ioseph
    Nov 22 '18 at 23:44












  • Please try to run the testcafe -b browserstack command with your testing environment. You should see the list of all browser configurations available on the Browserstack. If you see an error, please check if testcafe and testcafe-browser-provider-browserstack are installed both globally or both locally. I mean that both modules should be installed via the same command: npm i testcafe and npm i testcafe-browser-provider-browserstack or npm i -g testcafe and npm i -g testcafe-browser-provider-browserstack
    – Alex Kamaev
    Nov 23 '18 at 13:38


















1














I have been having some issues in running some JavaScript tests via TestCafe. The project I have set up uses a BDD style and it invokes the TestCafe test runner to run the tests. I have integrated them using browserstack however, I am having when I run it from Jenkins. I keep getting this error and unable to resolve the issue as it's not even reaching BS servers.



I am able to run successfully from my local



Error log



[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] }









share|improve this question
























  • The error suggests that package testcafe-browser-provider-browserstack is missing in your CD environment
    – ioseph
    Nov 22 '18 at 23:44












  • Please try to run the testcafe -b browserstack command with your testing environment. You should see the list of all browser configurations available on the Browserstack. If you see an error, please check if testcafe and testcafe-browser-provider-browserstack are installed both globally or both locally. I mean that both modules should be installed via the same command: npm i testcafe and npm i testcafe-browser-provider-browserstack or npm i -g testcafe and npm i -g testcafe-browser-provider-browserstack
    – Alex Kamaev
    Nov 23 '18 at 13:38
















1












1








1


1





I have been having some issues in running some JavaScript tests via TestCafe. The project I have set up uses a BDD style and it invokes the TestCafe test runner to run the tests. I have integrated them using browserstack however, I am having when I run it from Jenkins. I keep getting this error and unable to resolve the issue as it's not even reaching BS servers.



I am able to run successfully from my local



Error log



[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] }









share|improve this question















I have been having some issues in running some JavaScript tests via TestCafe. The project I have set up uses a BDD style and it invokes the TestCafe test runner to run the tests. I have integrated them using browserstack however, I am having when I run it from Jenkins. I keep getting this error and unable to resolve the issue as it's not even reaching BS servers.



I am able to run successfully from my local



Error log



[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] }






jenkins automated-tests cucumberjs browserstack testcafe






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 28 '18 at 6:32









Alex Skorkin

2,1371532




2,1371532










asked Nov 21 '18 at 18:31









user758759user758759

63




63












  • The error suggests that package testcafe-browser-provider-browserstack is missing in your CD environment
    – ioseph
    Nov 22 '18 at 23:44












  • Please try to run the testcafe -b browserstack command with your testing environment. You should see the list of all browser configurations available on the Browserstack. If you see an error, please check if testcafe and testcafe-browser-provider-browserstack are installed both globally or both locally. I mean that both modules should be installed via the same command: npm i testcafe and npm i testcafe-browser-provider-browserstack or npm i -g testcafe and npm i -g testcafe-browser-provider-browserstack
    – Alex Kamaev
    Nov 23 '18 at 13:38




















  • The error suggests that package testcafe-browser-provider-browserstack is missing in your CD environment
    – ioseph
    Nov 22 '18 at 23:44












  • Please try to run the testcafe -b browserstack command with your testing environment. You should see the list of all browser configurations available on the Browserstack. If you see an error, please check if testcafe and testcafe-browser-provider-browserstack are installed both globally or both locally. I mean that both modules should be installed via the same command: npm i testcafe and npm i testcafe-browser-provider-browserstack or npm i -g testcafe and npm i -g testcafe-browser-provider-browserstack
    – Alex Kamaev
    Nov 23 '18 at 13:38


















The error suggests that package testcafe-browser-provider-browserstack is missing in your CD environment
– ioseph
Nov 22 '18 at 23:44






The error suggests that package testcafe-browser-provider-browserstack is missing in your CD environment
– ioseph
Nov 22 '18 at 23:44














Please try to run the testcafe -b browserstack command with your testing environment. You should see the list of all browser configurations available on the Browserstack. If you see an error, please check if testcafe and testcafe-browser-provider-browserstack are installed both globally or both locally. I mean that both modules should be installed via the same command: npm i testcafe and npm i testcafe-browser-provider-browserstack or npm i -g testcafe and npm i -g testcafe-browser-provider-browserstack
– Alex Kamaev
Nov 23 '18 at 13:38






Please try to run the testcafe -b browserstack command with your testing environment. You should see the list of all browser configurations available on the Browserstack. If you see an error, please check if testcafe and testcafe-browser-provider-browserstack are installed both globally or both locally. I mean that both modules should be installed via the same command: npm i testcafe and npm i testcafe-browser-provider-browserstack or npm i -g testcafe and npm i -g testcafe-browser-provider-browserstack
– Alex Kamaev
Nov 23 '18 at 13:38














1 Answer
1






active

oldest

votes


















0














According to the author's tweet he has managed to resolve the issue.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418460%2ferror-unable-to-find-the-browser-browserstackchrome68-0windows-10-is-not%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    According to the author's tweet he has managed to resolve the issue.






    share|improve this answer


























      0














      According to the author's tweet he has managed to resolve the issue.






      share|improve this answer
























        0












        0








        0






        According to the author's tweet he has managed to resolve the issue.






        share|improve this answer












        According to the author's tweet he has managed to resolve the issue.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 3 '18 at 14:00









        Alex SkorkinAlex Skorkin

        2,1371532




        2,1371532






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418460%2ferror-unable-to-find-the-browser-browserstackchrome68-0windows-10-is-not%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            Refactoring coordinates for Minecraft Pi buildings written in Python