Samplers
tell JMeter send a request to a server.
JMeter provides number of samplers to send requests. To send HTTP
request, you can use HTTP sampler, to send FTP request, you can use FTP
sampler. Some of the samplers supported by JMeter are FTP, HTTP, JDBC, Java
object request, LDAP, SOAP/XML-RPC Request, WebService (SOAP) Request.
By default
JMeter sends the request to the server, in the order of samples configured in
Test Plan tree.
Add HTTP Request sampler to Thread Group
Right click
on Thread Group -> Add -> Sampler -> HttpRequest
HTTP Request
sampler panel looks like following
Following
are the important fields in HTTP Request sampler panel.
1.Server Name or IP
It must set
to server name, where JMeter send the requests.
2. Port Number
By default
port number considered as 80, If your sever listening on different port set to
specific port.
3. HTTP Request
This section
is used to specify request type (GET, POST, HEAD etc.,) and content encoding, HTTP
Client.
4. Path
Specifies
the path to the resource.
5. Parameters, Body Data
This section
is used to send request parameters
6. Send Files with the request
This section
is used to send files to request
7. Proxy server
If proxy
server is in use, set proxy server specific settings here
If you want
to test the response, you can add assertions to this sampler.
Right click
on HTTP Request -> Add -> Assertions -> Choose your assertion
Following
are the list of samplers provided by JMeter.
FTP Request
HTTP Request
JDBC Request
Java Request
SOAP/XML-RPC
Request
WebService(SOAP)
Request (DEPRECATED)
LDAP Request
LDAP
Extended Request
Access Log
Sampler
BeanShell
Sampler
BSF Sampler
JSR223
Sampler
TCP Sampler
JMS Publisher
JMS
Subscriber
JMS
Point-to-Point
JUnit
Request
Mail Reader
Sampler
Test Action
SMTP Sampler
OS Process
Sampler
MongoDB
Script
No comments:
Post a Comment