What is JMeter?
JMeter is an software that can be used to execute performance testing, load testing and functional testing of your web applications. JMeter can also simulate a heavy load on a server by creating tons of virtual concurrent users to web server.
Please find more details here
In this test I will show you how we can run a simple API load test using Jmeter:
API on which load test will be run:
http://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22
You can find details info here:
1. Open Apache Jmeter
2. Add a new thread group
Configure thread group using following settings:
Number of Thread (user) L:10
Ramp-Up Period: 5
Loop Count = Foreever
Scheduler = true
Duration : 30 second
3. add a new sampler
Configure HTTP Request using following settings:
Server: samples.openweathermap.org
Path : /data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22
4. Add a New Config element
You can add different heads information using HTTP header manager. (not required for this load test)
5. Add a new Listener
6. Execute the test and see the result
Details about different configuration option :
Number of Threads: Number of users to simulate
Ramp-up Period: To initialize the users on to server
Loop Count: Denotes the number of times the user to perform a particular test
Delay Thread creation until needed: Waits until the completion of the time mentioned to create threads
Scheduler :To enable or disable the scheduler
Start Time: Available only after enable of scheduler, used to mention at what point of time the execution need to be started
End Time :Available only after enable of scheduler, used to mention at what point of time the execution need to be stopped
Duration :Available only after enable of scheduler, used to mention how long the execution is to be happened.
Note: If duration time is mentioned, then the end time will be ignored
Note: If duration time is mentioned, then the end time will be ignored
Startup delay :Available only after enable of scheduler, used to choose the startup delay
No comments:
Post a Comment