Testrail Java API:无法将报告附加到测试运行
API端点:
[POST] https:///{{testrail link}}/index.php?/api/v2/add_attachment_to_run/449
标头:{ "Content-Type","value":"multipart/form-data" 在正文
中,我传递键:附件和值:文件路径。 PFA 截图相同。
现在 Postman 上的错误:{“错误”:“没有附加文件或超出了上传大小。” 上传大小
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." }
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
附件
更改为文件类型,而不是文本。Change
attachment
to type File, not Text.