Protractor - Change Browser Capabilities at RunTime -


is there way change browser capabilities within beforeeach of protractor suite. need set capabilities.name attribute before each spec execution.

to create separate instances of desired capabilities, such capabilities.name, want try multicapabilities option available via protractor. example similar below , reside in conf.js file. allows submit unique name each test session.

  onprepare: function(){   var caps = browser.getcapabilities()   },    multicapabilities: [{     browsername: 'firefox',     version: '32',     platform: 'os x 10.10',     name: "firefox-tests",     shardtestfiles: true,     maxinstances: 25   }, {     browsername: 'chrome',     version: '41',     platform: 'windows 7',     name: "chrome-tests",     shardtestfiles: true,     maxinstances: 25   }], 

a complete example of can seen here:

https://github.com/saucelabs-sample-test-frameworks/js-cucumberjs-protractor3.0/blob/master/conf.js


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -