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 the Watir-WebDriver-Performance gem.
First, install the Watir-WebDriver gem by the using the following command:
gem install watir-webdriver
Then, install the Watir-WebDriver-Performance gem by using the following command:
gem install watir-webdriver...