Running test tags on multiple browsers with a browser stack

I'm trying to run E2E tests on multiple browsers in the browser stack, did I take the link with E2E Test on multiple / parallel browsers in Protractor? as well as Testing the e2e Projector of Internet Explorer Selenium

but the error that I get every time I try to run tests is

ERROR. Unable to start WebDriver session. C: \ MrWhiteMVP \ whitemvp-integrationtests_develop \ node_modules \ gulp -protractor \ node_modules \ protractor \ node_modules \ selenium WebDriver \ Lib \ atoms \ error.js: 113 var template = new Error (this.message); ^ UnknownError: authorization is required on the new bot.Error (C: \ MrWhiteMVP \ whitemvp-integrationtests_develop \ node_modules \ gulp -protractor \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ atom \ error.js: 113: 18) .bot.response.checkResponse (C: \ MrWhiteMVP \ whitemvp-integrationtests_develop \ node_modules \ gulp -protractor \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ atomic \ response.js: 103: 11)

But if I run the tests in 1 browser, then it works fine. this is how my conf file looks like

    'use strict';
    exports.config = {
    seleniumAddress: 'http://hub.browserstack.com/wd/hub',

        multicapabilities: [{
            'browserstack.user': 'testuser',
            'browserstack.key': 'testkey',

            // Needed for testing localhost
                // 'browserstack.local': 'true',

            // Settings for the browser you want to test
            'browserName': 'chrome',
            'version': '36.0',
            'os': 'OS X',
            'os_version': 'Mavericks',
            'resolution': '1024x768'
        },
    {

    'browserstack.user': 'testuser',
    'browserstack.key': 'testkey',

    // Needed for testing localhost -  'browserstack.local': 'true',

    // Settings for the browser 

            'browserName': 'firefox',
    'os': 'windows'        
    }],  

    baseUrl: 'http://origin-develop.mvp.livebranches.com',

        // The require statement must be down here, since jasmine-reporters
            // needs jasmine to be in the global and protractor does not guarantee
            // this until inside the onPrepare function.

     onPrepare: function() 

    {
    require('jasmine-reporters');
    jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('xmloutput', true, true));

    },



        },
    };

-, , , , gulp ti run specs, , , .

+4
1

, .

 onPrepare: function() 

{
require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('xmloutput', true, true));

},



    }, <----- 
};
-1

All Articles