You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to log the step level info, so going through the hooks, where for the cucumber(v4.2.1) uses EventProtocolFormatter, i have tried to invoke it, but its not successful.
// support/hooks.js
const {Before, After} = require('cucumber');
const {setDefaultTimeout} = require('cucumber');
setDefaultTimeout(60000);
Before(function (scenario) {
});
// How to invoke the EventProtocolFormatter here to call the beforeStep and afterStep?
// Do we need to require and call the events in this way?
let local_event_formatter = require('../../node_modules/cucumber/lib/formatter/event_protocol_formatter.js');
After(function (scenario) {
browser.close();
return browser.quit();
});
Those hooks were removed and you should not use event protocol formatter directly. You can write your own formatter if you want to log something specific otherwise will need to wait for #997
We need to log the step level info, so going through the hooks, where for the cucumber(v4.2.1) uses EventProtocolFormatter, i have tried to invoke it, but its not successful.
Same has been asked here.. stackoverflow
The text was updated successfully, but these errors were encountered: