Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

JMETER

Performance Testing tool.

Why JMETER is popular:


 Open source
 Jmeter is built on JAVA. Run on any platform – Windows, MAC, Linux, Solaris.
 Scripting is not required.
 Jmeter GUI is user friendly

JMETER First look:


Test Plan:
Consists of all actions and components you need to execute your performance test script

Work bench: Is removed currently.

Record & Play: Non-Test Element:


Test Plan -> Non Test Element -> HTTPS Test script Recorder

Go to Firefox -> Network settings – enable the port. 8888


Insert certificate for HTTPS. Located in bin folder

Chrome Browser:

Install the blazemeter plugin.


Jmeter accepts the .jmx files

Thread Group:
Running same scenario multiple times.
Number of threads:
Rampup Period in seconds
Loop count

Results: Go to Listeners
 View Listen tree
 Aggregate report
 Summary Report
 Graph Results
Samples – No of users hit the specific request [A click on the button in a particular page. ]
Average – Measured in milli seconds. Average time taken to hit the sample to get the response.
Min – Measured in Milli seconds. Minimum time taken to hit the sample to get the response.
Max – Measured in Milli seconds. Minimum time taken to hit the sample to get the response.

Error: No of errors taken

Throughput: Server is able to handle how many requests per second. No of requests processed by the
server.

Thread Group Plugins:


Ultimate thread Group
Concurrency thread Group

Session cookie:
If a FB/Gmail login is entered, it shall send the Profile of that particular user which is called session
cookie.
In the login page the cookie is stored(SET).
To add cookie: Thread->Add->Config Element-> HTTP cookie Manager

Assertion: Response, size and Duration – are important assertions.

Response -> text -> patterns to test (add the text)


Listener -> Assertion results.

Controller:
It is a container. Where all the requests are kept in a container(folder)

Some frequently used controllers:

In thread group create a recording controller and use it as Target controller.

Module controller – It will list all the modules which we have created earlier can be reused to run it.
Run time controller – give the time like 15 mins, so it will run the sampler for 15 mins.

Random controller – will run the samples in random way.

You might also like