告诉Cucumber测试在https上运行

告诉Cucumber测试在https上运行,https,cucumber,selenium-rc,webrat,Https,Cucumber,Selenium Rc,Webrat,我正在外部模式下使用Webrat运行cucumber测试,即使用Selenium。在生产中,我们使用https,因此我们需要在https上运行Cumber测试 我们是否可以指定cucumber、webrat或selenium需要使用https?理想情况下,这可以通过给定给Webrat的参数来指定 我看到了一些东西,如果我覆盖selenium.rb文件下绑定的默认SeleniumClientDriver,那么它看起来是可能的 env.rb=> Webrat.configure do |config

我正在外部模式下使用Webrat运行cucumber测试,即使用Selenium。在生产中,我们使用https,因此我们需要在https上运行Cumber测试

我们是否可以指定cucumber、webrat或selenium需要使用https?理想情况下,这可以通过给定给Webrat的参数来指定

我看到了一些东西,如果我覆盖selenium.rb文件下绑定的默认SeleniumClientDriver,那么它看起来是可能的

env.rb=>

Webrat.configure do |config|
    config.mode = :selenium
    config.aplication_address = 'localhost'
    config.aplication_port = 11090
    config.selenium_server_address = 'localhost'
    config.selenium_server_port = 4444
    config.selenium_browser_key = '*iexploreproxy'
    config.application_framework = :external
end

World do
    session = Webrat::SeleniumSession.new
    session.extend(Webrat::Methods)
    session.extend(Webrat::Selenium::Methods)
    session.extend(Webrat::Selenium::Matchers)
    session        
end

谢谢你的帮助

这显然不是webrat团队决定支持的东西

因此,一名团队成员更改了源代码,以允许通过env.rb属性指定。可以找到pull请求