On 2/7/06, Roy Sin <[EMAIL PROTECTED]> wrote:
2) If a PC has Ruby/Watir installed but don't have eclipseide ,is there a way to make my scripts into an executableand the person running the scripts could just double clickon the fileFirst of all, they can just double click the
test.rb file and it wil
Thomas, i think there is a simpler way.On 2/7/06, Thomas Healy <[EMAIL PROTECTED]> wrote:
begin assert($ie.contains_text("User profile has been
updated.") ) $logger.log("###USER UPDATE TEST PASSED'
") $logger.log_results("test_b_add_new_user", "User profile
has been updated.", "User pr
Have you used Rspec with Watir? I'd be curious to see how this would be done.BretOn 2/7/06, Pierre Garigue <
[EMAIL PROTECTED]> wrote:http://rspec.rubyforge.org/
while we are on the subject, at the last Toronto Ruby user's groupwe started talking about using Rspec to develop tests.This could be of
Replies in line...On 2/7/06, Paul Carvalho <[EMAIL PROTECTED]> wrote:
Okay, how that works is voodoo, man.
I understand what you mean by clarity (compared to my
not-nil-if-block), but it's unintuitive to me how the next line is
magically attached to the "assert" command without some kind of "if"
s
Marco,I think i may know what the problem is.Please tell us whether this reliably fixes it: @ie = IE.new @ie.goto("http://www.google.com") # any site will do
@ie.bring_to_front()BretOn 2/7/06, Neri, Marco <[EMAIL PROTECTED]> wrote:
Has anyone else run into this error? ( whats worse is
I often get private requests from people who want to know how they can contribute to Watir.Here is a great list. Any interest? Send me the corrected files and i'll be happy to give you credit and update the examples.
BretOn 2/2/06, Paul Carvalho <[EMAIL PROTECTED]> wrote:
I've spent the day running
Has anyone else run into this error? ( whats worse is it's intermittent
).
I've tried uninstall/reinstall of ruby and watir.
>From within my test script I start an ie browser window as per normal
@ie = IE.new
@ie.bring_to_front()
A new browser window is popped up. And that's as fa
I think watir can currently do something like
ie.text_field(:id, 'foo').dragContentsTo( :id, 'foo2')
I may have a need to do some testing on more advanced drag drop so I will take
a look at doing this if i get a chance.
I guess the demo here http://demo.script.aculo.us/shop is the sort of thing
> 1) Is there a way to package my test scripts to run on a
> machine that don't have Ruby/Watir installed.
>
> 2) If a PC has Ruby/Watir installed but don't have eclipse
> ide ,is there a way to make my scripts into an executable
> and the person running the scripts could just double click
> on the
I use Eclipse with RDT plugin to write my Test Scripts and
I run them from my ide from my machine. But I want to be
able to have someone else run the scripts from a different
PC
1) Is there a way to package my test scripts to run on a
machine that don't have Ruby/Watir installed.
2) If a PC has R
http://rspec.rubyforge.org/
while we are on the subject, at the last Toronto Ruby user's group
we started talking about using Rspec to develop tests.
This could be of interest to others. Have a look at the tutorial.
Cheers
Pierre
___
Wtr-general ma
On 2/7/06, Thomas Healy <[EMAIL PROTECTED]> wrote:
> Hugh,
>
> I am a nubie and I understand what you are saying that less is more...
> However, Readability of code is important for me...
You should really learn test/unit-- for readability. It allows you to
easily build your own readable assertio
Hugh,
I am a nubie and I understand what you are saying that less is more...
However, Readability of code is important for me... Especially when
explaining the code to others in the office and having others in the
office follow the code six months from now...
While you are technically correct, le
On Tue, 7 Feb 2006, Thomas Healy wrote:
> Hugh,
>
> I will stick to mine... I am a nubie and I understood very little of
> what you just wrote... I am sure as I go along and get more skilled...
> It will start to make sense... But for the new guy (me)... Readability &
> understandability is impor
Hugh,
I will stick to mine... I am a nubie and I understood very little of
what you just wrote... I am sure as I go along and get more skilled...
It will start to make sense... But for the new guy (me)... Readability &
understandability is important...
Thanks,
Thom
-Original Message-
F
On Tue, 7 Feb 2006, Thomas Healy wrote:
> Paul,
>
> It seems that you need a fail case for when it fails, I have run into
> the same thing yesterday... when I used the "rescue => e" it seems to
> work... in my case... the script that works for me is...
>
> begin
>assert($ie.contains_text("
Sweet! Thanks, Thomas. That did the trick. The last
line in my script now works as expected when the assertion fails.
Cheers. Paul.
On 07/02/06, Thomas Healy <[EMAIL PROTECTED]> wrote:
Paul,
It seems that you need a fail case for when it fails,
I have run into the same thing yesterday..
Paul,
It seems that you need a fail case for when it fails,
I have run into the same thing yesterday... when I used the "rescue => e" it
seems to work... in my case... the script that works for me
is...
begin assert($ie.contains_text("User profile has been
updated.") ) $logger.log("#
Okay, how that works is voodoo, man.
I understand what you mean by clarity (compared to my
not-nil-if-block), but it's unintuitive to me how the next line is
magically attached to the "assert" command without some kind of "if"
statement.
Can you describe how this line coherence works? I noticed
This would be clearer and has the same results: assert($ie.contains_text("Please try again")) puts "TEST PASSED. Found test string: 'Please try again.' "Bret
On 2/7/06, Paul Carvalho <[EMAIL PROTECTED]> wrote:
if ! assert($ie.contains_text("Please try again"))
puts "TEST PASSED. Found
Thank you very much, Chris! It works and the document is helpful too.
Is there any document on 'Schedule Watir Script to run on the server after the web pages generated'? I need some info on this topic too.
Thanks,
Rose
Chris McMahon <[EMAIL PROTECTED]>
Chris McMahon <[EMAIL PROTE
On 06/02/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:> > >Is it even possible to combine the assertand if statements in this way?> No.>
Hi Bret, I didn't want to give up on this and I managed to get part of it work.
According to the Ruby Cheat Sheet's "Truth and falsehood" section, "In
Ruby, a
Hi...
You *really* need to read more about ODBC:
http://www.ch-werner.de/rubyodbc/ . Right now. I mean it.
> Here is my testing code for getting database values, and it doesn't work:
> require 'DB2'
> conn = dsnbat.logon("username","password")
> cursor = conn.open
> cursor.parse("myquery he
I had the same problem not so long ago :)
2006/2/7, jayashree <[EMAIL PROTECTED]>:
> Hi Zeljko Filipin,
>
> It's working fine.
>
> Thank you,
> Jayashree.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Zeljko Filipin
> Sent: Tuesday, February 07, 200
Hi Zeljko Filipin,
It's working fine.
Thank you,
Jayashree.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Zeljko Filipin
Sent: Tuesday, February 07, 2006 1:45 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] assert_equal problem in the module
Try http://www.fiddlertool.com/fiddler/
Zeljko
2006/2/6, Paul Carvalho <[EMAIL PROTECTED]>:
> BTW, does anyone know a tool that will allow me to see what info IEpasses
> from one page to another? SpySmith is nice for viewing staticinformation on
> a page, but not for showing me what's being pa
require 'test/unit/assertions'
include Test::Unit::Assertions
2006/2/7, jayashree <[EMAIL PROTECTED]>:
> Hi,
> I am new to watir and ruby.
> There are two ruby files.In the main ruby file I am using assert_equal.It's
> working fine.There is another ruby file which contains module.I want to
> write
27 matches
Mail list logo