As you aware, we are going with the default number of threads in Thread Group. In this exercise, you will learn about HTTP Request element.
HTTP Sampler lets you send an HTTP/HTTPS request to a web server. It also lets you control whether or not JMeter parses HTML files for images and other embedded resources and sends HTTP requests to retrieve them.
Before adding HTTP Sampler, let's add the default settings to your HTTP Requests. To define the default settings for HTTP Requests we are going to add HTTP Request Defaults.
HTTP Request Defaults element lets you set default values that your HTTP Request controllers use.
In this exercise, we are going to add two HTTP requests to the test plan.
Let's dive into the activities.
⌨️ Activities
Add a HTTP Request Defaults by right clicking on Thread Group > Config Element > HTTP Request Defaults.
Add the properties to the HTTP Request Defaults as shown below.
Add a HTTP Sampler by right clicking on Thread Group > Sampler > HTTP Request.
Add / to the Path
Add another HTTP Sampler
Add /actions/Catalog.action to the Path
Save your test plan by pressing Ctrl + S
Push the test plan to the repo to go to next exercise.
HTTP Sampler
As you aware, we are going with the default number of threads in
Thread Group
. In this exercise, you will learn aboutHTTP Request
element.HTTP Sampler lets you send an HTTP/HTTPS request to a web server. It also lets you control whether or not JMeter parses HTML files for images and other embedded resources and sends HTTP requests to retrieve them.
Before adding
HTTP Sampler
, let's add the default settings to your HTTP Requests. To define the default settings forHTTP Requests
we are going to addHTTP Request Defaults
.HTTP Request Defaults element lets you set default values that your HTTP Request controllers use.
In this exercise, we are going to add two HTTP requests to the test plan.
Let's dive into the activities.
⌨️ Activities
HTTP Request Defaults
by right clicking onThread Group > Config Element > HTTP Request Defaults
.HTTP Request Defaults
as shown below.HTTP Sampler
by right clicking onThread Group > Sampler > HTTP Request
./
to thePath
HTTP Sampler
/actions/Catalog.action
to thePath
Ctrl + S