Encode Attachments

ReadyAPI allows you to use Groovy scripts to work with attachments – for example, extract data from text files, change their encoding, and so on.

This topic describes how to use a Groovy script to encode attachments.

Where to use

There are several ways to run this script:

Example

The following code demonstrates how to encode the specific file with base64 in ReadyAPI:

See Also

Publication date: