[Wtr-general] Excel Or Text File?

Charley Baker charley.baker at gmail.com
Tue Dec 5 10:53:13 EST 2006


Here's an excellent page on scripting Excel through Ruby:
http://wiki.rubygarden.org/Ruby/page/show/ScriptingExcel
You could have a column with your constants and the next column over be the
values and iterate through the rows assigning those to a constant Hash or
something of the sort. There are a variety of ways to set up your constants,
you really shouldn't be losing any flexibility, it might just be a matter of
reorganizing.

-Charley

On 12/5/06, Fletch <forum-watir-users at openqa.org> wrote:
>
> Hello Again,
>
> I have currently got a WATIR Script running, and use a text file to hold
> all the constants.
> However I have had a request to change this text file to a Spreadsheet -
> does it make sense to use a spreadsheet to hold all the constants? From what
> I have seen, I would have to call the cell directly, rather than being able
> to give the field a proper and relevant name.
>
> Thanks for any advice you can give me,
>
> PMF.
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=5619&messageID=15669#15669
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061205/2b044d7b/attachment.html 


More information about the Wtr-general mailing list