Wednesday, April 26, 2017

Protractor - Analyze Browser Console Logs with protractor-screenshoter-plugin

Have you ever wondered if there is any possibility to capture browser errors when you run protractor tests? 
There is. One solution is to use protractor-screenshoter-plugin that works for jasmine2.
After the entire .spec run, a folder e2e will be generated that will include an index.html. Open it and you will get your browser logs.




This plugin has 2 reporting parts:
- screenshot parts
- console reports
The first one will take screenshots for each jasmine2 expect success/failure, run time, failure reason, and what is important, the browser's logs.




The second one is an overview for all browser console logs.




How to install




Usage











Happy testing and... make it green, becomes a dream :).

No comments:

Post a Comment

Popular Posts