Send messages

Once you have created your messages, you can send them to the API. In the chapter below, you will find information on how to send messages with the Tricentis Tosca API Scan.

Send messages

Select a message in the project tree and click the Run button in the API Scan Home menu.

Alternatively, you can send your message by pressing Enter.

Request message

The response message that you receive is shown in the Payload tab:

  • The status bar displays the status of the sent message.

  • Status Code and Response Time (ms) contain the values for the current response.

Response message

If you want to see the headers used in the response message, show the HTTP header list.

To do so, click the Headers arrow icon.

Send text messages

Tricentis Tosca API supports creating and sending plain text messages.

If your project is empty, the API Scan displays a folder and an empty message by default.

Default folder and message

You can copy and paste your text directly into the empty default message, or create a new message.

To do so, follow the steps below:

  1. Right-click on a folder, and select Create Message from the context menu.

Create message

  1. Copy your text and paste it directly into the Payload tab.

    When you add text in the payload, the Method automatically changes from GET to POST.

  1. Define the Endpoint of your message.

Send text message

  1. To send your message, click the Run button in the Home menu or press Enter.

You can export your API messages, define Module Attributes and verify their values.