Is there a way we can run specs in different environments. Perhaps, any configuration in the protractor-config file?
Doing something like
specs: ['../tests/*.js', server1], ['../more_tests/*.js', server2]
in the configuration.
I don't know what you mean by "separate environment". If you want to run different specs based on different capabilities, this is how:
exports.config = {
specs: [
'basic/*' // specs to be shared amongst all capabilities
],
multiCapabilities: [{
'browserName': 'chrome', // You can specify version, etc
// uses 'basic/*'
}, {
'browserName': 'chrome', // You can specify version, etc
specs: 'basic2/*' // 'basic/*' and 'basic2/*'
}, {
'browserName': 'firefox', // You can specify version, etc
specs: 'basic3/*' // 'basic/*' and 'basic3/*'
}]
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.