Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I am not able to update test cycle for adding test cases in zephyr scale api.

Devyani Konde
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2023

Created test cycle using below  json payload:

POST: https://api.zephyrscale.smartbear.com/v2/testcycles

{
"projectKey": "APT",
"name": "Test_cycle_1",
"description": "Regression test cycle 1 to ensure no breaking changes",
"plannedStartDate": "2018-05-19T13:15:13Z",
"plannedEndDate": "2018-05-20T13:15:13Z"

}

Then I am updating the test cycle using below  json payload:

PUT: https://api.zephyrscale.smartbear.com/v2/testcycles/{TESTCYCLEKEY}

{
"id": 1,
"key": "APT-R810",
"projectKey": "APT",
"name": "AUTO_MAVEN_TEST_22",
"statusName": "Done",
"project": {
"id": 299791
},
"status": {
"id": 5414353
}
}

 

I am getting below response:

{
"errorCode": 400,
"message": "Test cycle project not Found",
"status": "Bad Request"
}
Please suggest me how to update test cycle to add test cases.

2 answers

0 votes
Andy Barbet
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2023

Presumably you have entered the required key into the URL, i.e. 

https://api.zephyrscale.smartbear.com/v2/testcycles/APT-R810

You can get user community support from Zephyr Scale's own forum here: ZS Community

0 votes
Wasim
Contributor
November 6, 2023

Hi @Devyani Konde

 

Welcome to the Atlassian Community!!

As you mentioned above we clearly saw the error is related to the Authentication.

please go through this link which is shared below for better understanding🤞

Troubleshoot REST API Issues

 

Also accept the answer if it helps you and for other who will be visiting this thread in future😊.

 

Regards,

Wasim

Devyani Konde
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2023

Hi @Wasim ,

 

I successfully created the test cycle using the provided authentication bearer token. However, I am encountering an error specifically when attempting to update the test cycle using the same token. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events