|
I like faster cvs better http://rubyforge.org/projects/fastercsv/
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..')
if $0 == __FILE__ require 'setup' require 'faster_csv' class TC_Search < Test::Unit::TestCase def init() @PATH1 =
File.join(File.dirname(__FILE__), "completedby.csv") puts "Reading in
CompletedBy data..." $completedBy = [] FasterCSV.foreach(@PATH1) do
|row| $completedBy.push
row end end … int = rand($completedBy.length) $ie.frame(:index, 4).text_field(:name,
"DateBy").set($completedBy[int][0]) $ie.button(“Submit”).click int = nil … End This script snippet loads an array from a csv file and then
randomly grabs a value from that array and loads it in a search field. Hope this helps, --Mark From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Chintakrindi Meghanath Hi We
are using watir for our web application. We
want to use Data Driven methodolgy using xls or CSV ie taking data from the
excel or csv file. Thanks Meghanath |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
