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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -