Functional testing with(through?) chrome

Not sure if this can be done using RSpec and something else but I’m
trying to test a website using Chrome specifically. The website seems
to intermittently hang up Chrome but not Safari and it passes functional
tests without a browser.
I want to run a test that loops through loading the site with chrome and
measure the load time or record the error I get on a load fail.

Hope this makes sense.

I believe Cucumber + Sahi should work for you. More info here:
http://blog.sahi.co.in/2010/04/sahi-vs-selenium.html

Best,
Sidu.
http://c42.in

Thank you.
I’ll check it out.

John

rspec + watir-webdriver

On 6 Aug 2011, at 03:21, John S. wrote:

Not sure if this can be done using RSpec and something else but I’m
trying to test a website using Chrome specifically. The website seems
to intermittently hang up Chrome but not Safari and it passes functional
tests without a browser.
I want to run a test that loops through loading the site with chrome and
measure the load time or record the error I get on a load fail.

Hope this makes sense.

I would recommend Capybara[1] with the Selenium driver configured to use
Chrome:

Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end

[1] GitHub - teamcapybara/capybara: Acceptance test framework for web applications

cheers,
Matt


Freelance programmer & coach
Author, Search (with Aslak
Hellesy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne