Re: [Wtr-general] File location installing 1.4.1 Gem

2007-02-07 Thread Bret Pettichord
[EMAIL PROTECTED] wrote:
 Ruby is installed at c:\apps.  I then place the watir 1.4.1 gem in
 c:\apps\ruby.  Using a command prompt I navigate to c:\apps\ruby then type
 gem install watir 1.4.1.
   
It doesn't matter what your current directory is when you type the command.

What matters is what version of ruby the gem command is using -- that is 
the one that is used and will be updated with the contents of the new gem.
 I do not know much about how gems are generated or installed, but my
 observation is that when installing the watir 1.4.1 gem the html files are
 placed in c:/Program Files/Watir/unittests/html/.
   
That is where the one-click installer puts them.

Gems should be installed in

C:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] File location installing 1.4.1 Gem

2007-02-07 Thread Bret Pettichord
[EMAIL PROTECTED] wrote:
 Here is where I get more confused.  The unit tests all_tests_concurrent.rb
 fails.  The errors seem to occur on the checkbox_test.rb and
 buttons_test.rb.  If I execute button_tests.rb and checkbox_test,rb in
 isolation those tests works perfectly.   Has anyone resolved the issues
 regarding all_tests_concurrent.rb?  The errors are below.
   
These comments are included in all_tests_concurrent.rb:

# This is an UNFINISHED attempt to run the unit tests currently.
# The work on the harness is complete.
# The problem remaining is that the tests are not thread-safe.
# It's an open question whether getting this to work would actually save 
any execution time.

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] File location installing 1.4.1 Gem

2007-02-06 Thread carl . l . shaulis




Good evening:

I have been experimenting with installing and uninstalling watir gems.  The
objective is to find the steps that permit an efficient installation of a
watir gem and have all of the unit tests pass without any troubleshooting.
I have been executing these unit test suites:  all_tests.rb, core_tests.rb,
and all_tests_concurrent.rb.

Ruby is installed at c:\apps.  I then place the watir 1.4.1 gem in
c:\apps\ruby.  Using a command prompt I navigate to c:\apps\ruby then type
gem install watir 1.4.1.

I do not know much about how gems are generated or installed, but my
observation is that when installing the watir 1.4.1 gem the html files are
placed in c:/Program Files/Watir/unittests/html/.

None of the test suites pass after the installation.  The failure is that
JavascriptClick.htm can not be found.  I found that if I make a change to
setup.rb and add an extra path variable:

$htmlRoot =  file://#{$myDir}/html/
 $javascriptHtml = c:/Program Files/Watir/unittests/html/

And edit jscript_test.rb to use the new variable:

@@javascript_page   = $javascriptHtml  + 'JavascriptClick.htm'

With these changes both all_tests.rb and core_tests.rb pass without error.

Based on some earlier posts to the forum it appears that ruby has some
trouble when spaces are in folder names.  My first question is why does
installing the gem place the html files used by the unit tests in the path
c:/Program Files...?  How do we change this behavior?

Here is where I get more confused.  The unit tests all_tests_concurrent.rb
fails.  The errors seem to occur on the checkbox_test.rb and
buttons_test.rb.  If I execute button_tests.rb and checkbox_test,rb in
isolation those tests works perfectly.   Has anyone resolved the issues
regarding all_tests_concurrent.rb?  The errors are below.

Any feedback about how I am installing the watir gem and ways to fix
all_tests_concurrent.rb would be most appreciated.

Thanks in advance for your thoughts.

Carl

*

all_tests_concurrent.rb

TC_CheckBox
TC_CheckBox
TC_Buttons
Loaded suite super suite
Started
EFFEEEFEEEFEEF..
Finished in 4.417 seconds.

  1) Error:
test_Button_Enabled(TC_Buttons):
Watir::Exception::UnknownObjectException: Unable to locate object, using
caption and Click Me
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/../watir.rb:1928:in `assert_exists'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/../watir.rb:2062:in `enabled?'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/../unittests/buttons_test.rb:115:in `test_Button_Enabled'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:24:in `run'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `initialize'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `new'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `run'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:22:in `each'
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:22:in `run'

  2) Failure:
test_CheckBox_Exists(TC_CheckBox)
[C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/../unittests/checkbox_test.rb:50:in `test_CheckBox_Exists'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:24:in `run'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `initialize'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `new'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `run'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:22:in `each'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:22:in `run']:
false is not true.

  3) Failure:
test_Button_Exists(TC_Buttons)
[C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/../unittests/buttons_test.rb:102:in `test_Button_Exists'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:24:in `run'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `initialize'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `new'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:23:in `run'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:22:in `each'
 C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1
/unittests/all_tests_concurrent.rb:22:in `run']:
false is not true.

  4) Error:
test_checkbox_Enabled(TC_CheckBox):
Watir::Exception::UnknownObjectException: Unable to locate object, using
name and box1
C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1