Re: [Wtr-general] Problems with Test::Unit in Eclipse

2007-06-25 Thread Walter Kruse
I use this: $: << File.expand_path(File.dirname(__FILE__)) For exactly that problem From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jim_matt Sent: 26 June 2007 06:41 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Problems with Test::Un

Re: [Wtr-general] test/unit argument error

2007-06-25 Thread Manish Sapariya
Bret Pettichord wrote: > Depending on what the rest of your code looks like, this might work, though: > > require 'watir' > require 'test/unit' > > class Login < Test::Unit::TestCase > >def setup > @site=$site > @user_name=$user_name > @passwd=$passwd > end > end

Re: [Wtr-general] A novel use of Watir

2007-06-25 Thread Bret Pettichord
Manish Sapariya wrote: > So here we need Apache httpclient, NekoHTML and some Ruby component. > Does this Ruby component expose IEBrowser? > Not as i understand it. They created an emulator instead. They did not use IE. ___ Wtr-general mailing list W

[Wtr-general] Problems with Test::Unit in Eclipse

2007-06-25 Thread jim_matt
I realize this is more of an Eclipse problem than a Watir problem, but I know some of you use Eclipse and I though maybe you have figured out the solution already. The problem is that I could not get Test Unit Runner in Eclipse to work for my Ruby tests. It appears the problem is that the dire

Re: [Wtr-general] test/unit argument error

2007-06-25 Thread Bret Pettichord
maung aung wrote: > Hi, > When i wrote the following statement and run ruby, i got this message: > c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:64:in `initialize': wrong number > of arguments (1 for 3) ArgumentError). When i run without test/unit case, it > run just fine and no complaints. Could

Re: [Wtr-general] Ruby/Watir on Vista : watir-1.5.1.1192 and windows-pr-0.6.2 : SetConsoleCommandHistoryMode : RuntimeError

2007-06-25 Thread Bret Pettichord
Michael Kernaghan wrote: > > I have no trouble on Vista with Ruby and Watir 1.4.1. However, in my > efforts to do UI with modal Dialog I need to use recent Watir Gem. I > installed Ruby and then the latest Gem according to the instructions. > > I get these errors: > > c:/ruby/lib/ruby/gems/1.8/ge

Re: [Wtr-general] Hiding IE

2007-06-25 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: > Bret Pettichord wrote: > >> Lennart Borgman (gmail) wrote: >> >>> [EMAIL PROTECTED] wrote: >>> >>> Yes. Either pass -b to watir as a command line option, or set $HIDE_IE = true before calling Watir::IE.new. >>> Th

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-25 Thread Bret Pettichord
Tiffany Fodor wrote: > Am I missing something? Any help would be appreciated! > You'll have to share more of your code with us for us to help. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-gener

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Bret Pettichord
Ah, good call. Another way to cure it might be to disable buffering >> for $stdout completely, with: >> >> $stdout.sync = true >> > > > Thanks. I looked for the syntax for that. I saw something like > >IO#sync = true > > That did not seem to work. Has it changed? Actually IO#sync means t

Re: [Wtr-general] test/unit argument error

2007-06-25 Thread Tiffany Fodor
I'm not sure if you just had a typo when you copied your code, but you're missing an open parenthesis when you call your Login class. myLogin1 = Login.new"www.testing.com", "tester", "pwd") ___ Wtr-general mailing list Wtr-general@rubyforge.org http://r

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Lennart Borgman (gmail)
Bill Agee wrote: >> I think I understand what is happening now. It is buffering. I did not >> notice, since I let the program ran for long time in a loop and >> interrupted it later (with Control-C). >> >> After some googling I inserted >> >> STDOUT.flush >> >> and this cured the problem. > > Ah

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Bill Agee
> I think I understand what is happening now. It is buffering. I did not > notice, since I let the program ran for long time in a loop and > interrupted it later (with Control-C). > > After some googling I inserted > > STDOUT.flush > > and this cured the problem. Ah, good call. Another way to c

Re: [Wtr-general] Using Excel

2007-06-25 Thread Tiffany Fodor
Thanks so much David! I've been using your XLS class for lots of data-driven tests - I really appreciate all the work you've put into it! It's certainly made my life easier. -Tiffany ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyfo

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Lennart Borgman (gmail)
Lennart Borgman (gmail) wrote: > Bill Agee wrote: >>> watir-check.rb 2>&1 | tee watir-check.tmp >>> >>> I am using Windows XP so this is run in cmd.exe, but it normally works >>> with this syntax. (tee.exe is from gnuwin32.) >>> >>> This did not work, the .tmp file is created but is empty and I s

Re: [Wtr-general] Using Excel

2007-06-25 Thread Brown, David
Tiffany, I've generated r-doc documentation for the XLS class and uploaded it to the watir site (http://wiki.openqa.org/display/WTR/Excel+interface+class). It includes some short comments on the methods used to write to excel (also listed below). There should be examples of using each of the meth

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Lennart Borgman (gmail)
Bill Agee wrote: >> watir-check.rb 2>&1 | tee watir-check.tmp >> >> I am using Windows XP so this is run in cmd.exe, but it normally works >> with this syntax. (tee.exe is from gnuwin32.) >> >> This did not work, the .tmp file is created but is empty and I see >> nothing in the console window. >

[Wtr-general] test/unit argument error

2007-06-25 Thread maung aung
Hi, When i wrote the following statement and run ruby, i got this message: c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:64:in `initialize': wrong number of arguments (1 for 3) ArgumentError). When i run without test/unit case, it run just fine and no complaints. Could anyone help me with this?

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Lennart Borgman (gmail)
Bill Agee wrote: >> watir-check.rb 2>&1 | tee watir-check.tmp >> >> I am using Windows XP so this is run in cmd.exe, but it normally works >> with this syntax. (tee.exe is from gnuwin32.) >> >> This did not work, the .tmp file is created but is empty and I see >> nothing in the console window. H

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Bill Agee
> watir-check.rb 2>&1 | tee watir-check.tmp > > I am using Windows XP so this is run in cmd.exe, but it normally works > with this syntax. (tee.exe is from gnuwin32.) > > This did not work, the .tmp file is created but is empty and I see > nothing in the console window. Does running the command

