Forum Discussion

ms2jeong's avatar
ms2jeong
New Contributor
12 months ago

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?