Run file messages

Tricentis Tosca API Scan enables you to read and write files dynamically using a file connection.

File support allows you to perform the following actions:

  • READ: adds the file content the payload.

  • WRITE: saves the payload to the location you specified as the Endpoint.

To run file messages, follow the steps below

  • In the Endpoint field, specify a file path with the prefix file://.

  • From the Method drop-down menu, select READ or WRITE.

  • Click Run to run the message.

File message in API Scan

After running your file messages in API Scan, you can export them to Tosca Commander. This allows you to use the message information to define Module Attributes and verify their values. Depending on what you want to test, you can export the messages as an API, XML, or JSON TestCases.