HTTP Tab (Properties Pane - API Testing)
Relevant for: API testing only
This tab enables you to define request and response data for your test steps that perform an HTTP Request to a Web Service or REST service.
To access |
|
Relevant tasks | Create a REST service model |
User interface elements are described below (unlabeled elements are shown in angle brackets).
UI Element |
Pane Body type |
Description |
---|---|---|
Request/Response:
|
Remove. Deletes the contents of the:
|
|
Request/Response:
|
Browse. Enables you to load a non-XML file containing the request/response body. |
|
Request/Response:
|
Link Body. Opens the Select Link Source Dialog Box (API Testing) for selecting a data source. |
|
<checkpoint list> |
Response pane |
A list of the checkpoints with the following information:
|
<message body> |
Request/Response panes
|
The body of the request or response loaded through a file, pasted from a clipboard (Edit > Paste), or manually entered (Post form). |
<post form list> |
Request pane:
|
A list of the Post form elements:
|
Clear |
Request/Response:
|
Clears the contents of the Request/Response Body areas. |
Import Schema |
Request/Response:
|
Imports an .xsd file containing the schema of the request or response. |
Load File |
Request pane:
|
Loads a non-.xml file containing the request. |
Load JSON |
Request/Response:
|
Loads a .json file containing the request or response. |
Load XML |
Request/Response:
|
Loads an .xml file with the request or response body. |
UFT One versions 2021 R1 and later: Password |
Request pane:
|
Encrypts the plaintext password entered by you. Use this button to define an encrypted password in the request body. Accordingly, the test output and test report only show the encrypted password instead of the plaintext password. |
Request Body |
Request pane |
The format of the request body: XML, Text, File, JSON, or PostForm. This request body is found in the <test results folder>\Report\Data folder. |
Response Body |
Response pane |
The format of the response body: XML, Text, File, or JSON. This response body is found in the <test results folder>\Report\Data folder. |