Forum Discussion

msalvador's avatar
Frequent Contributor
3 years ago

API create testCycle fails

Hi guys,

I try to upload execution testcycle via API, but I always retrive error 400: invalid zip file

I tried both with ReadyAPI and Postman but nothing to do.


Here the request:

Connection: close
Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_44_1337453141.1645177980692"
MIME-Version: 1.0
Authorization: Basic cWFmb3JhdXRvbWF0aW9uOlByM3YxbTNkMWM0bDIwMjEh
Content-Length: 587
User-Agent: Apache-HttpClient/4.5.2 (Java/16.0.1)

Content-Type: application/json; name=file
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="file"; filename="file"

"version" : 1,
"executions" : [ {
"source" : "CalculatorTest.add",
"result" : "Passed"
}, {
"source" : "CalculatorTest.multiply",
"result" : "Passed"
}, {
"source" : "RicercacollettivaTest.RicercacollettivaTest",
"result" : "Failed",
"testCase" : {
"name" : "Sample Test Case Marlene"
} ]

Please do not reply with link documentation, because I followed without results

No RepliesBe the first to reply