javascript - How do I Run multiple protractor test suites at once? -
first attempt @ using protractor. able run multiple suites in succession. have application 1 big angular form different scenarios. have expected results each scenario , enter 1 command , run through each test. thought use comma separated like:
protractor config.js --suite=rf1_breast, rf1_ovarian, rf1_pancreatic
but getting error:
error: more 1 config file specified
which strange there 1 config file in directory running protractor.
here config.js:
exports.config = { seleniumaddress: 'http://localhost:4444/wd/hub', capabilities: { 'browsername': 'chrome' }, framework: 'jasmine2', suites: { rf1_breast: './rf1-ashkenazi-hboc/breast/specs/*_spec.js', rf1_ovarian: './rf1-ashkenazi-hboc/ovarian/specs/*_spec.js', rf1_bladder_fail: './rf1-ashkenazi-hboc/bladder-expected-fail/specs/*_spec.js', rf1_pancreatic: './rf1-ashkenazi-hboc/pancreatic/specs/*_spec.js', rf1_prostate: './rf1-ashkenazi-hboc/prostate/specs/*_spec.js' }, onprepare: function() { /* global angular: false, browser: false, jasmine: false */ browser.manage().window().setsize(1600, 1600); // disable animations e2e tests run more var disablenganimate = function() { angular.module('disablenganimate', []).run(['$animate', function($animate) { $animate.enabled(false); }]); }; browser.addmockmodule('disablenganimate', disablenganimate); }, jasminenodeopts: { showcolors: true } };
is there better way around getting each scenario run?
don't put spaces after commas:
protractor config.js --suite rf1_breast,rf1_ovarian,rf1_pancreatic
Comments
Post a Comment