First install Java and then install JMeter.
After that open JMeter and go to File menu and select Templates
It will add the following menu items to the Test Plan
You can record your test cases using this Test Plan.Now, Go to Workbench menu item in JMeter.
Under Global settings, include the port number as any port number.(ex:8888)
Fill up the following details too.
Target Controller: Specify where you want your recordings to display.In my case i wanted them under thread group.
Grouping: I have selected “do not group samplers”. You can choose grouping your test cases since it helps you to categorize your test cases.
Leave rest of the fields to their defaults and save the script recorder.
Now go to thread group and define number of threads, loop count and ramp-up period.
In order to record your test cases you need to create a local proxy.Therefore, define local host as a proxy in your browser settings.In my case i use chrome browser.Therefore go to it’s proxy settings and click on LAN settings.Add proxy address as “local-host” and port as the port number your specified in global settings of HTTP(S) Test Script Recorder menu item.(In my case it’s 8888).
Now you are ready to record your first test case for login function using JMeter.
In JMeter, go to HTTP test script recorder under workbench menu.And open it and Click on “Start” button.
Go to your browser and enter URL of your application.And login to your application.JMeter will record all these actions and store them under Thread Group menu.
In the results tree under work bench menu you can see all the samplers/requests that sent to the application server and their responses.
Instead of the result tree, you can use graphs or any other listeners to check the results of your test cases.