What is JMeter?
- Apache JMeter is a popular open-source testing software.
- JMeter is a Java based application for performance testing.
- It is mainly use for testing the Web application or FTP application, but also currently it is applicable in JDBC database connections, functional testing etc.
How Does JMeter Works?
- Open-source : It can be download free of cost.
- User-friendly : JMeter is easy to use and doesn’t take time to get familiar with it.
- Platform Independent : It is pure Java based application so it can run on multiple platforms.
- Visualize Test Result : Test results can be display in a different format such as chart, table, tree and log file.
- Multiple testing strategy : JMeter supports many testing strategies such as Load Testing, Distributed Testing etc.
- Support multi-protocol : All basic protocols such as HTTP, JDBC, LDAP, SOAP, JMS, and FTP are supported by JMeter.
- Record & Playback : Record the user activity on the browser and simulate them in a web application using JMeter.
JMeter protocol support :
- Web – HTTP, HTTPS
- SOAP / REST Webservices
- Database via JDBC
- Message-oriented middleware (MOM) via JMS
- Mail – SMTP(S), POP3(S) and IMAP(S)
- Shell Scripts
JMeter Setup :
- Download and install the latest version of Java.
- After installation and setting up the environment variable, simply go to terminal and run the command “java -version”
- If the Java runtime environment is install successfully, we will see the output as the figure below
- If nothing displays, please re-install Java SE runtime environment.
- Go to the official website of JMeter and download either zip or tgz
- Unzip the zip/tar file into the directory where we want JMeter to be install.
- Once the unzipping is done simply just run the file “/bin/jmeter.bat” to start JMeter in GUI mode.
JMeter Elements :
- Test Plan : It is the top level body of JMeter and explains sequence of steps execute at run time.
- Thread Group : It is a collection of Threads. Each thread represents one user using the application under test. Basically, each Thread simulates one real user request to the server.
- Logic Controllers : It decide the order of processing of samplers in a thread and also offers a mechanism to control the flow of the thread group.
- Test Fragments : Special type of controller that exists on the Test Plan tree at the same level as the thread group element. it is reference by either a Module Controller or an Include Controller.
- Listeners : It shows the results of the test execution. They can show results in a different format such as a tree, table, graph or log file.
- Timers : Timers in JMeter allow us to define a period to wait between each request.
- Assertions : It is used to validate response of the request, that we have sent to the server. Assertion is a process where we verify expected result with the actual result of the request at run time.
- Configuration Elements : It allow us to create defaults and variables to be used by Samplers. They are used to add or modify request made by Samplers.
- Pre-Processor Elements : A Pre-Processor is use to modify the settings of a Sample Request just before it runs, or to update variables that aren’t extract from response text.
- Post-Processor Elements : It execute some action after a sampler request has made. If a Post-Processor is attach to a sampler element, then it will execute just after that sampler element runs.
So this is blog for covering the Basics of JMeter.
I hope you enjoyed it and it helped you!! stay connected for next part of JMeter.