Martkos IT Ltd

View Original

Taurus and Jmeter

Taurus is a automation framework which enables execution of performance and functional testing tools. It support multiple load testing tools including Jmeter and Gatling.

Installation

Instructions for installation depending on your operating system can be found on the Taurus site.

Jmeter execution with Taurus

Taurus can execute existing Jmeter JMX files with a simple command like below:-

bzt PerformanceTestPlanMemoryThread.jmx

On execution Taurus launches its own dashboard providing a plethora of information which can be seen below.

Creating a JMeter Script Using YAML

Taurus has a simple configuration syntax written in YAML (or JSON). This can be used to create and execute tests. Which means you no longer need to directly launch Jmeter and create a test plan. In this example dummy.com is tested with 50 concurrent users for ~20 minutes testing two pages; dummy-404 and dummy-503.

execution: - concurrency: 50   ramp-up: 60s   hold-for: 20m   scenario: SoakTest    scenarios:   SoakTest:     default-address: https://dummy.com/     requests:        - /       - /dummy-404       - /dummy-503

Within the YAML files further complexity can be added such as pushing out the test reporting to Blazemeter and can be used for cloud provisioning allowing much larger scale load execution.

It is also possible to integrate these scripts into Jenkins allowing execution as part of the continuous delivery cycle.

FURTHER READING

Taurus Jmeter Execution

Taurus Installation