javascript - How do i overwrite protractor.conf.js values from the command line? -
i have protractor setup run on our integration server. inside protractor.conf.js file have following:
multicapabilities: [{ 'browsername': 'firefox', 'platform': 'mac' }, { 'browsername': 'chrome', 'platform': 'mac' }]
i override when running locally command line. i've tried following no success
protractor --verbose --browser=chrome
question: how switch using single instance of chrome when running locally command line?
this problem.
according source code, browser
command line argument alias of capabilities.browsername
.
according referenceconf.js
documentation:
// if run more 1 instance of webdriver on same // tests, use multicapabilities, takes array of capabilities. // if specified, capabilities ignored. multicapabilities: [],
in other words, since multicapabilities
specified, capabilities
ignored.
what can try reset multicapabilities
command-line:
protractor --verbose --browser=chrome --multicapabilities
as workaround, have separate config file running single browser instance.
also, list of related topics:
Comments
Post a Comment