Apache JMeter is an Apache project used to in load test, to evaluate the performance of the applications. Let's get started in few simple steps in creating a simple test to understand the basic features of JMeter. Accessing JMeter -the package can be downloaded from the Apache JMeter - Download Apache JMeter website and extracted, saved in the preferred location from where it could be used. The necessary pre-requisite is provided on the website. Open the tool in windows OS by navigating to the path and double clicking the batch file, once the tool is opened Navigate to file->new->Test Plan add necessary info and save the file. Once the Test Plan is created, Right click on the test plan and create a thread Group defining the total number of users, ramp-up time, etc.. to be used in the test. Adding the users- ramping up and ramping down, here the users are10 and minutes to ramp-up (steadily increase the user count/simulation to do the similar actions) in the 20 seconds.
Adding listeners to see the results, here we are seeing 2 listeners View results tree and View Results in table, once the test plan is run the below information can be seen. View Results Tree View Results in Table
New Test Plan creation in Apache JMeter
Adding Samplers
Notes:
- Create a test plan
- View results
- Results tree
- Results in table
- Assertion
- Timer
- Listener
- Thread Group
- Ramp up
- Ramp down
- Heap dump
- Enable Debug
- HTML Report Viewer
- Log Level
- Trace
- Log Level
- Start->Remote->Stop+All
- Test/Sampler-> FTP,HTTP, JDBC, API
- View results