Comments (4)
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.
@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.
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.
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)
- If the scenario get fails, the whole test suite execution get stopped HOT 5
- Update dependencies
- Query : Is it possible to use gulp-angular-protractor with wdio and mocha HOT 3
- Gulp task hangs (never completes) with last output "gulp-angular-protractor - Webdriver standalone server will be closed" HOT 13
- Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:48107 for gulp protractor HOT 15
- Arguments to webdriver are not being pass to the selenium server HOT 5
- Updating protractor version HOT 1
- Update engine requirement ?
- webDriver.webDriverUpdateAndStart is not a function HOT 3
- ChromeDriver unable to maximize to defined values. HOT 4
- Fails with Chrome 57 HOT 28
- Confusion about global Protractor and node_modules Protractor HOT 2
- Gulp task does not terminate when using Protractor 5 HOT 26
- Configure for Page Object pattern project HOT 12
- What the problem is "code 199"? HOT 1
- webdriver update fail on clean environment with autoStartStopServer set to false HOT 3
- teapot error on vinyl@406 HOT 8
- Update lodash version to avoid vulnerability
- Update the dependency to protractor to its latest version 6.0.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-angular-protractor.