JMeter struggles? Taurus to the rescue!
For those of you who know JMeter (the most popular open source tool for testing performance), your first thought was probably not “What a user-friendly software program! It’s so clear what this script does!” Taurus is here to fix that by keeping you afloat in a sea of scripts.
Undoubtedly, most people with a lot of experience eventually find JMeter’s script very easy to understand. Abstracta’s tool (which is still in development, yet free and available on Github), ScriptGenerator, helps with this task of generating a simpler JMeter script that still follows the best practices we have defined.
In this post, we’ll look at Taurus, an open source tool developed by the creators of Blazemeter, as another approach to facilitate the task of developing a script and how we can take advantage of its various features.
The idea of Taurus is to provide language creation/configuration scripts in a more user-friendly way. Taurus, with its written language based on JSON or YAML generates scripts in JMeter, Grinder or Gatling. Not only can you create scripts from Taurus, but one of its many benefits is that you can also use pre-existing scripts.
Some Advantages of Taurus
- The scenario definition is clearer than JMeter. The plugins Ultimate Thread Group and Stepping Thread Group try to solve that problem.
- Versioning of scripts is easier, as it is a YAML or JSON instead of XML.
- The configuration script in Taurus can be understood by someone without much experience.
- Real-time reporting during test execution
- The possibility of using pre-existing scripts
- Integration with BlazeMeter
On the Integration with BlazeMeter, Taurus allows us to move the information from the test execution servers into the cloud and get the graphical response time using BlazeMeter’s interface. For those who already know BlazeMeter, you may wonder if it is possible to run it on BlazeMeter’s infrastructure and, well… the answer is no. Not yet at least.
UPDATE AUGUST 2016: Yes, you can now execute in BlazeMeter, there are actually 9 executors with quite a few added in the last year. Learn more about execution settings.
An example of a YAML in Taurus is shown in the following figure.
(Source: https://gettaurus.org/kb/Basic1/)
This file defines a simple load test with 10 concurrent users, ramp-up of 1 minute, with a length of 2m 30s invoking the web http://example.com using GET. This will generate a JMeter file with the code to run the defined test. Clearly, its much more simple and readable than the equivalent test in JMeter.
You may wonder, how do I do it if I need to set a parameter? What if the body of a POST is very large and I do not want it in my configuration file? Below shows a complete example of the definition of a request, where the only required attribute is the URL. It shows the use of parameters in a request and even the use of files for building a request. The use of variables is also allowed in the form $ {variable}. In the Taurus user manual, you can find this information and more.
What do you think of this tool? Would you find it useful? Has anyone used it on a project? Looking forward to your comments!
Recommended for You
Gatling Tool Review for Performance Tests (Written in Scala)
Performance Testing in Production
Tags In
Sofia Palamarchuk
Related Posts
A Guide to Good Cucumber Practices
BDD is a development strategy, and even if you do not follow this practice, we find it beneficial to use Cucumber (or a similar tool) since it “forces you” to document your automated tests before implementing them. It’s fundamental that these tests be made clear to a user…
Code Analysis Part 3: SonarQube Alternatives
How to run a code analysis from Maven or an IDE In part two of this blog series on code analysis, I showed you how to do a proof of concept quickly using a SonarQube Docker image, and run the analysis from SonarQube Scanner. In…
2 Comments
Leave a Reply Cancel reply
Search
Contents
[…] Introduction to Taurus: An Alternative to JMeter […]
[…] We were so excited when this tool came out that we even wrote a whole postdedicated to it. To give a quick description, Taurus is a tool for easily generating scripts in […]