Hi all,

Currently we are using JUnit & Maven surefire plugin to generate html
report. But we want to insert screenshot link in the error message just like
the following:
com.thoughtworks.selenium.SeleniumException: Timed out after 120000ms
SCREENSHOT
http://maven.40175.n5.nabble.com/file/n3404665/screenshot1.JPG
screenshot1.JPG 

But currently we are getting something like:
com.thoughtworks.selenium.SeleniumException: Timed out after 120000ms 
C:/image.png SCREENSHOT 
http://maven.40175.n5.nabble.com/file/n3404665/screenshot2.JPG
screenshot2.JPG 

Which shows that the html tags were escaped before generating the html
report, and then I looked back the TEST-*.xml files and found that the html
tags were escaped in the xml file too.

So, does anyone have any idea on the following questions?
1. When and who escaped the html tags on generating the xml report?
2. Does the xml be escaped again when it is generated to html report?
3. Is there a solution to make some configurations to disable the escaping?
It seems that TestNG can config the escaping output option just like the
following:
<xmlfileset dir="${basedir}" includes="testng.xml"/>     
<sysproperty key="org.uncommons.reportng.escape-output" value="false"/>


-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Stop-escaping-html-tags-when-generating-surefire-xml-report-tp3404665p3404665.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to