Learn JMeter (Latest 5.1)

JMeter for Performance & API Testing
Instructor:
Pavan Kumar
9 students enrolled
English [Auto-generated]
Performance & API Testing using JMeter
  • JMeter is most popular and open source performance testing tool. Also JMeter can be used to perform API testing.

  • In this course you will learn JMeter from scratch and how to perform performance testing and API testing.

  • After this course you can work with JMeter for personal and enterprise projects.

Topics Covered:

1) Overview on Performance Testing

2) Introduction &  Usage of JMeter

3) How to install JMeter on Windows

4) How to install JMeter on Mac

5) JMeter Elements (Thread Group,Sampleres,Listeners & Configuration)

6) First JMeter Test

7) Assertions in JMeter

8) Listeners in JMeter

9) Timers in JMeter

10) Logic Controllers – Loop Controller

11) Logic Controllers – Recording Controller

12) Logic Controllers – Simple,Module & Include Controllers

13) Logic Controllers – Random & Random Order Controllers

14) Logic Controllers – Interleave Controller

15) Logic Controllers- Throughput Controller (Build a Distributed Load Test)

16) How to create a JDBC Test Plan(Load Test on Database)

17) How to create assertions for JDBC Test Plan(Load Test on Database)

18) How to run jmeter from Command Line (non GUI mode) & view results

19) How to create HTML Reports from command line(non GUI mode)

20) How to test FTP upload and download( FTP Request Sampler)

21) JMeter PreProcessor & PostProcessor

22) JMeter Plugins Manager

23) Correlation with Regular Expression Extractor

24) API Webservices testing in JMeter

25) Parameterizaton/Working with CSV file

26) Functions & Variables

27) Templates in JMeter

etc..

Introduction

1
Overview on Performance Testing
  • What is Performance Testing?

  • Why do Performance Testing?

  • Types of Performance Testing

  • Common Performance Problems

  • Performance Testing Process

  • Performance Testing Metrics: Parameters Monitored

  • Example Performance Test Cases

  • Performance Test Tools

2
Introduction & Usage of JMeter

Introduction &  Usage of JMeter

JMeter Installations on Windows & Mac

1
How to install JMeter on Windows
2
How to install JMeter on Mac

JMeter Elements & First JMeter Test

1
JMeter Elements (Thread Group,Sampleres,Listeners & Configuration)
2
First JMeter Test

Step 1 - Start Jmeter

Step 2 - Create a TestPlan

Step 3 - Create a Thread Group (Users)

Step 4 - Add a Sampler (Http)

Step 5 - Add Listeners

Step 6 – Run Test Plan

Step7 – Save Test Plan

Assertions in JMeter

1
Assertions in JMeter

1.Response Assertion

2.Duration Assertion

3.Size Assertion

4.HTML Assertion

5.XML Assertion

6.XML Schema Assertion

7.XPATH Assertion

8.JSON Assertion

Listeners in JMeter

1
Listeners in JMeter

1.View Results in Table

2.View Results Tree

3.Graph Results

4.Aggregate Report

5.Aggregate Graph

6.Summary Report

7.Simple Data Writer

Timers in JMeter

1
Timers in JMeter
  1. Constant Timer

  2. Uniform Random Timer

  3. Gaussian Random Timer

  4. BeanShell Timer

  5. BSF Timer

  6. JSR223 Timer

Logic Controllers in JMeter

1
Logic Controllers - Loop Controller

Logic Controllers - Loop Controller

2
Logic Controllers - Recording Controller
3
Logic Controllers - Simple,Module & Include Controllers
  1. Simple Controller

  2. Modular Controller

  3. Test Fragment

  4. Include Controller

Demo Site:

Registration

http://blazedemo.com/register

Login

http://blazedemo.com/login

Flight Booking

http://blazedemo.com/

4
Logic Controllers - Random & Random Order Controllers
  • Random Controller

  • Random Order Controller

Demo Site:

Registration

http://blazedemo.com/register

Login

