GithubHelp home page GithubHelp logo

Comments (4)

guan01 avatar guan01 commented on May 28, 2024

I use a little different approach and works for me, perhaps you can give this a try on your side...

baseUrl: 'http://localhost:3000',
specs: ['dist/**/*.feature'],
directConnect: true,
exclude: [],
maxSessions: 4,
multiCapabilities: [{
    browserName: 'internet explorer',
},
{
    browserName: 'MicrosoftEdge',
},
{
    browserName: 'chrome',
},
{
    browserName: 'firefox',
    marionette: true,
    directConnect: true,
}
],

.....

from gulp-angular-protractor.

Milan-kumar avatar Milan-kumar commented on May 28, 2024

@guan01 Thanks for your response.
Yes that works fine, but my requirement was to pass multiCapabilities as an argument using gulp-angular-protractor.
We need to update cli.js file https://github.com/angular/protractor/pull/1083/files and then you can pass it as an argument:
gulp.src([])
.pipe(gulpProtractorAngular({
'configFile': './conf.js',
'debug': true,
'autoStartStopServer': false,
args: [
'--specs', './testExecution/UserManagement/Login/*.js',
'--multiCapabilities.0.browserName', 'internet explorer',
'--multiCapabilities.1.browserName', 'chrome'
],

from gulp-angular-protractor.

rochejul avatar rochejul commented on May 28, 2024

Hi @Milan-kumar

Do you know which version of protractor allow to set the multiCapabilities option as CLI parameter ?

Currently, we used the 4.0.11 version: https://github.com/rochejul/gulp-angular-protractor/blob/master/package.json#L38

Maybe it resolve your issue ?

from gulp-angular-protractor.

Milan-kumar avatar Milan-kumar commented on May 28, 2024

Hi @rochejul,

I am not sure and couldn't find any version of protractor that allows to set the multiCapabilities option as CLI parameter.
I am using [email protected], just modified cli.js as mentioned above and added following:

if(argv.multiCapabilities) { var multiCapabilitiesArray = []; for (var i = 0; i < Object.keys(argv.multiCapabilities).length; i++) { multiCapabilitiesArray[i] = flattenObject(argv.multiCapabilities[i]); } argv.multiCapabilities = multiCapabilitiesArray; }

and it worked for me.

Let me know if you have any better solution or any version having multiCapabilities cli option

from gulp-angular-protractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.