FireWatir 1.6.2 unittests don't run

7 views
Skip to first unread message

Paul

unread,
Apr 5, 2009, 12:28:40 AM4/5/09
to Watir General
Hi there, I recently updated my Watir gem to 1.6.2 on a Windows XP
computer so I could play with FireWatir. I searched for the unittests
and found them on the C: drive at:

C:\ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\unittests

I tried running mozilla_all_tests.rb (in SciTE), but I get the
following errors:
----
>rubyw mozilla_all_tests.rb
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- unittests/setup/lib
(LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/
setup.rb:15
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from mozilla_all_tests.rb:3
>Exit code: 1
----

Suggestions? Please let me know. I'd like to get this running.

Thanks. Paul C.

Al Snow

unread,
Apr 5, 2009, 10:08:00 AM4/5/09
to watir-...@googlegroups.com
Paul,

Looks like you are running the unittests after getting the gem.
You can not run the unit tests from the gem. You must get the unit tests from GIT.
See the red box at http://wiki.openqa.org/display/WTR/Run+the+Watir+Unit+Tests

FYI,
Al Snow
Linkedin: http://www.linkedin.com/in/alsnow
Google Talk: jasnow1
Twitter: jasnow

> Date: Sat, 4 Apr 2009 21:28:40 -0700
> Subject: [wtr-general] FireWatir 1.6.2 unittests don't run
> From: teste...@gmail.com
> To: watir-...@googlegroups.com

Paul Carvalho

unread,
Apr 6, 2009, 12:11:01 AM4/6/09
to Watir General
Well that advice was fairly useless.

I wasted time on a wild goose chase through wiki pages until I got
around to downloading the original source. I copied the new FireWatir
folder and, of course, the unittests failed. Again. Same error as
above.

I read through the setup.rb file and eventually noticed the part of
the code where it says it's trying to load some libraries from the
"CommonWatir" folder.

That's all it took. I extracted that folder into [what I thought was]
the right place, and *poof* the unittests worked!

Could have saved me a lot of trouble by just saying that we need to
download and extract that folder.

Anyhoo, the tests ran, I got 3 errors (actually 1 Fail, 2 Errors), and
I suspect they have to do with my browser settings and add-ons. I can
deal with these.

Just thought I'd post this info back in case anyone else is curious
about how to get these tests to work after a gem install. Yes, it can
be done if you just get one folder and put it in the right place.

P.C.

Bret Pettichord

unread,
Apr 6, 2009, 11:27:23 AM4/6/09
to watir-...@googlegroups.com
Paul,

Could you update the wiki with this information please?

Bret
--
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Portland/Beaverton April 16-17
www.watircraft.com/training

Paul Carvalho

unread,
Apr 7, 2009, 1:14:47 AM4/7/09
to Watir General
I opened Jira ticket #WTR-301 to address the problem. I'll look over
the wiki information again and see what I can do to help clarify the
steps to get up and running until the problem is addressed in a future
gem release/install. The present wiki information seems to be really
geared towards developers, which is a big turn-off for me. ;)

Cheers. Paul C.

(BTW, I apologised to Al off-list for my prior post. I didn't mean to
harsh on him.. I was just frustrated at the time I spent trying to
resolve the problem when the only advice I could find on the wiki said
that I need to "Get the source code and unit tests from SVN." To me,
asking a tester to install development tools to retrieve development
source to make something work just seems like the wrong way to go, you
know? Ah well, such is life sometimes in the Open Source world. ;)
Keep moving forward.)

Moochie

unread,
Apr 9, 2009, 11:35:24 AM4/9/09
to Watir General
Paul,

Did you ever update the wiki? I'm not finding you direction sto get
passed this issue, and since I'm hitting the issue, and believe others
will. It would be nice to help other so the will not get a
frustrated.

Many thanks,

Darin

ash

unread,
Apr 29, 2009, 3:33:00 AM4/29/09
to Watir General
I could also use some help with this so if the wiki could be updated
that would be great.
Went to see where the commonwatir directory should be and discovered
that there is already a 'commonwatir-1.6.2' directory here; C:\Ruby\lib
\ruby\gems\1.8\gems\commonwatir-1.6.2.
Any help would be gratefully appreciated.

Cheers...Ash

amit onkar

unread,
Apr 29, 2009, 3:09:01 PM4/29/09
to watir-...@googlegroups.com
Use ruby mozilla_all_tests.rb...
--
Thanks and Regard

Amit Onkar
Mobile : 9423123385

satish

unread,
May 4, 2009, 2:43:11 PM5/4/09
to Watir General
Hi Paul,

Can you please let us know what you did you to get this Unit Tests to
work. I am having same problem too.
Can you please let me know where to create that folders and what to
copy etc.

Really appreate your help.

Thank you very much.
Satish.


On Apr 9, 11:35 am, Moochie <dduph...@redbrickhealth.com> wrote:
> Paul,
>
> Did you ever update the wiki?  I'm not finding you direction sto get
> passed this issue, and since I'm hitting the issue, and believe others
> will.  It would be nice to help other so the will not get a
> frustrated.
>
> Many thanks,
>
> Darin
>
> On Apr 7, 12:14 am, Paul Carvalho <tester.p...@gmail.com> wrote:
>
>
>
> > I opened Jira ticket #WTR-301 to address the problem.  I'll look over
> > the wiki information again and see what I can do to help clarify the
> > steps to get up and running until the problem is addressed in a future
> > gem release/install.  The present wiki information seems to be really
> > geared towards developers, which is a big turn-off for me. ;)
>
> > Cheers.  Paul C.
>
> > (BTW, I apologised to Al off-list for my prior post.  I didn't mean to
> > harsh on him.. I was just frustrated at the time I spent trying to
> > resolve the problem when the only advice I could find on the wiki said
> > that I need to "Get the source code and unit tests from SVN."  To me,
> > asking a tester to install development tools to retrieve development
> > source to make something work just seems like the wrong way to go, you
> > know?  Ah well,suchis life sometimes in the Open Source world. ;)
> > Keep moving forward.)
>
> > On Apr 6, 11:27 am, Bret Pettichord <b...@pettichord.com> wrote:
>
> > > Paul,
>
> > > Could you update the wiki with this information please?
>
> > > Bret- Hide quoted text -
>
> - Show quoted text -

Andrew

unread,
Jun 16, 2009, 1:57:45 PM6/16/09
to Watir General
I got past this error, but not all of the tests appear to be working
yet. After getting the latest code from git, I copied the watir
\commonwatir\unittests\setup folder to Ruby\lib\ruby\gems\1.8\gems
\watir-1.6.2\unittests. However, core_tests.rb won't run any tests,
but window_test.rb will run fine.
Reply all
Reply to author
Forward
0 new messages