Wednesday, 14 December 2016

Running JMeter test in Tarus Framework

  • Introduction
  • Installation
  • Running JMeter Test
  • Reporting

Introduction

While running load test in  Non GUI mode (CLI) it is difficut to analyse real time result we can view result only at the end of run by uploading the .jtl file. This limitation can be achive by using Tarus Framework

  • Taurus, an open source test automation tool that extends and abstracts JMeter.
  • Using Taurus we can create easy readable script for JMeter test plan.
  • Platform-independency - runs where Python and Java can run
  • Console stats and pseudo-graphic charts during the test execution
  • Real-time reporting

Installation (For Windows)

Step 1: Install Java.             

Step 2: Install Python.          

Step3Install Taurus Python Dependencies.

Open command prompt. 

Install pip                             pip install --upgrade pip
Install lxml Package            pip install lxml
Install psutil Package        pip install psutil
Install Taurus                       pip install bzt

Running JMeter Test

Save your existing JMeter script in following path
let assume the path of path of python directory under C drive.

C/Python/Scripts

run following command in cmd

cd C/Python/Scripts > bzt example.jmx

where example.jmx is your JMeter Script

Reporting

After runing script using Taurus following Console stats and pseudo-graphic charts will display .


By this we can view result at real time.



No comments:

Post a Comment