Hi Seab,
 
thanks a lot for those links ... seem to be really helpfull
 
Thanks!
Deepa


Sean Gallagher <[EMAIL PROTECTED]> wrote:
Deepa,
Check out YAML --it's already included with Ruby. (and works really well!)

More info here
http://yaml4r.sourceforge.net/

including a good cookbook.
http://yaml4r.sourceforge.net/cookbook/

I am using YAML to solve a similar problem.

Good luck!

Sean

--
http://testmethods.net/



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Deepa
> Mallapareddy
> Sent: Tuesday, April 04, 2006 5:22 PM
> To: [email protected]
> Subject: Re: [Wtr-general] Files as argument when running a suite
>
> Thanks a lot Bret ...
>
> This did not work
>
>
> My problem was to :
> Have a config file where in the user specifies few Global
> Variables like Username and pwd and the path which he wants
> to be tested
>
> and My requirement was ....to give the Config file as an
> argument coz User might want to test on different Config files
>
> but Require 'config.rb' dint work
>
>
> I have found out a work arround I have stored the variables
> in a file and then started reading them line by line and
> using them in my file ....
>
> ie
>
> Alltest.rb config.txt
>
> instead of writing config.rb
>
> Thought of sharing. I dont know whether it is appropriate way
> of doing but works
>
> Bret Pettichord <[EMAIL PROTECTED]>wrote:
>
> require 'config.rb'
>
> If that doesn't work, then you'll need to explain more
> what you want to do.
>
> Bret
>
>
> On 3/31/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.
> d.yahoo.com/evt=39663/*http://voice.yahoo.com>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>
>
> 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
>
> ________________________________
>
> Yahoo! Messenger with Voice.
> d.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com> PC-to-> Phone calls
for ridiculously low rates.
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general



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


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to