This section describes how to create an HTTP request. To record a request using an existing client, refer to the Record a test scenario section.
To create an HTTP request in a User Path
In the User Paths node, right-click on a Container (Transaction, page, etc.) and in the context menu, select Insert after > HTTP Request.
In the HTTP Request screen, you can choose between:
Empty: This will create a GET-type request to an existing server or will create a server if none was defined in the project.
From content: In this case, you can specify the content of request and response. You can paste your content that may be retrieved from a third-party tool (for example SoapUI, Postman, Fiddler, etc.). Request: This will create both a request with the methods, the headers and the parameters defined in the content and a server if necessary. Otherwise, it will use the server defined in the pasted content. Response: This will create a recorded response. This optional content may help define the type of response expected from the request. The content stands for an example of response to the request.
Tip: Providing a response content type is helpful for:
Using more easily Variable extractors. For more information, see Variable extractors.
Testing your request in a more efficient way.
Comparing the content of the recorded response with the Check User Path one. For more information, see Check a User Path.
Validating the request more easily.
Warning: It is mandatory to leave a blank line between the last header and the content.
Information: The content of the request is evaluated with the default charset of the operating system. If the request contains characters that are not included in that charset, you can specify a specific charset in the HTTP request header: Content-Type: application/text; charset=utf-8.