Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 57587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:42:52+00:00 2026-05-10T17:42:52+00:00

So, I’ve started to create some Ruby unit tests that use Selenium RC to

  • 0

So, I’ve started to create some Ruby unit tests that use Selenium RC to test my web app directly in the browser. I’m using the Selenum-Client for ruby. I’ve created a base class for all my other selenium tests to inherit from.

This creates numerous SeleniumDriver instances and all the methods that are missing are called on each instance. This essentially runs the tests in parallel.

How have other people automated this?

This is my implementation:

class SeleniumTest < Test::Unit::TestCase   def setup     @seleniums = %w(*firefox *iexplore).map do |browser|       puts 'creating browser ' + browser       Selenium::SeleniumDriver.new('localhost', 4444, browser, 'http://localhost:3003', 10000)     end      start     open start_address   end    def teardown       stop   end    #sub-classes should override this if they want to change it   def start_address     'http://localhost:3003/'   end    # Overrides standard 'open' method   def open(addr)     method_missing 'open', addr   end    # Overrides standard 'type' method   def type(inputLocator, value)     method_missing 'type', inputLocator, value   end    # Overrides standard 'select' method   def select(inputLocator, optionLocator)     method_missing 'select', inputLocator, optionLocator   end    def method_missing(method_name, *args)     @seleniums.each do |selenium_driver|       if args.empty?         selenium_driver.send method_name       else         selenium_driver.send method_name, *args       end      end   end end 

This works, but if one browser fails, the whole test fails and there is no way to know which browser it failed on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:42:53+00:00Added an answer on May 10, 2026 at 5:42 pm

    Did you try Selenium Grid? I think it creates pretty good summary report which shows details you need. I may be wrong, as I didn’t use it for quite a while.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 100k
  • Answers 100k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer After perusing documentation and a very similar question over at… May 11, 2026 at 7:51 pm
  • Editorial Team
    Editorial Team added an answer In a nutshell, no. But you are on the right… May 11, 2026 at 7:51 pm
  • Editorial Team
    Editorial Team added an answer This line is wrong - it is passing a bunch… May 11, 2026 at 7:51 pm

Related Questions

So, I've read that it is not a good idea to install VS2008 on
So I am writing a registration form and I need the display name to
So, I know that try/catch does add some overhead and therefore isn't a good
So, I am seeing a curious problem. If I have a function // counter
So, I am a total beginner in any kind of Windows related programming. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.