CoAP 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 send a CoAP Request to a CoAP service.

To access
  1. Open the Properties pane.

  2. Select a Send CoAP Request step in the canvas.

  3. In the Properties Pane, select the CoAP tab .

Relevant tasks Send a CoAP request

User interface elements are described below (unlabeled elements are shown in angle brackets).

UI Element

Pane

Body type

Description

Request/Response:

  • XML

  • Text

  • File

  • JSON

Remove. Deletes the contents of the:

  • Body text

  • Entered path

  • Selected value in grid

Request/Response:

  • File

Browse. Enables you to load a non-XML file containing the request/response body.

Request/Response:

  • XML

  • Text (Request only)

  • File

  • JSON

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:

  • Name. The name of the checkpoint as it will appear in the results.

  • Regular Expression. A regular expression representing the expected value.

  • Validate. Compares the actual value with the expected value.

<message body>

Request/Response panes

  • XML
  • Text
  • JSON

The body of the request or response loaded through a file, pasted from a clipboard (Edit > Paste), or manually entered.

Clear

Request/Response:

  • XML

  • JSON

Clears the contents of the Request/Response Body areas.

Import Schema

Request/Response:

  • XML

Imports an .xsd file containing the schema of the request or response.
Load File

Request pane:

  • Text

Loads a non-.xml file containing the request.

Load JSON

Request/Response:

  • JSON

Loads a .json file containing the request or response.

Load XML

Request/Response:

  • XML

Loads an .xml file with the request or response body.

Request Body

Request pane

The format of the request body: XML, Text, File, or JSON.

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.