This page describes how to make CruiseControl to show nice build results report from the selenium-results.html. This solution works only with Mozilla Firefox (actually it does not work with IE, and I did not tested with other browsers), and is based on assumption that selenium-fitrunner or something similar is used to produce selenium-results.html on file system.
First it is necessary to make CruiseControl merge selenium-results.html into xml log. It easily could be done in CruiseControl config.xml as follows if the html is valid XHTML!
The only problem is that valid XHTML selenium-results.html is required. For this it is necessary to patch viewResults.jsp from the selenium-fitrunner to produce html with XHTML header as follows, and make sure all html is valid, i.e. all tags are closed.
Notice, that selenium javascripts use innerHTML() to retrive selenium result table and post results. Unfortunetly, IE 6.0 does not produce XHTML with this method, while Firefox does, luckily.
Important, even though, avoid using single tags (that don't require closing tag), since Firefox (at least 1.5) still does not genereate closed tag for them. E.g. even if you write <br/> in your test*.html, Firefox will write <br> without closing </br> (since it is impossible), and selenium-results.html will be invalid XHML.
These two issues might be fixed in nearest future.
Well, finally when you ensured that postResults returns valid XHTML (i.e., when you still can see results table in your browser at the end of the tests after you patched postResults), it is time to learn CruiseControl to include selenium-results.html into build results report.
To make CruiseControl show selenium-results report, I've created selenium.xsl, that must be put into <cruiseconrol webapp>/xsl/ dir, and included (imported) into buildresults.xsl as follows below.
And here is selenium.xsl itself, that is based on unittests.xsl indeed:
Finally, if you're lucky, you'll see something like the following screen shot shows (tested with CruiseControl 2.3.1 (java)):

Hi,
I am using CruiseControl(version 2.7) to run my selenium tests.
Following the procedure suggested above, I was able to run the tests successfully and also getting the
results file.
But I was unable to view the results through CruiseControl's console.
Has there been any changes made from CruiseControl 2.3.1 to CruiseControl 2.7 so as to view the
results.
Can someone help me on this.
Thanks in advance.