Hello,
We're using RSpec and SauceLabs to run our Selenium tests.
We've followed all the information on the Wiki and we're able to run bundle exec rspec spec/path/to/e2e.
When we enable parallelization and run bundle exec parallel_rspec spec/path/to/e2e we get this error:
Failure/Error: launch_cms_homepage()
StandardError:
No browser has been configured.
It seems you're trying to run your tests in parallel, but haven't configured your specs/tests to use the Sauce integration.
To fix this, add :sauce => true to your specs or make your tests subclasses of Sauce::TestCase or Sauce::RailsTestCase.
For more details check the gem readme at https://github.com/saucelabs/sauce_ruby/blob/master/README.markdown
# ./page_objects/shared/launch_browsers.rb:4:in `launch_cms_homepage'
# ./spec/features/end_to_end/1/ma_agenda/ma_agenda_fixes_spec.rb:678:in `block (2 levels) in <top (required)>'
Note: launch_cms_homepage() is a method defined in one of the helpers we pull in.
Has this been seen before?
A related question, what strategy does the parallelization take for a folder of specs?
The e2e folder has e2e/1/test1.rb which has a bunch of describe blocks and e2e/1/test2.rb also has a bunch of specs. Is the parallelization at the describe block level, the file level, or other?
Thank you!
$ bundle exec gem list
*** LOCAL GEMS ***
bigdecimal (1.2.6)
bundler (1.9.6)
capybara (2.4.4)
childprocess (0.5.2)
cmdparse (3.0.1)
diff-lcs (1.2.4)
domain_name (0.5.24)
ffi (1.9.3)
highline (1.7.2)
http-cookie (1.0.2)
io-console (0.4.2)
jar_wrapper (0.1.7)
json (1.8.2)
mime-types (2.0)
mini_portile (0.6.0)
minitest (4.7.5)
multi_json (1.8.2)
net-http-persistent (2.9.4)
net-ssh (2.9.2)
net-ssh-gateway (1.2.0)
netrc (0.10.3)
nokogiri (1.6.3.1)
parallel (1.6.0)
parallel_tests (1.3.7)
power_assert (0.2.2)
psych (2.0.8)
rack (1.5.2)
rack-test (0.6.2)
rake (0.9.2.2)
rdoc (3.9.5)
require_all (1.3.2)
rest-client (1.8.0)
rspec (2.13.0)
rspec-core (2.13.0)
rspec-expectations (2.13.0)
rspec-mocks (2.13.0)
rspec-retry (0.4.0)
rubyzip (1.0.0)
sauce (3.5.6)
sauce_whisk (0.0.18)
selenium (0.2.11)
selenium-webdriver (2.45.0)
unf (0.1.4)
unf_ext (0.0.7.1)
websocket (1.0.7)
websocket-driver (0.3.0)
websocket-extensions (0.1.2)
xpath (2.0.0)
zip (2.0.2)
Hello,
We're using RSpec and SauceLabs to run our Selenium tests.
We've followed all the information on the Wiki and we're able to run
bundle exec rspec spec/path/to/e2e.When we enable parallelization and run
bundle exec parallel_rspec spec/path/to/e2ewe get this error:Note: launch_cms_homepage() is a method defined in one of the helpers we pull in.
Has this been seen before?
A related question, what strategy does the parallelization take for a folder of specs?
The
e2efolder hase2e/1/test1.rbwhich has a bunch of describe blocks ande2e/1/test2.rbalso has a bunch of specs. Is the parallelization at the describe block level, the file level, or other?Thank you!