Ask a Question

Automations Custom Format

SOLVED
eitak
New Contributor

Automations Custom Format

I'm playing around with the Zephyr Scale API for the purposes of connecting it to automated tests.  I've been trying to upload a custom format zip file per the documentation here, but I keep getting the following failure response:

{
    "errorCode": 400,
    "message": "Malformed zip archive",
    "status": "Bad Request"
}

I'm using content-type = multipart/form-data and using Postman as my http agent.  Is there any other documentation available about what this zip file is supposed to look like?

1 ACCEPTED SOLUTION

Accepted Solutions
chicofaccin
New Contributor

Re: Automations Custom Format

Hi.

I faced the same problem when I set the wrong form data parameter name.

 

Screenshot 2021-04-07 at 10.38.02.png

To fix this problem, the parameter name should be "file".

 

Screenshot 2021-04-07 at 10.36.56.png

 

https://support.smartbear.com/zephyr-scale-cloud/api-docs/#operation/createCustomExecutions

I hope that could help you.

 

Best regards.

View solution in original post

5 REPLIES 5
chicofaccin
New Contributor

Re: Automations Custom Format

Hi.

I faced the same problem when I set the wrong form data parameter name.

 

Screenshot 2021-04-07 at 10.38.02.png

To fix this problem, the parameter name should be "file".

 

Screenshot 2021-04-07 at 10.36.56.png

 

https://support.smartbear.com/zephyr-scale-cloud/api-docs/#operation/createCustomExecutions

I hope that could help you.

 

Best regards.

View solution in original post

eitak
New Contributor

Re: Automations Custom Format

Ah ha! Postman was defaulting to a capital F rather than lower case.  Changing "File" to "file" solved it.

SuboohiShaheen
New Contributor

Re: Automations Custom Format

Hello,

I am also trying to attach result in Zephyr cloud. I am using ReadyAPI/SOAPUI tool. even if I follow the steps you mention I get the attached error.

Can you suggest what is the request body that you are sending?

chicofaccin
New Contributor

Re: Automations Custom Format

I was not able to see the entire message. But it looks like something regarding the projectKey. Could you please paste here the entire error message? 

Screenshot 2021-11-26 at 11.30.53.png

SuboohiShaheen
New Contributor

Re: Automations Custom Format

Hello,
I made few changes and now I am getting attached error.

 

I am passing projectKey: "My project Key" and autoCreateTestCases: " true" in the params.
In Body apart from file i am passing testCycle as text and "

 
"name" : "SoapUI TestCycle1",
"description" : "Regression test cycle 1 to ensure no breaking changes",
"folderId": ******
 
" as value.
 
Not sure if there is any pre-requisite i should have done in Jira Zephyr. Can you please let me know if there is any pre-requisite to complete this API. Also as per API document this API should create new Test cycle with new test case, how does that work? I am implementing this for first time hence really appreciate your help.
cancel
Showing results for 
Search instead for 
Did you mean: