A JMeter sampler is a fundamental building block in a JMeter test plan. It is responsible for generating requests to a server and capturing the server’s responses.
Each sampler (except Test Action) generates one or more sample results. The sample results have various attributes of success/failure, elapsed time, data size, etc.
For more details regarding JMeter Sampler, you can check the blog.
Types Of JMeter Samplers
1) HTTP Request sampler
This is the most common sampler in JMeter. It sends an HTTP request to a web server and captures the response.
2) JDBC Request Sampler
JDBC Requests Sampler is used to test databases. It lets the user send JDBC Requests consisting of SQL queries to the server database. To use this sampler one needs to set up a JDBC connection to the server.
now. Read More
3) FTP Request Sampler
FTP Request Sampler allows sending an FTP “retrieve/download file” or “upload file” request to an FTP server.
4) TCP Sampler
This sampler can use to send raw TCP packets to a server and capture the response.
5) SMTP Sampler
If you want to test a mail server, you can use an SMTP sampler. This sampler is used to send email messages using the SMTP protocol.
6) Flow Control Action
Flow Control Action is a sampler that is intended for use in a conditional controller. Rather than generate a sample, because the test element either pauses or stops the selected target.
Overall, JMeter samplers are an essential component of load testing and performance testing. They allow you to simulate different types of user behavior and measure the performance of your applications under different conditions.
For more details regarding Apache JMeter: Click here.
That’s all about JMeter Sampler.
Leave a Comment