Elements of test plan in JMeter

Components or elements in JMeter consists of at least one thread group. We may have combinations of elements in the thread group and each element is designed for a specific purpose.

Samplers: –

The type of request user is sending to the server can be recognized by the samplers. User request could be JDBC Request, HTTPS request etc…

Samplers: – FTP Request, HTTP Request, JDBC Request, BSF Sampler, Access Log Sampler, SMTP Sampler, Java Request, LDAP Request, JSR 233 Sampler, TCP Sampler, JMS point-to-point, Junit Request, Mail Reader Sampler, SMTP Sampler, Bolt Request, Mango DB Script

We will learn about some of request’s frequently used and learn in details of each sampler further.

FTP Request: – user can test the performance of an FTP server. By using the Request sampler controller can “upload file” and “Download file” from the FTP server.

HTTP Request: – User can send the HTTP/HTTPS request to a google site/webserver and retrieve files.

JDBC Request: – User can test the performance of database by sending a SQL query to the data base and retrieve data.

BSF Sampler: – Bean Scripting Framework/Bean Shell Sampler sends a request to the server and wait for the response.

Logic Controllers:

Controllers of a thread group allows a user to set the number of threads for each group. If a user sets 100 as number of thread’s, then JMeter will simulate 100 user requests to the server under test.

Listeners: –

Show the results in different formats like graph, tree, table and log file of the test execution.

Configuration elements: –

Some of the commonly used configuration elements are CSV data set config, HTTP Cookie Manager, Login Config Manager, HTTP request Defaults, FTP request Defaults.

Assertions: –

Assertion is used to validate the response of the sampler request sent to the server at a run time with the actual result vs expected result. We can also add assertion to the child of sampler.

Timers: –

Timers in JMeter will allow to delay in each request send from the thread and it is used to analyze the overload problem by making too many requests at a short period of time.

As in real time visitors arrive to the website at various intervals.

Processor: –

Post-processor runs after the sample request is executed and process the response data and extract values from it.

Pre-processor runs before the sample request is executed. It is mostly used to modify or update the settings of a sample request before it runs.

Purecane
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like