Damien LG commented on Wish JBEHAVE-864

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");

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
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to