HTTP test step

The HTTP test step makes an HTTP request against a host and endpoint using the defined port, protocol, method, body and headers. The step is successful if the response has a 2XX status code. Status codes other than 2XX cause the test step to fail. In the case of an HTTPS request, the check of the SSL certification can be disabled.

The body of the response is saved as the result of the test step and can be viewed using the Wenenu UI or accessed using the Wenenu API. The maximum length of the response body is 20000 characters. The response is truncated if it exceeds the maximum length.

Warning For security reasons, do not display any sensitive information in the step result.

UI settings

HTTP step UI settings
Figure 1. HTTP step UI settings

1

Arbitrary name of the test step up to 64 characters

2

Test agent that is going to execute the test step

3

Host of HTTP request

4

Port of the HTTP request

5

Protocol of the HTTP request, HTTP or HTTPS

6

If enabled, the SSL certification will not be checked in the case of an HTTPS request

7

Method of the HTTP request

8

The endpoint of the HTTP request

9

(Optional) Body of the HTTP request

10

(Optional) Headers will be sent with the HTTP request. Users can add up to 40 headers.

JSON

{
  "displayName": "Checking web health", 1
  "type": "http", 2
  "id": "2498f0fb-15ae-4528-827f-7f1917fabdb0", 3
  "host": "web1.example.com", 4
  "port": 443, 5
  "protocol": "https", 6
  "disableCertCheck": true, 7
  "method": "post", 8
  "endpoint": "/health", 9
  "body": "{type: \"full\"}", 10
  "headers": [ 11
    {
      "key": "Content-Type",
      "value": "application/json"
    }
  ],
  "agent": { 12
    "type": "standard",
    "id": "162dff466f92c372005cf7055d006b77ac377e01c60ae59f942d74680f2496d1"
  }
}
1 Arbitrary name of the test step up to 64 characters
2 Type of the test step, must be 'http'
3 Version 4 unique identifier of the test step, must be unique within the test scenario
4 Host of HTTP request
5 Port of the HTTP request
6 Protocol of the HTTP request, http or https
7 If true, the SSL certificate won’t be checked in the case of an HTTPS request
8 Method of the HTTP request
9 The endpoint of the HTTP request
10 Body of the HTTP request
11 List of header objects. The defined headers will be sent with the HTTP request.
12 Agent object defining the agent that will execute the test step