[wtr-general] Re: Data driven test using .CSV file

2009-07-26 Thread takanobu watanabe
I use CSV like that below -import.rb-(csv import)- #! ruby -Ku #!/usr/bin/env ruby require 'csv' $KCODE = 'UTF8' #import company-data settings mhc = Array::new CSV.foreach(data/company_var.csv) do |row| company Kconv.kconv(row.join(','),Kconv::UTF8) end $company_code

[wtr-general] Re: Data driven test using .CSV file

2009-07-26 Thread takanobu watanabe
Sorry spread it. This is that CSV sample. -- ID,mnemonic,var-name,value 1,companycode,company_code,51236 2,companyname,company_name,Watir corp 3,company-zip-code,zip_code,111011 4,company-prefecture,select_prefecture,MA 5,company-prefecture for update,select_prefecture2,TT

[wtr-general] Re: Data driven test using .CSV file

2009-07-26 Thread takanobu watanabe
miscode mhc = Array::new | V company = Array::new On Mon, Jul 27, 2009 at 2:46 PM, takanobu watanaberreedd...@gmail.com wrote: I use CSV like that below -import.rb-(csv import)- #! ruby -Ku #!/usr/bin/env ruby require 'csv' $KCODE = 'UTF8' #import company-data settings    mhc =

[wtr-general] Re: Using watir can we check performance of an application

2009-07-08 Thread takanobu watanabe
Why don't you try to use Jmeter ? http://jakarta.apache.org/jmeter/ Hope it help. tknv/ On Thu, Jul 9, 2009 at 12:18 AM, marekjmarekj@gmail.com wrote: I use Watir IE with threads but at 25 browsers it's about max on a 2 gig memory machine. marekj Watirloo: Semantic Page Objects in

[wtr-general] Re: Wait for frame to load

2009-07-07 Thread takanobu watanabe
I did not try to wait frame loading. But Is that bad?,wait some keys for recognize frame loaded. Usually I made modules for waiting Ajax render when testing. otherwise watir return no object,wait forever,etc Hope it help. tknv/ On Wed, Jul 8, 2009 at 1:14 AM, Rayrayjh...@gmail.com wrote:

[wtr-general] Re: include? text with special characters

2009-07-07 Thread takanobu watanabe
Did you try to mention WIN32OLE.codepage value ? tknv/ On Wed, Jul 8, 2009 at 1:06 AM, Georgegeorge.sand...@gmail.com wrote: Hi Peace, I ran into the problem of including line breaks when checking text, and found that this worked for me: if ie.div(:id, Info).text.include? (First

[wtr-general] Re: Fwd: Exceute Java Script

2009-07-07 Thread takanobu watanabe
I did not read your code well. But, Browser location form can exec javascript. So I think can exec as like a ie.link(:url, your-javascript).click. I think Ray ways also possible. and if exec that way. ie.execute_script your-javascript ie.link(:url,ie.window.Result).click