Hi,all
I am trying to test web application using the sample code:
ruby 代码
- require "selenium"
- require "test/unit"
-
- class NewTest < Test::Unit::TestCase
- def setup
- @verification_errors = []
- if $selenium
- @selenium = $selenium
- else
- @selenium = Selenium::SeleneseInterpreter.new("localhost", 4444, "*firefox", "http://localhost:4444", 10000);
- @selenium.start
- end
- @selenium.set_context("test_new", "info")
- end
-
- def teardown
- @selenium.stop unless $selenium
- assert_equal [], @verification_errors
- end
-
- def test_new
- @selenium.open "/cn/articles/domain-web-testing"
- @selenium.click "//a[contains(@href, '/cn/')]"
- @selenium.wait_for_page_to_load "30000"
- end
- end
When executing, I got the following error message:
- Exception: Bad file descriptor - connect(2)
- D:/ruby/lib/ruby/1.8/net/http.rb:560:in `initialize'
- D:/ruby/lib/ruby/1.8/net/http.rb:560:in `open'
- D:/ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
- D:/ruby/lib/ruby/1.8/timeout.rb:48:in `timeout'
- D:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
- D:/ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
- D:/ruby/lib/ruby/1.8/net/http.rb:553:in `do_start'
- D:/ruby/lib/ruby/1.8/net/http.rb:542:in `start'
- D:/ruby/lib/ruby/1.8/net/http.rb:1032:in `request'
- D:/ruby/lib/ruby/1.8/net/http.rb:769:in `get'
- E:\ruby\workspace\dcrm2/test\selenium/selenium.rb:159:in `do_command'
- D:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
- D:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
- E:\ruby\workspace\dcrm2/test\selenium/selenium.rb:148:in `do_command'
- E:\ruby\workspace\dcrm2/test\selenium/selenium.rb:143:in `stop'
- E:\ruby\workspace\dcrm2/test/selenium/new_test.rb:17:in `teardown'
- D:/ruby/lib/ruby/1.8/test/unit/testcase.rb:79:in `run'
- D:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run'
- D:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each'
- D:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run'
- D:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run'
- D:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each'
- D:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run'
- D:/ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite'
- D:/Program Files/RadRails/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:107:in `start_mediator'
- D:/Program Files/RadRails/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:52:in `start'
- D:/Program Files/RadRails/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:272
Any idea? Thanks beforehand for your help.
I am running ruby 1.8.5 (i386-mswin32) on Windows XP.
分享到:
- 2007-08-07 15:59
- 浏览 5487
- 评论(2)
- 论坛回复 / 浏览 (2 / 4935)
- 查看更多
相关推荐
mysql默认是线程不安全的...[MDEV-9749] InnoDB receives 'Bad file descriptor' error, possibly related to feedback plugin Lost connection to MySQL server at 'handshake- reading initial communication packet'
可以解决,maven引入hive jar包时,hive Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde 问题
赠送jar包:netty-codec-http-4.1.73.Final.jar; 赠送原API文档:netty-codec-http-4.1.73.Final-javadoc.jar; ... ... ... ...人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。
赠送jar包:eigenbase-properties-1.1.5.jar; 赠送原API文档:eigenbase-properties-1.1.5-javadoc.jar; 赠送源代码:eigenbase-properties-1.1.5-sources.jar; 赠送Maven依赖信息文件:eigenbase-properties-...
依赖 <groupId>com.xuxueli</groupId> <artifactId>xxl-job-core <version>2.2.0-SNAPSHOT </dependency>
couldn’t remove fs lock errno:9 Bad file descriptor 此时需要修改文件所有者 $ sudo mkdir -p /data/db/ $ sudo chown ‘USERNAME‘ /data/db 其中第一句是建立你的数据库文件夹,第二句修改该文件夹的所有者 ...
idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,...
自定义一个插件,继承AbstractMojo,实现execute方法,引入该...-descriptor) on project maven-project: Error extracting plugin descriptor: ‘No mojo definitions wer e found for plugin: com.gupao:maven-pro
### Golang Bad File Descriptor 问题解析与解决方案 #### 一、问题背景 在Golang编程过程中,当尝试对文件执行写操作时,可能会遇到“bad file descriptor”(坏文件描述符)这一错误提示。该问题通常发生在使用`...
资源分类:Python库 所属语言:Python 资源全名:person_descriptor-0.1.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
forge频道后,可以使用以下命令安装cron-descriptor : conda install cron-descriptor可以使用以下命令列出平台上可用的所有cron-descriptor版本: conda search cron-descriptor --channel conda-forge关于conda-...
[ ] eigenbase-properties-1.1.4-javadoc.jar 06-Dec-2013 18:28 83K [ ] eigenbase-properties-1.1.4-javadoc.jar.md5 06-Dec-2013 18:28 32 [ ] eigenbase-properties-1.1.4-javadoc.jar.sha1 06-Dec-2013 18:28...
jar包,亲测可用
maven-plugin-descriptor-2.0.3.jar
jar包,亲测可用
java运行依赖jar包
Android Linux 开发 USB 错误-Device Descriptor Read/64, Error -62 解决方法总结 Android Linux 开发中,USB 设备的 descriptor 读取错误是一个常见的问题,特别是在使用 S3C6410 开发板时。这种错误通常表现为 ...
You can download the Vertica drivers here: ...mvn install:install-file -Dfile={/path_to/vertica-jdbc-9.2.1-0.jar} -DgroupId=com.vertica -DartifactId=vertica-jdbc -Dversion=9.2.1-0 -Dpackaging=jar
maven-plugin-descriptor-2.1.0.jar