Hi Rafael, I'm using the test report library you mention to integrate the xml results into Cruise Control for our continuous integration server. Not sure what advantage Excel gives you. However, if you must, the simplest path I can think of would be to use the xml generated by test report and parse it with Rexml, then dump the results into a spreadsheet. All of the data points you're looking for are in the xml file. Otherwise, instead of writing your own runner, you could look at how Alexey has set up his formatters, htmlformatter, xmlformatter, etc and extend out test report to write your own formatter for Excel.
-Charley On 12/18/06, Rafael Torres <[EMAIL PROTECTED]> wrote:
Hello guys, I'm trying to have my ruby code read Watir test results reported by the TUnit framework to be able to report them into an excel sheet along with the traditional console report. I am able to utilize the Win32OLE library to build my XL interface, but I have to give it the ability to read test results from TUnit to know what to report on the sheet (i.e., passed, failed, print out any errors/failures for each test case, etc.). I tried to look at the Reporter tool designed by Alexey Verkhovsky ( http://test-report.rubyforge.org/) – which builds an xml or html report off of TUnit – to see if I could understand his logic to build my XL report, but I'm still unable to accomplish it. Based on my research, and trial/error attempts, it seems to me that what I have to do is create my own test runner – although it's proving to be a little cumbersome to me (I'm having a hard time understanding how TUnit does its internal magic). I'm wondering if there's an easier way to accomplish my goal, or if there's any other idea that can help me on this. Any feedback is appreciated. Thanks in advance, R. _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
