Testrail Java API:无法将报告附加到测试运行

发布于 2025-01-15 18:55:43 字数 401 浏览 3 评论 0原文

API端点:

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

标头:{ "Content-Type","value":"multipart/form-data" 在正文

中,我传递键:附件和值:文件路径。 PFA 截图相同。

现在 Postman 上的错误:{“错误”:“没有附加文件或超出了上传大小。” 上传大小

刚刚好(低于 256 MB)在此处输入图像描述

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)enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人 2025-01-22 18:55:43

附件更改为文件类型,而不是文本。

输入图片此处描述

Change attachment to type File, not Text.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文