I am trying to upload a zip file through karate framework using the stack overflow reference: put-requests-to-upload-a-file-in-form-data-using-karate and karate documents upload.feature
Please find the code below:
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
We are getting the error as httpStatusCode="500"><links/><message>No ZIP data entries were found to import.</message>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…