javascript - protractor 3.0.0 and cucumber automated testing -


i using protractor, cucumber , chai/chai-as-promised automated tests. current code using protractor 1.8.0 , update recent version. problem recent version of protractor doesn't support cucumber.

to use cucumber framework, protractor (http://angular.github.io/protractor/#/frameworks) points using protractor-cucumber-framework (https://github.com/mattfritz/protractor-cucumber-framework). have tried integrating current code , smaller example projects no luck @ getting them working. main error is:

error: step timed out after 5000 milliseconds @ timer.listontimeout (timers.js:92:15)

i have tried changing default timeout globally cucumber suggests by:// features/support/env.js

var configure = function () {   this.setdefaulttimeout(60 * 1000); };  module.exports = configure; 

but seem missing setup.

so, know of example can show me proper setup new protractor/cucumber framework? if not, know of example shows how change default timeout globally?

you should add

this.setdefaulttimeout(60000);

to 1 of step_def files. example:

module.exports = function () {      this.setdefaulttimeout(60000);     this.after(function (callback) { ... }   } 

or should add //features/support/env.js to

cucumberopts:{require: ['//features/support/env.js']}

to array stepdefinition files


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -