2014-02-05 2 views
0

소프트웨어 업그레이드를 진행하고 있고 테스트가 실행되기 시작하는 문제가 있습니다. 그러나 갑자기 브라우저가 응답을 멈추고jruby/selenium이 내 브라우저에 내 연결을 끊는 이유는 무엇입니까?

나는 오이 (1.3.10), 작은 그림 (2.12.2-java), 페이지 객체 (0.9.5), watir-webdriver (0.6.6), 그리고 다음을 사용하고 있습니다. 파이어 폭스 및 크롬과 함께 셀레늄 - webdriver (2.39.0) 1.9.3

오이 (1.2.3), watir-webdriver (0.6.2) 및 selenium-webdriver를 사용하기 전에 문제가 발생하지 않았습니다. 2.34.0)와 루비 1.8.7

Unable to establish loopback connection 

org/jruby/RubyIO.java:3673:in `select' 
C:/jruby-1.7.10/lib/ruby/1.9/net/protocol.rb:143:in `rbuf_fill' 
C:/jruby-1.7.10/lib/ruby/1.9/net/protocol.rb:141:in `rbuf_fill' 
C:/jruby-1.7.10/lib/ruby/1.9/net/protocol.rb:122:in `readuntil' 
C:/jruby-1.7.10/lib/ruby/1.9/net/protocol.rb:132:in `readline' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:2570:in `read_status_line' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:2559:in `read_new' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:1327:in `transport_request' 
org/jruby/RubyKernel.java:1282:in `catch' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:1324:in `transport_request' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:1301:in `request' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:1294:in `request' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:745:in `start' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:743:in `start' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:1292:in `request' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/http/default.rb:83:in `response_for' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/http/default.rb:39:in `request' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/bridge.rb:634:in `raw_execute' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/bridge.rb:612:in `execute' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/bridge.rb:545:in `isElementEnabled' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/common/element.rb:151:in `enabled?' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/watir-webdriver-0.6.6/lib/watir-webdriver/elements/element.rb:528:in `assert_enabled' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/watir-webdriver-0.6.6/lib/watir-webdriver/elements/element.rb:119:in `click' 
C:/devl/Ruby/features/support/hooks.rb:1177:in `(root)' 
org/jruby/RubyBasicObject.java:1565:in `instance_exec' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/core_ext/instance_exec.rb:48:in `cucumber_instance_exec' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/core_ext/instance_exec.rb:69:in `cucumber_run_with_backtrace_filtering' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/core_ext/instance_exec.rb:36:in `cucumber_instance_exec' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/rb_support/rb_hook.rb:14:in `invoke' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/language_support/language_methods.rb:114:in `invoke' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/language_support/language_methods.rb:108:in `execute_after' 
org/jruby/RubyArray.java:1693:in `reverse_each' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/language_support/language_methods.rb:107:in `execute_after' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/language_support/language_methods.rb:19:in `after' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime/support_code.rb:112:in `fire_hook' 
org/jruby/RubyArray.java:1613:in `each' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime/support_code.rb:111:in `fire_hook' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime.rb:113:in `after' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime.rb:100:in `before_and_after' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime.rb:82:in `with_hooks' 
org/jruby/RubyProc.java:271:in `call' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime/support_code.rb:120:in `around' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/language_support/language_methods.rb:9:in `around' 
org/jruby/RubyProc.java:271:in `call' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/language_support/language_methods.rb:91:in `execute_around' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/language_support/language_methods.rb:8:in `around' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime/support_code.rb:119:in `around' 
org/jruby/RubyProc.java:271:in `call' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime/support_code.rb:117:in `around' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime.rb:94:in `around' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime.rb:81:in `with_hooks' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/outline_table.rb:135:in `accept_expand' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/outline_table.rb:107:in `accept' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/outline_table.rb:25:in `accept' 
org/jruby/RubyArray.java:1613:in `each' 
org/jruby/RubyEnumerable.java:978:in `each_with_index' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/outline_table.rb:23:in `accept' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:90:in `visit_outline_table' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:170:in `broadcast' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:89:in `visit_outline_table' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/examples.rb:25:in `accept' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:80:in `visit_examples' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:170:in `broadcast' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:79:in `visit_examples' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/scenario_outline.rb:19:in `accept' 
org/jruby/RubyArray.java:1613:in `each' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/scenario_outline.rb:18:in `accept' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:74:in `visit_examples_array' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:170:in `broadcast' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:73:in `visit_examples_array' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/scenario_outline.rb:45:in `accept' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:58:in `visit_feature_element' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:170:in `broadcast' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:57:in `visit_feature_element' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/feature.rb:38:in `accept' 
org/jruby/RubyArray.java:1613:in `each' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/feature.rb:37:in `accept' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:27:in `visit_feature' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:170:in `broadcast' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:26:in `visit_feature' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/features.rb:28:in `accept' 
org/jruby/RubyArray.java:1613:in `each' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/features.rb:17:in `each' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/features.rb:27:in `accept' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:21:in `visit_features' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:170:in `broadcast' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/ast/tree_walker.rb:20:in `visit_features' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/runtime.rb:49:in `run!' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/../lib/cucumber/cli/main.rb:47:in `execute!' 
C:/jruby-1.7.10/lib/ruby/gems/shared/gems/cucumber-1.3.10/bin/cucumber:13:in `(root)' 
org/jruby/RubyKernel.java:1099:in `load' 
C:/jruby-1.7.10/bin/cucumber:1:in `(root)' 
org/jruby/RubyKernel.java:1099:in `load' 
-e:1:in `(root)' 

logout and close windows failed 

not able to disable survey 

SocketError: Permission denied: no further information 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:762:in `connect' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:762:in `connect' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:755:in `do_start' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:744:in `start' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:743:in `start' 
C:/jruby-1.7.10/lib/ruby/1.9/net/http.rb:1292:in `request' 
./features/page_objects/clean_slate/welcome/clean_ssc_login_page.rb:23:in `visit_login_page' 
./features/step_definitions/common/common_login_steps.rb:60:in `login_user_to_site' 
./features/step_definitions/awe_clean_slate/footer.rb:9:in `/^I am logged in as an (.*) user$/' 
C:\devl\Ruby\features\SSC\general_site\contact_us.feature:6:in `Given I am logged in as an <role> user' 

Skipped step 

Skipped step 

process for failing scenarios failed 

Permission denied: no further information 
+0

@ user1177636 나는 완전히 분실했다 ... –

+0

을 디버그하려고 지난 3 시간을 보냈다. 나는 이런 일이 발생하기 전에 다시해야한다. –

+0

당신은 소프트웨어 업그레이드를 진행하고 있다고 말합니다. 그 전에는이 문제가 없었습니까? 이 작업이 중단되었을 때와 작업이 중단 된 때 사이에 수행 한 업그레이드를 설명하면 문제를 식별하는 데 도움이 될 수 있습니다. –

답변

3

JRuby가 이러한 테스트를 실행하는 것을 차단하는 내 컴퓨터의 다른 소프트웨어를 기반으로이 문제를 한 번 보았습니다. 나는 JRuby를 사용했지만 정기적 인 Ruby를 사용하지 않았을 때 McAfee Host Intrusion Prevention이 Selenium과의 연결을 끊는 것 같았습니다.

서비스가 실행 중인지 확인하려면 시스템 관리자로 가서 제어판 -> 관리 도구 -> 서비스로 이동하여 McAfee Host Intrusion Prevention이 Started로 나열되는지 확인하십시오.

해당하는 경우 net stop "McAfee Host Intrusion Prevention Service"을 관리자 권한으로 명령 프롬프트 창에서 실행하십시오. 완료되면 테스트가 실행되고 테스트가 완료되어야합니다.