<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>junit — Sahi Pro Community</title>
        <link>https://community.sahipro.com/forums/</link>
        <pubDate>Fri, 13 Nov 2026 02:04:12 +0000</pubDate>
        <language>en</language>
            <description>junit — Sahi Pro Community</description>
    <atom:link href="https://community.sahipro.com/forums/discussions/tagged/junit/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Issues with junit report xmls</title>
        <link>https://community.sahipro.com/forums/discussion/1104/issues-with-junit-report-xmls</link>
        <pubDate>Sat, 25 Jul 2009 14:31:26 +0000</pubDate>
        <category>Sahi - Open Source</category>
        <dc:creator>hari19</dc:creator>
        <guid isPermaLink="false">1104@/forums/discussions</guid>
        <description><![CDATA[I'm trying out the JUnit report xmls generated by Sahi and have some issues :<br />
<br />
1.)<br />
<br />
I tried running junitreport ant task with the generated junit report xmls.<br />
<br />
I get the following error :
<pre><code>[junitreport] [Fatal Error] TEST-xss1__25Jul2009__21_34_40.xml:3:83: The reference to entity &quot;cntry&quot; must end with the ';' delimiter.
[junitreport] The file F:\users\hari\work\workspaces\galileo\sahi-security-bug-automation\results\junit\TEST-xss1__25Jul2009__21_34_40.xml is not a valid XML document. It is possibly corrupted.
[junitreport] [Fatal Error] TEST-xss2__25Jul2009__21_34_45.xml:11:71: The value of attribute &quot;name&quot; associated with an element type &quot;testcase&quot; must not contain the '&lt;' character.
[junitreport] The file F:\users\hari\work\workspaces\galileo\sahi-security-bug-automation\results\junit\TEST-xss2__25Jul2009__21_34_45.xml is not a valid XML document. It is possibly corrupted.
</code></pre>
<br />
line in TEST-xss1__25Jul2009__21_34_40.xml causing error :
<pre><code>&lt;testcase name=&quot;_log(&amp;quot;Navigating to &amp;quot; + &amp;quot;http://somesite.com:8180/app/login.jsp?lang=en&amp;cntry=US&amp;id=&amp;command=&amp;activeControl=%5C%22;javascript:onload(window.location=%27http://www.host.com/%27);%2F%2F&amp;quot; ,&amp;quot;info&amp;quot;);&quot;&gt;&lt;/testcase&gt;
</code></pre>
<br />
line in TEST-xss2__25Jul2009__21_34_45.xml causing error :
<pre><code>&lt;testcase name=&quot;_setValue(_textbox(&amp;quot;displayName&amp;quot;), &amp;quot;&lt;script&gt;alert(\&amp;quot;bugxss11\&amp;quot;);&lt;/script&gt;&amp;quot;);&quot;&gt;&lt;/testcase&gt;
</code></pre>
<br />
Looks like some of the characters &lt; , &gt; , &amp; etc need to be escaped.<br />
<br />
Replacing &lt; with &lt; , &gt; with &gt; , &amp; with &amp; works for and I can see JUnitReport task succeeds.<br />
<br />
2)<br />
right now each test case is considered a test suite and each &quot;check point&quot; in the script is considered a test case.<br />
It shows the number of lines in the code as number of test cases.<br />
So even though I had only two test scripts, it shows up as 28 test cases.<br />
<br />
<br />
3)<br />
The package name in the JUnit html reports are the test case names.<br />
Suppose I had xss1.sah and xss2.sah as the test cases in my Sahi test suite file,<br />
I had packages as xss1 and xss2 and the classes as sah and sah.<br />
<br />
<br />
Here is a screenshot of the JUnit HTML Report that should show what I'm  seeing :
<pre><code>http://yfrog.com/9esahireportj
</code></pre>
]]>
        </description>
    </item>
   </channel>
</rss>
