【发布时间】:2020-03-27 16:59:39
【问题描述】:
我正在尝试使用堆栈溢出参考通过空手道框架上传 zip 文件:put-requests-to-upload-a-file-in-form-data-using-karate 和空手道文档upload.feature
请在下面找到代码:
Given path 'upload'
And header Content-Type = 'application/zip'
And multipart file code = { read: 'file:tests/create/export.zip', filename:'export.zip', contentType: 'application/zip' }
When method POST
Then status 200
我们收到的错误是httpStatusCode="500"><links/><message>No ZIP data entries were found to import.</message>
【问题讨论】: