Re: Running multiple Rspec files in parallel with Selenium Grid

355 views
Skip to first unread message

Irish

unread,
Apr 2, 2013, 4:58:44 PM4/2/13
to rs...@googlegroups.com
A long time ago I used parallel test with some limited success.  It worked with unit tests but broke with RSpec/Capybara or Cucumber specs.  I remember hearing of another library called Hydra, but I've never used it.  Same with https://github.com/joakimk/testbot and https://github.com/jnicklas/rspec-concurrent   Can't be of more help but maybe you can check those out.  If you get something working be sure to post back, as I'd be interested in what you got working.

On Monday, April 1, 2013 2:28:50 AM UTC-7, sush...@thoughtworks.com wrote:

Hey Guys,

I have been working on a Rspec/Selenium Webdriver test framework where I need to run my Rspec tests distributed across multiple files in same directory spec/*_test.rb.I was looking for the existing solutions available and stumbled upon deep test gem (https://github.com/qxjit/deep-test) which helps driving the tests in parallel leveraging selenium grid but I was not able to implement it based on the documentation available and looks like there is no active development going on with it.Are there any ported version of deep test available to work with RSpec > 2.0.

I also looked into parallel_tests (https://github.com/grosser/parallel_tests) but not sure how we can use it for running multiple process on the same cpu with each process running a different rSpec test.

Here is a snippet from one of my spec file,

require 'selenium-webdriver' require File.join(File.dirname(FILE),'../support/Setup') require 'rspec' require File.join(File.dirname(FILE),'../support/spec_helper') require File.join(File.dirname(FILE),'../support/Helper')

describe "Test", :type => :selenium do

it "should search for flights" do airline.home_page.queryFlight('oneWay', 'ATL', 'ORD', 'today') end

it "should list all the flight results and select one flight" do airline.flight_list_page.selectFlight end end

similarly i have other spec files which I am trying to run in parallel.

sush...@thoughtworks.com

unread,
Apr 3, 2013, 7:38:48 AM4/3/13
to rs...@googlegroups.com
Hey Irish,

I spent some time trying to update the dependencies and remove redundant code from deeptest to port it with latest version of rspec and selenium grid but couldn't get it working.However,parallel_tests turned out to be the best library to implement Rspec parallelization and dabbling with processes,files option and grouper class I got my tests running in parallel.They have a active development group and works with both rails and non-rails application.
Its good to ses tests running in parallel,though I couldn't use selenium grid-node capabilities here,got some future work..:).Another interesting tool I came across was http://test-load-balancer.github.com/. It seems to have a support for Rspec/Rake based tests,planning to start working with it.
Reply all
Reply to author
Forward
0 new messages