Brad,
As others suggested, probably good to use the reporting facilities of existing frameworks like JUnit, TestNG, Maven, or to use XSLT and XML to transform the content to your desired output (HTML, etc.).
But as you've mentioned about building from scratch w/o any real framework, and using Java, if I was going with simplest approach this is what I'd do:
use Java's file I/O classes to write text to file, and instead of writing text, I'd simply write HTML. And instead of document.write() or any javascript calls (because we're creating HTML outside of a browser), we simply using file write/output methods. There is no need to involve javascript, you can do this all in Java alone. You'll only need javascript if your report HTML page somehow has dynamic features that render with javascript etc. But even in that case, you'd simply be writing javascript as text to a file.
If we were writing to the terminal/command prompt rather than file, then this would be an example:
System.out.println("<html><head>");
System.out.println("<title>");
System.out.println("Your report page HTML title here");
System.out.println("</title></head><body>");
System.out.println("Print the Test values in html format. Your content goes here as multiple lines, etc.");
System.out.println("</body></html>");
//if above was written to a file output stream instead of system out, once you close the file stream, you now have the file saved to disk as filename you specified when opening the file output stream. open file in browser and you should see the HTML content.
I would not recommend use of Selenium and external tools (AutoIt, Sikuli) for this at all. Selenium should only be used for testing web apps or websites, no report generation at all.
On Monday, April 29, 2013 5:09:14 PM UTC-7, Brad wrote: