Note that there are some explanatory texts on larger screens.

plurals
  1. POCucumber not closing IE8 or Chrome on a Windows7 VM
    primarykey
    data
    text
    <p>I have a suite of cucumber scripts that execute against our web apps. When I run the scripts against IE8 and Chrome they run fine but when it comes to closing the browser it can't. </p> <p>Here is the stack trace I get:</p> <p>Errno::ECONNREFUSED: Connection refused - Connection refused</p> <pre><code> initialize at org/jruby/ext/socket/RubyTCPSocket.java:122 open at org/jruby/RubyIO.java:1179 connect at C:/jruby-1.7.2/lib/ruby/1.9/net/http.rb:762 timeout at org/jruby/ext/timeout/Timeout.java:105 connect at C:/jruby-1.7.2/lib/ruby/1.9/net/http.rb:762 do_start at C:/jruby-1.7.2/lib/ruby/1.9/net/http.rb:755 start at C:/jruby-1.7.2/lib/ruby/1.9/net/http.rb:744 start at C:/jruby-1.7.2/lib/ruby/1.9/net/http.rb:743 request at C:/jruby-1.7.2/lib/ruby/1.9/net/http.rb:1292 request at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51 response_for at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/remote/http/default.rb:83 request at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/remote/http/default.rb:39 call at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/remote/http/common.rb:40 raw_execute at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/remote/bridge.rb:619 execute at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/remote/bridge.rb:597 quit at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/remote/bridge.rb:193 quit at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/chrome/bridge.rb:48 quit at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/common/driver.rb:168 close at C:/jruby-1.7.2/lib/ruby/gems/shared/gems/watir-webdriver-0.6.2/lib/watir-webdriver/browser.rb:135 (root) at C:/Users/explorys/Documents/workspace/qa-cucumber/features/support/hooks.rb:25 </code></pre> <ul> <li>We use jruby with our scripts.</li> </ul> <p>Here is the code that closes the browser:</p> <pre><code>at_exit do if !browser.nil? browser.close end end </code></pre> <p>Here is a list of the gems:</p> <blockquote> <p>activemodel (3.2.13, 3.2.12)</p> <p>activerecord (3.2.12)</p> <p>activerecord-jdbc-adapter (1.2.2.1)</p> <p>activerecord-jdbcmysql-adapter (1.2.2.1)</p> <p>activesupport (3.2.13, 3.2.12)</p> <p>arel (3.0.2)</p> <p>builder (3.0.4)</p> <p>childprocess (0.3.8)</p> <p>commonwatir (4.0.0)</p> <p>composite_primary_keys (5.0.12)</p> <p>cucumber (1.2.1)</p> <p>diff-lcs (1.2.1, 1.1.3)</p> <p>fastercsv (1.5.5)</p> <p>ffi (1.3.1 java)</p> <p>gherkin (2.11.6 java)</p> <p>hbase-jruby (0.2.2 java)</p> <p>i18n (0.6.1)</p> <p>jdbc-mysql (5.1.22.1)</p> <p>jruby-win32ole (0.8.5)</p> <p>json (1.7.7 java)</p> <p>linecache (0.46 java)</p> <p>mime-types (1.22)</p> <p>multi_json (1.6.0)</p> <p>rake (10.0.2)</p> <p>rest-client (1.6.7)</p> <p>rspec (2.12.0)</p> <p>rspec-core (2.12.2)</p> <p>rspec-expectations (2.12.1)</p> <p>rspec-mocks (2.12.2)</p> <p>ruby-debug-base (0.10.5.rc3 java)</p> <p>ruby-debug-ide (0.4.17.beta17, 0.4.17.beta16)</p> <p>rubyzip (0.9.9)</p> <p>selenium-webdriver (2.32.1, 2.29.0)</p> <p>sys-uname (0.9.1)</p> <p>tzinfo (0.3.35)</p> <p>watir (4.0.2)</p> <p>watir-webdriver (0.6.2)</p> <p>websocket (1.0.7)</p> <p>win32-process (0.7.2)</p> <p>xml-object (0.9.93)</p> <p>xml-simple (1.1.2)</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload