|
||||||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
- [jbehave-dev] [jira] (JBEHAVE-864) Take screenshot be... Damien LG (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-864) Take screensh... Mauro Talevi (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-864) Take screensh... Damien LG (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-864) Take screensh... Roy de Kleijn (JIRA)
I tried to do that with @AfterStories but Firefox was already ended.
For what I've done so far to get it working, override the end() method with this :
saveScreenshotTo(new StoryReporterBuilder().outputDirectory()+"/screenshots/final.png");
super.end();
Then I have a custom HtmlOutput extended from HtmlOutput with new pattern :
overwritePattern("afterStory", "<div class=\"scenario\"><h2>Last screenshot</h2><div><a color=\"black\" target=\"jb_scn_shot\" href="" src="" alt=\"final screenshot\"/></a></div></div></div>\n");