Load Testing With Ruby and Selenium

BrowserUp provides an easy way to load test using Ruby.

There are a couple ways to achieve this:

By default, BrowserUp packages Ruby 3.2 in it’s custom-base image. The custom-base comes with the following libraries pre-installed:

  • rspec
  • cucumber
  • faraday
  • capybara
  • capybara-selenium
  • cuprite
  • typhoeus
  • selenium-webdriver
  • webdrivers

To get started, generate a ruby scaffold

browserup generate ruby

This will create a simple working Ruby script, and a browserup.yaml file for you to define your load test.

Note that we generated a scaffold with example code of only one kind, but the test config is generic, and can run any or all of the supported profile types: JavaScript, Java, Ruby, Python, PostMan, PlayWright, Custom and more.