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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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.
>
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?
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
> 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
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
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
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
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
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!
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
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
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
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
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
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
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/
[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
[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?
__
33 matches
Mail list logo