We are using selenium test triggered on a jenkins. As the attachment plugin for junit is for some reasons not working, I'd like to add html-references to screenshots of the test in the log.
The ways I tried to are:
logger.info("<a href=\"file:///" + screenshotFile.getAbsolutePath() + "\">Screenshot<a>");
System.out.println("<a href=\"file:///" + screenshotFile.getAbsolutePath() + "\">Screenshot<a>");
System.err.println("<a href=\"file:///" + screenshotFile.getAbsolutePath() + "\">Screenshot<a>");
In anyway in the output the
<
is always escaped as <
This is commonly occurring problem, try to wrap the string with pre element.