Download and unzip. Run bin/jmeter.bat, will see the UI to new test plan.
https://jmeter.apache.org/
Stop Test Now
will stop the whole test immediately. Any current samplers are interrupted if possible.
Ramp-Up Period means the time Jemter need to start the Number of Threads
.
Loop Count
is for each thread, that means if we have 5 threads, with loop count 2, the service will get 10 requests totally.
Right click Thread Group
-> Add
-> Sampler
-> HTTP Request
.
Input protocol, IP, port, method, path, etc.
Insert data into Parameters
or Body Data
.
If body data is required for JSON or XML, add appropriate Content-Type
in HTTP Header Manager
.
Right click HTTP Request
-> Add
-> Config Element
-> HTTP Header Manager
.
Content-Type text/xml
Content-Type application/json
Right click the thread group name and click Start
will run tests in this thread group.
Click Start
button in the top of the screen will run all thread group tests.
When you just start the test and want to see the response, to double confirm if the request is feedback correctly, you can add Listener
.
Right click the HTTP request -> Add
-> Listener
-> View Result Tree
.
You can see many other Listeners also.
e.g.
After you have confirmed your service feedback is okay, you can right click View Result Tree
to disable it, if you concern it may impact the overall test performance.
jmeter -n -t my_test.jmx -l log.jtl
Generate HTML report
jmeter.bat -n -t cms-restful-homepage.jmx -l log.jtl -e -o report
Report dashboard overview:
https://jmeter.apache.org/usermanual/generating-dashboard.html