swissmanu / protractor-screenshot-reporter

Reporter for Protractor. Asks Selenium for a screenshot after every test case and stores it along with test case details.
https://github.com/swissmanu/protractor-screenshot-reporter
MIT License
65 stars 21 forks source link

Trigger screenshot manually during test #1

Open swissmanu opened 10 years ago

swissmanu commented 10 years ago

Allow the test specs to trigger screenshot capture manually when running tests. This would provide an easy way to take shots on specific checkpoints.

This is already possible by calling browser.takeScreenshot manually. But providing the functionality by the reporter itself, it would make it possible to reuse the same facilities (metadata etc).

Thx for suggestion @olivvv

elgalu commented 10 years ago

:+1:

BTW thanks for this @swissmanu your plugin is really useful.

This is how i'm using it: https://github.com/angular/protractor/issues/587

swissmanu commented 10 years ago

thx @elgalu! glad it's useful. your pathbuilder looks nice btw :-)

swissmanu commented 10 years ago

PoC in commit 68e2896cbf8baf1ce156b64dfd849053060fc551