|
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cain, Mark
Do you have any good example on using Builder and REXML you could share?
Thanks,
--Mark From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Jonathan Kohl
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.
|
xml_logging.zi~
Description: Binary data
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
