Hi

 

You might find this script useful for reading from either a csv file or an excel spreadsheet

 

Thanks

 

Kingsley

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sathish Chandrasekaran
Sent: 25 August 2005 06:22
To: [email protected]
Cc: Nishita Acharya
Subject: [Wtr-general] WATIR Tools queries

 

 

Hi

 

       iam using your  tool for automating a java application.

 

      I'd like to know whether the following things are possible, and if yes then how?

 

1> I have a form with 3 text field and a select box( i.e. i choose an option from a combo box ,click the ">>" , and the chosen option moves to the adjacent combo box).

     I need to get all this data from a file i.e, i populate a excel sheet ,transfer it into a csv and then automate my form by filling in around 100 records 1 after the other.

     if i read data from a file for a select box the change is not reflected  and the application just stops .

     how do i do this?

2> If i need to run 10 test cases then how do i write the ruby script ? shoud i write the test cases linearly 1 after the other? or should i write different cases in diff ruby 

     progs?

3> How to include files into a ruby prog. for eg: in c programming,  i just have to write #include.....how can the same effect be achieved in ruby?

 

Regards,

Nishita Acharya
India

Attachment: datahandler.rb
Description: Binary data

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

Reply via email to