addTestsToCycle REST API error in Zephyr for Jira (Zephyr Quad?)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Labels:
-
APIs
-
InsideZephyrSquad
-
Test Cycle
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
