Client-side performance testing with Watir-WebDriver-Performance in Ruby

The Watir-WebDriver-Performance gem provides a set of timing metrics using the W3C Page Performance standard in the Watir-WebDriver.

The Watir-WebDriver-Performance gem is the perfect solution to capture the response time metrics, and it's very straightforward to set up.

One way of effectively measuring performance testing is by conducting a response time test every time the application is built. If there is a huge degradation in the performance, break the build!

In this recipe, we will set up the Watir-WebDriver-Performance gem and collect various performance metrics in our test.

Getting ready

You will need a Ruby environment. You will need the Watir-WebDriver gem along with ...

Get Selenium Testing Tools Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.