[Wtr-general] Ruby/Watir on Vista : watir-1.5.1.1192 and windows-pr-0.6.2 : SetConsoleCommandHistoryMode : RuntimeError

2007-06-25 Thread Michael Kernaghan
I have no trouble on Vista with Ruby and Watir 1.4.1. However, in my efforts to do UI with modal Dialog I need to use recent Watir Gem. I installed Ruby and then the latest Gem according to the instructions. I get these errors: c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/con

[Wtr-general] UnknownObject Exception when running test cases

2007-06-25 Thread Tiffany Fodor
Hi! I'm creating a test harness that will first collect all of the data necessary to run the test cases then then execute the test cases. Here's the code that is calling the test cases: class TestScript < Test::Unit::TestCase def test_login login($producerName, $produc

Re: [Wtr-general] Hiding IE

2007-06-25 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: > [EMAIL PROTECTED] wrote: > >> Yes. Either pass -b to watir as a command line option, or set >> $HIDE_IE = true before calling Watir::IE.new. >> > > Thanks. That worked nicely. I'm surprised to hear that. Those mechanisms are just automatic ways of doing wh

Re: [Wtr-general] Hiding IE

2007-06-25 Thread Lennart Borgman (gmail)
Bret Pettichord wrote: > Lennart Borgman (gmail) wrote: >> [EMAIL PROTECTED] wrote: >> >>> Yes. Either pass -b to watir as a command line option, or set >>> $HIDE_IE = true before calling Watir::IE.new. >>> >> Thanks. That worked nicely. > I'm surprised to hear that. Those mechanisms are j

Re: [Wtr-general] Select the first item in a list

2007-06-25 Thread Wingate, Chris
You could also use $ie.select_list(:name, "list2").select(/.*/) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tiffany Fodor Sent: Friday, June 22, 2007 1:27 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] Select the first item in a list Hi all!

Re: [Wtr-general] Using Excel

2007-06-25 Thread Tiffany Fodor
I've been using the XLS interface class to get data for data-driven tests, but now I'd like to write data out to an Excel spreadsheet. Does anyone know if there is a list of the available methods for the XLS interface class? The documentation at http://wiki.openqa.org/display/WTR/Excel+interfa

[Wtr-general] Redirection of standard output

2007-06-25 Thread Lennart Borgman (gmail)
This is really a ruby question, but it is probably of interest to people doing simple testing so I try asking it here. I just wrote my first testing script with Watir. I want to test a web server performance so I want the script to run for long time, saving output to a log file. So after testin

[Wtr-general] Form Validation

2007-06-25 Thread imran
Hi, All I have to validate a form in the following way. 1- Validate Field length. 2- Validate Field Type (Character or Numeric or Alpha Numeric) How can i validate the form in that way. Thanks to all. Kind Regards, M.Imran ___ Wtr-general mailing lis

Re: [Wtr-general] Using Excel

2007-06-25 Thread Adam Reed
That page has been down for me for a while, so just in case, here's another link that someone posted last week: http://wiki.openqa.org/display/WTR/Excel+interface+class Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of san Sent: Monday, June 25, 2007

Re: [Wtr-general] Using Excel

2007-06-25 Thread san
May be This ... http://rubygarden.org/Ruby/page/show/ScriptingExcel ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Regarding Data Driven

2007-06-25 Thread san
This May Help... http://rubygarden.org/Ruby/page/show/ScriptingExcel ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Regarding Data Driven

2007-06-25 Thread murali
Hi can any one tel me how to create parameterization using "Watir". i want parameterization using Excel sheet,Flatfile like Note pad and accessing Data base. THanx in advance ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/

Re: [Wtr-general] Hiding IE

2007-06-25 Thread Lennart Borgman (gmail)
[EMAIL PROTECTED] wrote: > Yes. Either pass -b to watir as a command line option, or set > $HIDE_IE = true before calling Watir::IE.new. Thanks. That worked nicely. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/list

Re: [Wtr-general] Where is the FAQ?

2007-06-25 Thread Lennart Borgman (gmail)
[EMAIL PROTECTED] wrote: > As far as I can tell, http://wtr.rubyforge.org/ isn't updated much > anymore. Try this: > > http://wiki.openqa.org/display/WTR/FAQ Thanks, that makes things easier. Maybe someone who has access to http://wtr.rubyforge.org/ could change the URL to this? __