Re: Converting xml output to html
- Hi Mannie,
First of all, where did you get a FitNesse-Version v20100927?
The latest I am using is v20100303.
I do not get any additional data in the XML-output-file.
You can generate a html out of it by using XSLT.
Try searching for FitNesseXmlToHtml this would be a set of XSl-files, which could do the transformation for you.
--- In firstname.lastname@example.org, "mxtrujillo1" <mxtrujillo1@...> wrote:
> I'm running a test suite from the command line and generating an xml file, and I have a few of questions:
> Here is the command I'm executing:
> java -jar fitnesse.jar -c ".path_to_my_suite.SuiteName?suite&format=xml" > /output_path/SuiteName.xml
> 1. When the xml file is created it has some extra stuff at the top and bottom of the file. At the top, the following is being generated:
> FitNesse (v20100927) Started...
> port: 9123
> root page: fitnesse.wiki.FileSystemPage at ./FitNesseRoot
> logger: none
> authenticator: fitnesse.authentication.PromiscuousAuthenticator
> html page factory: fitnesse.html.HtmlPageFactory
> page version expiration set to 14 days.
> Executing command: .path_to_my_suite.SuiteName?suite&format=xml
> -----Command Output-----
> HTTP/1.1 200 OK^M
> Connection: close^M
> Server: FitNesse-v20100927^M
> Content-Type: text/xml^M
> At the bottom it has:
> Exit-Code: 3^M
> -----Command Complete-----
> Is there anyway to run this command (generating the XML file) without this extra stuff?
> 2. Is there was away to take this XML file and convert it to an html file. I need this html file to be very similar to the html output produced when I click the suite button from the browser?