http://blazedemo.com/login

Flight Booking

http://blazedemo.com/

5
Logic Controllers - Interleave Controller

Logic Controllers - Interleave Controller

6
Logic Controllers- Throughput Controller (Build a Distributed Load Test)

Logic Controllers- Throughput Controller (Build a Distributed Load Test)

How to create a Database Test Plan (Load Test on Database)

1
How to create a JDBC Test Plan(Load Test on Database)

Step1: Add Oracle JDBC driver jar to JMeter lib folder then restart JMeter

Step2: Add Thread Group in JMeter

Step 3 - Add JDBC Connection Configuration | Provide the details of our DB

Step 4 - Add JDBC Request

Step 5 - Add Listeners

Step 6 - Run and validate

2
How to create Assertions for JDBC Test Plan(Load Test on Database)

How to run JMeter from Command Line (non GUI mode) & view results

1
How to run jmeter from Command Line (non GUI mode) & view results
2
How to create HTML Reports from command line(non GUI mode)

Step 1 : Create Test Plan and save it (and close)

Step 2 : Open command line and change dir to jmeter/bin

Step 3 : Execute command:

– To create report at the end of the test

jmeter -n -t “location of the jmeter script” -l “location of result file” -e -o “location of the output folder”

– Create report from a standalone csv file

jmeter -g “location of csv file” -o “location of output folder”

Step 4 : Analyse HTML (Dashboard) Reports

How to test FTP upload and download (FTP Request Sampler)

1
How to test FTP upload and download (FTP Request Sampler)

Sample FTP website : https://dlptest.com/ftp-test/

Step 1 : Add a FTP Request Sampler

Step 2 : Add FTP connection parameters

FTP URL: ftp.dlptest.com

FTP User: dlpuser@dlptest.com

Password: 5p2tvn92R0di8FdiLCfzeeT0b

Step 3 : Test a FTP GET and validate (get file from ftp server to local system)

Step 4 : Test a FTP PUT and validate (transfer file from local to ftp server)


(WinSCP client is used in this demo for physical validation of file transfer.

You can use other FTP clients like FileZilla..)


JMeter PreProcessor & PostProcessor

1
JMeter PreProcessor & PostProcessor

A processor is used to modify the Samplers in their scope.

There are 2 Types of processors:

1.Pre-processor

2.Post-processor

Pre-processor:

▪Pre-processor executes some action before making Sampler Request.

Post-processor:

▪Post-processor executes some action after making a Sampler Request.

JMeter Plugins Manager

1
JMeter Plugins Manager

Correlation

1
Correlation with Regular Expression Extractor
  • What is Correlation?

  • Why is it required?

  • How to use Regular Expression Extractor

API/Webservices Testing using JMeter

1
API/Webservices Testing using JMeter
  • What is API

  • API Vs Webservice

  • Types of Webservices

  • API/Webservice Testing using JMeter

Parameterization in JMeter

1
Parameterization in JMeter & Data Driven Testing using CSV file

Functions & Variables in JMeter

1
Functions & Variables

JMeter functions are special values that can populate fields of any Sampler or other element in a thread

syntax : ${__functionName}

${__functionName(var1, var2, …..)}

Variable : container that can store a value which can be referenced by any other element within the thread. (local to a thread)

syntax : ${variableName}

▪${__log(“Hi welcome”)}

▪${__time(dd MM YYYY HH mm ss)}

▪${__threadNum}

▪${__intSum(2,5,sum)}

▪${sum}

▪${__intSum(2,5,sum)}

▪${__Random(0,10)}

▪${__Random(0,10, MYVAR)}

▪${__RandomString(5)}

▪${__RandomString(10,abcdefg)}

▪${__RandomString(6,a12zeczclk, MYVAR)}

Templates in JMeter

1
Templates in JMeter
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!

Be the first to add a review.

Please, login to leave a review
cd8b59d718df174478882e0451c63bd6
30-Day Money-Back Guarantee

Includes

7 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion