Hi everyone, I’m new.
I’ve tried searching the mail archives, but I come up with nothing. The user guide simply says “all tests should pass” and gives no information about what to do in the event they do *not* pass.
I’ve installed ruby (via the one-click installer) and used gem to install watir along with its dependencies (win32-process-0.5.5, windows-pr-0.7.4, windows-api-0.2.0, and I chose win32-api-1.0.4-mswin32 over the 1.0.5 version). When I run the unit tests using all_tests.rb, I get 9 failures and 282 errors.
A lot of the errors seem to be Win32OLERuntimeErrors. Others give me the message "Requires REXML version of at least 3.1.4. Actual: 3.1.2.1.” The rest appear to be legitimate errors regarding unexpected argument types and such.
Is there a way to upgrade REXML? Is it a gem, because gem didn’t find it? What can I do about the Win32OLERuntimeErrors? I would love to use watir in my testing, but these problems have been show stoppers for even exploring the possibility.
John Ingle
Note that I was using 1.8.2-15 for the showModalDialogue support. I’ll try upgrading to 1.8.5-24 and see if things get any better.
Okay, some more information. After uninstalling Ruby 1.8.2-15 and installing 1.8.5-24 instead, I installed watir again. This time, I used the –t switch to test before installing. Gem told me that there were 20 failures and 0 errors, did I want to keep the gem? I said no initially. Then I realized that I couldn’t get any good troubleshooting data from no installation. So, I went ahead and tried to install watir again via gem, this time without the –t switch (after all, I just ran that and got 20 errors right?). After it finished installing, I went to the watir\unittests directory and manually executed all_tests.rb. This time I got 38 failures and 6 errors. Is this not the exact series of tests that the –t switch executed? Why would I get different failure and error rates over two successive executions? I didn’t install anything else in between. I simply told gem ‘no’ then changed my mind and told it to install again…
Thank you very much Mr. Filipin. I’ll try the updated user guide out. I certainly vote to remove the old one, if I found it confusing, I dare say others will too. J
From:
watir-...@googlegroups.com [mailto:watir-...@googlegroups.com] On
Behalf Of Željko Filipin
Sent: Monday, January 14, 2008 2:17 PM
To: watir-...@googlegroups.com
Subject: [wtr-general] Re: watir all_tests.rb failures and errors wtih
REXML and Win32OLERuntimeError
Hi John,
Using core_test.rb gave me 20 errors, which is in line with what gem told me it had. So, now my only question would be how to go about solving these errors? Are they show-stoppers? Most of them are expected value errors (caused by Assert statements I presume). It seems these errors would be caused by badly written tests. Are they indicative of a mis-configured installation or bugs in watir?
Okay, I guess that turned into three questions. J
From: watir-...@googlegroups.com
[mailto:watir-...@googlegroups.com] On Behalf Of Željko Filipin
Sent: Monday, January 14, 2008 2:40 PM
To: watir-...@googlegroups.com
Subject: [wtr-general] Re: watir all_tests.rb failures and errors wtih
REXML and Win32OLERuntimeError
2008/1/14 John Ingle <john....@decisionsource.com>:
Okay, all problems solved. The solution is a quite embarrassing, but it worked. All I had to do was a simple ‘gem update’ and then all core tests passed without error.
So, in hope of saving someone else the pain of looking and not finding answers, I updated the tutorial on the wiki. After the line stating that all tests should pass, I added a simple recommendation to try a ‘gem update’. If this is wrong, let me know and I’ll remove it, otherwise I think it needs to be there for the sake of those to whom such a move is non-obvious for whatever reason.
John Ingle
Where did you read that all the tests should pass? There have always
been some failing tests, so this should never have been said.
We do have a set of core tests that pass reliably. My sense is that the
errors you are seeing are not show-stoppers. If you want to use Watir's
xpath support, then you will need to install a newer version of REXML.
This is not a gem.
If there are other test failures that you are concerned about, then
please post them here and we can address them.
Bret
John Ingle wrote:
>
> Okay, some more information. After uninstalling Ruby 1.8.2-15 and
> installing 1.8.5-24 instead, I installed watir again. This time, I
> used the –t switch to test before installing. Gem told me that there
> were 20 failures and 0 errors, did I want to keep the gem? I said no
> initially. Then I realized that I couldn’t get any good
> troubleshooting data from no installation. So, I went ahead and tried
> to install watir again via gem, this time without the –t switch (after
> all, I just ran that and got 20 errors right?). After it finished
> installing, I went to the watir\unittests directory and manually
> executed all_tests.rb. This time I got 38 failures and 6 errors. Is
> this not the exact series of tests that the –t switch executed? Why
> would I get different failure and error rates over two successive
> executions? I didn’t install anything else in between. I simply told
> gem ‘no’ then changed my mind and told it to install again…
>
> *From:* watir-...@googlegroups.com
> [mailto:watir-...@googlegroups.com] *On Behalf Of *John Ingle
> *Sent:* Monday, January 14, 2008 12:59 PM
> *To:* watir-...@googlegroups.com
> *Subject:* [wtr-general] Re: watir all_tests.rb failures and errors
> wtih REXML and Win32OLERuntimeError
>
> Note that I was using 1.8.2-15 for the showModalDialogue support. I’ll
> try upgrading to 1.8.5-24 and see if things get any better.
>
> *From:* watir-...@googlegroups.com
> [mailto:watir-...@googlegroups.com] *On Behalf Of *John Ingle
> *Sent:* Monday, January 14, 2008 11:23 AM
> *To:* watir-...@googlegroups.com
> *Subject:* [wtr-general] watir all_tests.rb failures and errors wtih
> REXML and Win32OLERuntimeError
>
> Hi everyone, I’m new.
>
> I’ve tried searching the mail archives, but I come up with nothing.
> The user guide simply says “all tests should pass” and gives no
> information about what to do in the event they do **not** pass.
>
> I’ve installed ruby (via the one-click installer) and used gem to
> install watir along with its dependencies (win32-process-0.5.5,
> windows-pr-0.7.4, windows-api-0.2.0, and I chose
> win32-api-1.0.4-mswin32 over the 1.0.5 version). When I run the unit
> tests using all_tests.rb, I get 9 failures and 282 errors.
>
> A lot of the errors seem to be Win32OLERuntimeErrors. Others give me
> the message "Requires REXML version of at least 3.1.4. Actual:
> 3.1.2.1.” The rest appear to be legitimate errors regarding unexpected
> argument types and such.
>
> Is there a way to upgrade REXML? Is it a gem, because gem didn’t find
> it? What can I do about the Win32OLERuntimeErrors? I would love to use
> watir in my testing, but these problems have been show stoppers for
> even exploring the possibility.
>
> John Ingle
>
>
>
> >
--
Bret Pettichord
Lead Developer, Watir, http://wtr.rubyforge.org
Blog, http://www.io.com/~wazmo/blog
Bret
Bret