Re: Stop escaping html tags when generating surefire xml report

2011-03-01 Thread Kristian Rosenvold
I have't looked into the exact details of this, but generally if you 
want to embed
HTML inside XML you have two choices; escaping or CDATA (with escaping 
of ]]>)


Escaping or cdata *has* to be used here to get well formed xml.

There might be some reason for continuing the escaping all the way into 
html (injection

comes to mind), but I am unsure if this is intentional or not.

Kristian

Den 01.03.2011 10:40, skrev zpan:

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 12ms
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 12ms
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:









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



Stop escaping html tags when generating surefire xml report

2011-03-01 Thread zpan
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 12ms
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 12ms 
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:
 



-- 
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