automated tests - Is there a Protractor Reporting Tool that works with a cucumber framework? -
using protractor cucumber , need plug in or tool (free if possible) create user friendly test report or @ least file test report can generated from. thank you!
the easiest thing compliment current setup free , open-source serenity/js.
serenity/js next generation acceptance testing library, in basic scenario, can act integration layer between protractor , cucumber.
this enables to:
- run tests in parallel , still aggregated, user-friendly test reports.
- enhance test reports screenshots of app's ui without additional plugins.
- fix common problems related cucumber/webdriver controlflow synchronisation , inaccurate reporting single config change.
- try screenplay pattern in part of project while keeping other tests working used to. way minimise risk of disrupting work of team while improving tool set.
the below setup instructions explained in detail in the manual, , reports you'll this:
setup
install serenity-js module npm , save development dependency:
npm install serenity-js --save-dev with serenity-js module installed, can update protractor configuration file include:
exports.config = { framework: 'custom', frameworkpath: require.resolve('serenity-js'), // ... } if you're using protractor-cucumber-framework, can replace serenity-js.
report generation
serenity/js produces test execution reports in json format , convert them html you'll need serenity-cli (which node.js wrapper around serenity bdd cli, in turn java program , you'll need java runtime environment 7 or newer run it).
install serenity-cli , save development dependency:
npm install serenity-cli --save-dev next, add following npm scripts package.json file:
"scripts": { "prereport": "serenity update", "report": "serenity run", // other scripts ... }, with above setup complete running protractor tests produce test reports in json format screenshots under target/site/serenity, , running npm run report process intermediary reports , produce user-friendly html version you're after.
hope helps,
jan

Comments
Post a Comment