How can I run my tests in parallel mode using protractor-cucumber?
I am using examples from http://ift.tt/1tNNzE0 with second features/homepage_copy.feature
.
Version of apps:
- node 5.4.1
- cucumber 0.10.2
- protractor 3.3.2
- protractor-cucumber 0.1.8
As the docs states this framework plugin gives a list of properties/methods exposed on the world object. So I need to do it in file features/step_definitions/steps.js
var pc = require('protractor-cucumber');
var steps = function() {
var seleniumAddress = 'http://localhost:4444/wd/hub';
var options = { browser : 'chrome', timeout : 100000 };
this.World = pc.world(seleniumAddress, options);
this.After(function(scenario, callback) {
this.quit(callback);
});
};
module.exports = steps;
Try like this one below doesn't work. There was no error, part of the code was ignored by the compiler.
var steps = function() {
var seleniumAddress = 'http://localhost:4444/wd/hub';
var options = { browser : 'chrome', timeout : 100000,
desiredCapabilities: {maxInstances: 2} };
this.World = pc.world(seleniumAddress, options);
My problem is how to use all of these methods delivered with this plugin? For example how to declare protractor for using the protractor lib?
Is there a way to use this plugin with conf.js
file? If the way exists my problem would be solved.
exports.config = {
// set to "custom" instead of cucumber.
framework: 'custom',
// path relative to the current config file
frameworkPath: 'protractor-cucumber'
// other properties omitted
};
Aucun commentaire:
Enregistrer un commentaire