JMeter Complete Step by Step from scratch | 2024

preview_player
Показать описание
TOPICS
00:00 WHAT IS JMETER

05:27 INSTALL & START JMETER ON WINDOWS

22:37 INSTALL & START JMETER ON MAC OS

26:09 UNDERSTAND GUI

37:21 TEST PLAN

38:01 HOW TO CREATE 1ST TEST IN JMETER

43:31 THREAD GROUP

48:49 SAMPLERS

53:33 LISTENERS

01:05:12 RECORDING

01:23:00 REAL WORLD LOGIN SCENARIO RECORDING

01:34:55 RECORDING WITH BLAZEMETER

01:44:30 CMD

02:03:26 BEST PRACTICES

JMETER is a performance testing tool

Performance test application
Build using Java
Free & Open Source
Recording
CLI
Reports
-

HOW TO INSTALL JMETER
Windows | Mac | Linux
Step 1 : Check java is installed on your system java -version
Step 3 : Unzip and keep Jmeter folder at any location
Step 4 : Start JMeter
How to install JMeter on Linux | amazon aws ec2
-

JMETER GUI

The JMeter interface is divided into following sections:
Menu Bar:
Toolbar:
Test Plan:
Tree View:
Editor:
Results Tree:
Time, Logs, Users
-

TEST PLAN
A test plan describes a series of steps JMeter will execute when run
Tells JMeter how to test your website or app, like how many users to simulate and what actions they should perform
-

HOW TO CREATE FIRST JMETER TEST

Step 1 - Start JMeter
Step 2 - Create a Test Plan
Step 3 - Create a Thread Group (Users)
Step 4 - Add a Sampler (Http)
Step 5 - Add Listeners
Step 6 - Run the Test
-

THREAD GROUP
A Thread Group in JMeter controls how many virtual users will access your website or app during the test

Step 1 - Right-click on the Test Plan, go to Add > Threads (Users)> Thread Group
Step 2 - Check the fields and configuration of Thread Group
-

SAMPLERS

Step 1 - Right click on Thread Group > Add > Sampler
Step 2 - Add HTTP Request Sampler
Step 3 - Configure the Sampler to send a request to a website (e.g., Google)
Step 4 - Check other Samplers
-

LISTENERS
Capturing and Viewing Results

Step 1 - Right click on Thread Group Or Sampler > Add > Listener > View Results Tree
Step 2 - Can add more Listeners
Step 3 - Run the test (Ctrl + R )and check results in Listeners
Step 4 - Check other Listeners
1. View Results in Table
2. View Results Tree
3. Aggregate Report
4. Graph Results
5. Summary Report
6. Simple Data Writer
-

RECORDING

Step 1 - Create a new Test Plan and add a Thread Group
Step 2 - Add a Recording Controller. This is where the recorded Samplers will be placed
Step 3 - Add an HTTP(S) Test Script Recorder
Configure the Recorder:
Port: Choose a port for the proxy server (e.g., 8888)
Target Controller: Select the Recording Controller
Requests Filtering: Exclude any unwanted requests (e.g. images, CSS)
Step 4 - Set your browser to use JMeter as a proxy on the specified port
Step 5 - Start the Recorder: Click the "Start" button
Step 6 - Browse your Website: Perform the actions you want to record
Step 7 - Go back to JMeter and click "Stop”

USING RECORDING TEMPLATES

HOW TO USE BLAZEMETER TO RECORD JMETER TESTS

Step 1 - Create Blazemeter Account
Step 2 -Get Blazemeter Extension
Step 3 - Login to Blazemeter
Step 4 - Record test
Step 5 - Save JMX
Step 6 - Add JMX in JMeter and Run

-

HOW TO RUN JMETER FROM COMMAND LINE

- GUI consumes memory, slower
- Integrate with any external process CI CD
How to run JMeter test from command line
How to log results
How to see command line help and options
How to run from any location on your system (add in Path env variables)
Step 1 - Open Command line > Goto JMeter’s bin folder > Run command
Windows
jmeter -n -t “location of your test file” -l “location of results file”
Linux / Mac
sh jmeter -n -t “location of your test file” -l “location of results file”
-

HOW TO CREATE HTML REPORTS FROM COMMAND LINE & GUI
How to create html dashboard reports from command line
How to create html dashboard reports from standalone csv result file
Study the html dashboard reports
How to generate from GUI
Step 1 : Create a test plan or use existing test plan
Step 2 : Open cmd line goto jmeter bin folder
Step 3 : Run commands
Create report at the end of the test
jmeter -n -t “location of test file” -l “location of result file” -e -o “path of reports folder”

Create report from a standalone csv file
jmeter -g “location of your result file” -o “location of reports folder”
-

BEST PRACTICES

BEFORE DURING AND AFTER PERFORMANCE TEST


#jmeter

▬▬▬▬▬▬▬

Share with all who may need this

If my work has helped you, consider helping any animal near you, in any way you can

Never Stop Learning
Raghav Pal

---
Рекомендации по теме
Комментарии
Автор

Oh just seeing this.
So happy for this, you are a great mentor and tutor I must say.

Thank for all you have done so far in the testing world.

Ever since I started my testing journey, I have never joke with any of your videos. Thanks for putting this together

I believe more update are coming from your end

DGlobal_Analyst
Автор

Thanks for taking your time to explain this. I am about to create a new video where I analyze the impact of infrastructure on latency and your video really help me get up to speed into load testing. Now that I watched everything, I can now build on top of it. Thanks again for saving me time of frustration I would be facing if I had to read the documentation.

techwitheds
Автор

Thank you sir for this informative video. Sir, Do you provide the live training? I mean I want to learn Jmeter in Detailed.

donatesmile
Автор

hi mate great lecture, am still not clear on how to organise a suite of tests that cover the different types of testing ie load, stress, spike how do you structure your framework?
also when executing are we running in a cloud machine or a local laptop?

bcoleone
Автор

Thanks for the contents.
Can you please provide a session on Integrating Jmeter with Taurus to view results and reporting in windows?

bijilinroy
Автор

Sir, please post Masterclass videos for Loadrunner, Neoload, Dynatrace and TOSCA

smarthari
Автор

Hello Raghav sir, is there any plan of doing a tutorial on “Performance Tuning for SQL server” please??

ashishnaidu
Автор

Dear Raghav could you help with TOSCA Tricentis Master Class please?

nsekakalemba
Автор

Sir Please teach Splunk, appdynamics, agile concept

jeevithacs