[Wtr-general] XML Logging with Builder

Jonathan Kohl jkohl at telusplanet.net
Wed Aug 3 19:23:41 EDT 2005


Here is an example. When you have RubyGems and Builder installed, rename the
"xml_logging.zi~" file to "xml_logging.zip", extract and run.

 

Hope this helps. 

 

With REXML, I wasn't able to get a solution that printed out a suite results
file and a test case results file using Suites in Test::Unit. One of the log
files would be blank. I'll have to try again.

 

-Jonathan

 

  _____  

From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Cain, Mark
Sent: August 3, 2005 3:08 PM
To: wtr-general at rubyforge.org
Subject: RE: [Wtr-general] XML Logging with Builder

 

Do you have any good example on using Builder and REXML you could share?

 

Thanks,

 

--Mark

  _____  

From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Jonathan Kohl
Sent: Wednesday, August 03, 2005 12:18 PM
To: wtr-general at rubyforge.org
Subject: [Wtr-general] XML Logging with Builder

 

I've found Builder to work well for writing out XML files, and REXML for
reading.

 

To use Builder with Watir, first you need to install gems and Builder.

 

The "Builder" project is here: http://rubyforge.org/projects/builder/

 

Installing it requires that RubyGems is installed:

http://docs.rubygems.org/read/chapter/3

 

The parent tag is written with opening and closing tags, and then the child
tags are written between them. 

 

I downloaded the Builder package (it has a ".gem" file extension), and saved
it to a directory. 

I downloaded the latest RubyGems release (zip file), unzipped it to a
temporary directory (ex. "gems_temp"), and then opened a DOS console. In the
console, I changed to the temporary directory (ex.

C:\gems_temp\rubygems-0.8.10\ ) and typed: "setup" at the command prompt and
hit enter. 

This installed Ruby Gems. 

 

I installed Builder by then entering this: "gem install builder" at the
command line.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20050803/dcdbd748/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xml_logging.zi~
Type: application/octet-stream
Size: 1289 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wtr-general/attachments/20050803/dcdbd748/attachment.obj 


More information about the Wtr-general mailing list