I use this to debug my hand-witten yaml file. I run this in SCiTE so that I see all the results in the 'result frame'
----------------------------------------------------------
 
require 'yaml'
require 'pp'
 
#used to debug the yaml structure
 

tree = YAML::load( File.open('your_file_goes_here.yml'  ) )

#print the yaml file
puts "\nthis is the yaml file\n"
puts tree.to_yaml
 
#print the tree
puts "\nthis is the structue from this yaml\n\n"
pp tree
 
------------------------------------
cheer
Pierre
-----Original Message-----
From: Zeljko Filipin [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 01, 2006 12:11 PM
To: [email protected]
Subject: Re: [Wtr-general] Files as argument when running a suite

Try yaml, I am using it.

http://yaml4r.sourceforge.net/

On 4/1/06, Deepa Mallapareddy < [EMAIL PROTECTED]> wrote:
Hi all,
 
     I have to give a config file( file with variables like username and pwd and URL ) as an argument when running a suite.  and I should be able to use the variables in this entire test suite Im eunning.
 
Can you please suggest
 
Any input on this will be appreciated.
 
Thanks in Advance!
Deepa


Whatever you can do or dream you can, begin it. Boldness has genius, power, and magic in it.
--Johann Wolfgang von Goethe
 
------------------------------------------------------------------------
Deepa Mallapareddy,
4981,Catoctin Drive,
Apt#15,San Diego
CA - 92115


How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general




--
http://www.testingreflections.com/blog/3071
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to