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. -- Posted via http://www.ruby-forum.com/.
Sidu Ponnappa
2011-Aug-06 05:57 UTC
[rspec-users] functional testing with(through?) chrome
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 On 6 August 2011 07:51, John Sayeau <lists at ruby-forum.com> 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. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110806/9db92dce/attachment.html>
Thank you. I''ll check it out. John -- Posted via http://www.ruby-forum.com/.
On 6 Aug 2011, at 03:21, John Sayeau 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] https://github.com/jnicklas/capybara cheers, Matt -- Freelance programmer & coach Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Helles?y) Founder, http://relishapp.com +44(0)7974430184 | http://twitter.com/mattwynne -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110807/a39be85f/attachment.html>
rspec + watir-webdriver (you do not need anything else) -- Posted via http://www.ruby-forum.com/.