Attachments
Upload sample files such as PDFs, images, CSV, Excel, Word, JSON and audio clips to your organization's Attachments library, then reuse them in E2E test steps, upload fields, email notifications, audio steps and API sequence form uploads.
The Attachments library holds sample files your tests can use, such as a PDF to upload or a clip to play into a microphone. You upload a file once and pick it in any step that needs one.
Upload a file
-
Open the library. In the sidebar, under Test studio, open E2E tests, then the Attachments tab.
-
Click Upload. Drop files in the dialog, or choose them. Each file can be up to 50 MB.
-
Check the type. These types are accepted:
Kind Types Images PNG, JPEG, GIF, WebP, SVG Documents PDF, Word ( .docx)Spreadsheets and data CSV, Excel ( .xlsx,.xls), JSONAudio WAV, WebM, Ogg, MP3 Cofactor checks that the contents match the file type. It refuses macro-enabled Excel files.
-
Find it later. Search by file name, or filter by Type: Images, PDFs, Spreadsheets or Documents. Click Apply.
Use a file in a test
Add the file where the step needs it.
-
For a step that uploads a file. Select the action step. In its Attachments section, click Add attachment and pick the file from the library. The agent can reference or upload it during that step. You can upload a new file from the picker as well.
-
For an email notification. Select the Notification step and set the channel to email. In Attachments, add the files to send.
-
For an audio step. Select the Audio input step. In Audio clip, click Choose clip to pick an audio file, or Record to record one in your browser. A recording is saved to the library.
-
For an API sequence upload. In an API sequence step, set Body Type to Form data (multipart). Add a part, switch it to File, and pick the file. See API sequences.
Download or delete a file
- Download. Open the actions menu on a file card and choose Download. The file opens in a new tab.
- Delete. Organization admins see a delete button on each card. Other roles do not.
Check it worked
- The file shows on a card in the Attachments tab, with the right type label.
- The step you edited lists the file in its Attachments section.
- Run the test. The step that uses the file passes.
Go deeper
- Specialty nodes covers the Audio input and Notification steps.
- API sequences covers multipart uploads.
- Core nodes covers action steps.