Git Product home page Git Product logo

jenkins-jmeter's Introduction

Jmeter integration with Jenkins

Pre-requistic

  • Java 17
  • Install plugin Performance (Type Jmeter in Avaiable plugin search box)

Steps to Install Jmeter on Ubuntu 22.x

To run jmeter from jenkins, we need to have jmeter installed on the machine on which Jenkins Job will execute.

Below are the steps to install jmeter.

- wget https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.5.zip
- sudo apt install unzip
- unzip apache-jmeter-5.5.zip
- mv apache-jmeter-5.5 jmeter

Update the executable path of jmeter

- sudo mv jmeter /opt
- echo 'export PATH="$PATH:/opt/jmeter/bin"' >> ~/.bashrc
- source ~/.bashrc
- Jmeter

How to create Test Plan

The above command jmeter will not be run successfull, as jmeter is a desktop application hence if you have GUI on linux then you will be able to setup test script in jmeter.

To avoid below steps and for quick practice, a sample testplan simplilearn.jmx file is added in the repository. This file can used to run jmeter and publish performance result in jenkins.

To create a script in Jmeter, please refer

- Create a Test plan, provide some appropriate name
- Right click on Test plan in left menu --> Add -> Threads (users) --> Thread Group
- - Add Number of threads as 5 or any your preferred number
  - Loop Count, set to 2
  - Keep other as default 

### Add Http Request for testing
  - Right click on Thread Group --> Add --> Sampler --> HTTP request
	- Add www.simplilearn.com in Server
	- Add the path to different pages in the website simplilearn.com like http://www.simplilearn.com/resources
	- Add multiple requests for different pages in the website, following above 2 steps.

### Setting the results viewer 
	- Right click on Thread Group --> Add --> Listener --> View results in Table
	- Save the test plan

jenkins-jmeter's People

Contributors

vcjain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.