In this
post, I am going to explain how to create, save and run a basic test plan.
Step 1: Open JMeter and create new Thread Group.
Right click
on Test Plan -> Add -> Threads -> Thread Group
Change Thread
Group name to “My Application”, Use other defaults (Number Of Threads, Ramp-up
time etc.,) as it is.
Step 2: Add Default HTTP Request element.
Right click
on “My Apllication” -> Add -> Config Element -> HTTP Request Defaults.
Rename the
Config element to “My URL”.
Add server
name to the web site you want to test, here I am going to use “self-learning-java-tutorial.blogspot.in”.
So I gave Server name or IP as “self-learning-java-tutorial.blogspot.in”.
Step 3: Add HTTP Requests sampler.
Right click
on “My Application” -> Add -> Sampler -> HTTP Request
Rename
sampler as Home Page.
Step 4: Add another HTTP Request sampler
Right click
on “My Application” -> Add -> Sampler -> HTTP Request
Rename
sampler name as ” Features Of Java”, and
Update path
field to “/2014/03/features-of-java.html”.
Step 5: Add listener
Add a
listener Aggregate report.
Right click
on “My Application” -> Add -> Listener -> Aggregate Report.
Rename the
Aggrgate report to “Test Reports”
In the Write
All Data to a File section, enter the file name, to save the results.
Step 6: Save test plan
File -> Save Test Plan As
Give a name
to the file, I given “My_Application.jmx”
Step 7: From Run menu, run test plan.
Run ->
Start
Go to Test
Reports, you will see following output.
Explanation of column headings in Aggregation
report
Column Heading
|
Description
|
Label
|
The label
of the sample
|
Samples
|
Number of
samples for the URL
|
Average
|
Average
time of a set of results
|
Median
|
The time
in the middle of a set of results
|
90% line
|
Maximum
time taken for the fastest 90% of samples
|
95% line
|
Maximum
time taken for the fastest 95% of samples
|
99% line
|
Maximum
time taken for the fastest 99% of samples
|
Min
|
Minimum
time for the samples
|
Max
|
Maximum
time for the samples
|
Error %
|
Percentage
of requests with errors or failures
|
Throughput
|
Throughput
measured in requests per unit of time
|
KB/sec
|
Throughput
measured in KiloBytes per second
|
No comments:
Post a Comment