Ask a Question

addTestsToCycle REST API error in Zephyr for Jira (Zephyr Quad?)

ms2jeong
New Contributor

addTestsToCycle REST API error in Zephyr for Jira (Zephyr Quad?)

Purpose

I would like to add each test to a cylce in excel continuously.

 

Excel data input format

---------------------------------------------

testcase issuekey|

---------------------------------------------

testcase-01

testcase-02

...

---------------------------------------------

 

My script

For i = 1 To End Of Excel Rows

        body = {

              "method": 1,

             "projectId": "123456",

            "versionId": "654321",

            "cycleId": "789100"

           "issues": [excel.Cells(i, 1)]

        }

       POST http://myzephyrhost/rest/zapi/latest/execution/addTestsToCycle/

End For

 

Results

Only first request is success,. only "testcase-01" is added to cycle.

but from 2nd request in For loop, addTestsToCycle does not works and "testcase-02", .... were not added to cycle.

 

Question

How Can I solve this error?

 

1 REPLY 1
ms2jeong
New Contributor

I found rerefence site and the rate limitations

https://zephyrdocs.atlassian.net/wiki/spaces/DEVELOPER/pages/33095703/REST+API

 

Rate limits

  • 1,000 requests per hour.

  • 24,000 requests per day.

 

I solved this issue by adding time delay between requests.

 

But If you anyone know better solutions, please let us know it

Thank you.

 

cancel
Showing results for 
Search instead for 
Did you mean: