O'Reilly logo

JMeter Cookbook by Bayo Erinle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing Test scripts through Ruby DSL

Sometimes, it is helpful to manually write your scripts instead of recording them. Cases such as integrating your test plans with a continuous integration build server, or being able to debug your test plans from the comfort of an Integrated Development Environment (IDE) benefit mostly from this.

Thankfully, there is a Ruby gem that provides a readable and concise DSL, allowing you to write test plans using the Ruby programming language.

How to do it…

In this recipe, we will go over how to do just that. Perform the following steps:

  1. Install Ruby on your system by following the instructions given in Appendix, Installing Supporting Software Needed for the Book.
  2. Install the JMeter DSL Ruby gem by running the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required