首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

再次请问selenium-on-rails

2012-03-09 
再次请教selenium-on-rails现在通过在线安装,运行ruby script/plugin install http://.....之后,出现alre

再次请教selenium-on-rails
现在通过在线安装,运行ruby script/plugin install http://..... 
之后,出现"already installed:selenium-on-rails<http://svn.openqa.org/svn...>. pass --force to reinstall"
但运行ruby script/generate selenium login 
则出现"couldn't find 'selenium' generator"

[解决办法]
晕了!我
[解决办法]
Rails periodically changes the way that it renders pages, which unfortunately breaks backwards versions of Selenium on Rails. Therefore there are different installation locations depending on your version of Rails:

Rails 2.2 and up:

http://svn.openqa.org/svn/selenium-on-rails/stable/selenium-on-rails


Rails 2.1:

http://svn.openqa.org/svn/selenium-on-rails/tags/rails_2_1/selenium-on-rails


Before Rails 2.1:

http://svn.openqa.org/svn/selenium-on-rails/tags/pre-rails-2-1/selenium-on-rails


The latest release is always kept on GitHub at

git clone git://github.com/paytonrules/selenium-on-rails.git


To install:

1. Install Selenium on Rails: script/plugin install
2. If you???re on Windows, gem install win32-open3
3. If the RedCloth gem is available the Selenese test cases can use it for better markup.
4. Run the Rakefile in the plugin???s directory to run the tests in order to see that everything works. (If RedCloth isn???t installed a few tests will fail since they assume RedCloth is installed.)
5. Create a test case: script/generate selenium
6. Start the server: script/server -e test
7. Point your browser to localhost:3000/selenium
8. If everything works as expected you should see the Selenium test runner. The north east frame contains all your test cases (just one for now), and the north frame contains your test case.

[解决办法]

2. If you???re on Windows, gem install win32-open3
[解决办法]
楼主该结贴了
[解决办法]
低调的路过~

精彩网络小说尽在书趣吧:http://www.shuquba.com
精彩推荐:<<庆余年>>http://www.shuquba.com/book/1/3176.shtml

[解决办法]
你可以运行 ruby script/generate 不带任何参数

会列出已知的生成器列表

另外,你的plugin 目录似乎已经存在了,重新安装需要带 -f 参数

热点排行