【问题标题】:Click testing on rails 2.3.10 site works under mod_passenger, selenium tests fail when running under mongrel. Why?在 mod_passenger 下运行 rails 2.3.10 站点上的单击测试,在 mongrel 下运行时 selenium 测试失败。为什么?
【发布时间】:2011-04-28 16:00:26
【问题描述】:

所以我正在开发一个包含大量硒测试的大型 Rails 应用程序。运行站点的本地开发实例(带有 mod_passenger 的 apache)工作正常,但是当我运行 selenium 测试套件时,我遇到了一堆失败,尤其是在重定向时。返回的 HTTP 响应标头格式不正确。在其他问题中,Set-Cookie 标头键似乎已被删除,仅显示值。

PS:我已经解决了这个问题,只是把问题/答案贴出来给社区看看。

【问题讨论】:

    标签: ruby-on-rails selenium mongrel


    【解决方案1】:

    关于答案的讨论可以在这里找到:

    https://rails.lighthouseapp.com/projects/8994/tickets/4690-mongrel-doesnt-work-with-rails-238

    可在此处找到修复代码:

    http://gist.github.com/471663

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多