Forum Discussion

msalvador's avatar
msalvador
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:

POST http://clatlassian02.intranet.previmedical.it:8080/rest/atm/1.0/automation/execution/QA HTTP/1.1
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
Host: clatlassian02.intranet.previmedical.it:8080
User-Agent: Apache-HttpClient/4.5.2 (Java/16.0.1)

------=_Part_44_1337453141.1645177980692
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