Thanks to all. I used this one below (works great)  but I'll check out the 
other solutions when I have time. In about 2002 I was sick of using Rational 
Robot datapools, had a lot of boring, repititious stuff to add over & over via 
Robot in a few screens, and found something similar to this whole concept in a 
Rational group contributed by Carl Nagle. I think it was the first yahoo group, 
not the one where you have two-tiered  input files .... ok I'm off topic. The 
point is a little test automation can turn a horribly boring testing task into 
something reasonably good & productive.
Now watir is really slick- can't wait for the next cool thing I can do with it. 
Also belated  thanks Carl if you are out there.
Mike Tierney
####

Try this:

dataArray= Array.new
n = 0
File.new("data.csv").each_line do |line|
 line.chomp!
 dataArray[n] = line.split(',')
 n += 1
end

i=0
while(i < dataArray.length)
# go to address query start

 puts "First: #{dataArray[i][0]}"
 puts "Second: #{dataArray[i][1]}"
 puts "Third: #{dataArray[i][2]}"

 sleep 2

 i = i + 1
 sleep 2

end


<<winmail.dat>>

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

Reply via email to