Just found this searching "ruby mysql" in Google... Looks like it is pretty easy to read... Good Luck!
http://www.rubywizard.net/ruby-mysql.html
----- Original Message -----
From: Pauli's List Subscriptions <[EMAIL PROTECTED]>
Date: Friday, July 21, 2006 10:52
Subject: [Wtr-general] Newbie - please point me at an appropriate demo
To: Wtr-general@rubyforge.org
> Hello,
>
> I've just downloaded Ruby and Watir. I've looked at
> WET's webpage.
>
> I have a table of parameters, which I'd like to use
> sequentially as input to the same test, logging the
> results as testing proceeds. WET can support this
> requirement, on the input side, from spreadsheets with
> it's 'datatable' feature. But my parameters are in a
> MySql database table, and I'd like to update the
> results there. Since Ruby provides DBI access to
> databases, I figure I would be better served if I just
> coded it myself in Ruby.
>
> However, I'm new to Ruby. I've found Ruby, DBI and
> WATIR documentation. What I'd dearly like to see is
> some sample code that executes a query from a table,
> iterates the results, processing a WATIR test for each
> row, and logs the results at each test completion.
>
> Is there such a sample anyone can point me at? Or,
> barring that - any pointers on how best to approach
> this?
>
> In any case, once I get it working, I think it would
> be a good sample to add to the Wiki - I'll try and add
> it there - once I'm done.
>
> Much thanks!
>
> Pauli
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
----- Original Message -----
From: Pauli's List Subscriptions <[EMAIL PROTECTED]>
Date: Friday, July 21, 2006 10:52
Subject: [Wtr-general] Newbie - please point me at an appropriate demo
To: Wtr-general@rubyforge.org
> Hello,
>
> I've just downloaded Ruby and Watir. I've looked at
> WET's webpage.
>
> I have a table of parameters, which I'd like to use
> sequentially as input to the same test, logging the
> results as testing proceeds. WET can support this
> requirement, on the input side, from spreadsheets with
> it's 'datatable' feature. But my parameters are in a
> MySql database table, and I'd like to update the
> results there. Since Ruby provides DBI access to
> databases, I figure I would be better served if I just
> coded it myself in Ruby.
>
> However, I'm new to Ruby. I've found Ruby, DBI and
> WATIR documentation. What I'd dearly like to see is
> some sample code that executes a query from a table,
> iterates the results, processing a WATIR test for each
> row, and logs the results at each test completion.
>
> Is there such a sample anyone can point me at? Or,
> barring that - any pointers on how best to approach
> this?
>
> In any case, once I get it working, I think it would
> be a good sample to add to the Wiki - I'll try and add
> it there - once I'm done.
>
> Much thanks!
>
> Pauli
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general