简体   繁体   中英

Testrail Java API: Unable to attach report to testrun

API endpoint:

[POST] https:///{{testrail link}}/index.php?/api/v2/add_attachment_to_run/449

Headers: { "Content-Type","value":"multipart/form-data" }

In body I am passing Key: attachment and value: path of file. PFA screenshot of the same.

The error right now on Postman: { "error": "No file attached or upload size was exceeded." }

The upload size is just fine (under 256 MB) 在此处输入图像描述

Change attachment to type File , not Text.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM