Add tests to cycle via API
Hello all,
I am so sorry to bother you every day. Today I want to add a tests into a test cycle via API. I tried to use the following link
https://zfjcloud.docs.apiary.io/#reference/execution/get-execution/add-tests-to-cycle
I created a JWT for the endpoint, used the body which is included on the mentioned link, adjusted the values, but I am getting the error "method field is required.".
If I saw correctly it is not included in the body.
Can you help me with this? As always I am including some screen shots.
Thanks for the tips,
Tibor
Hi apuna12
So we have to use 2 api to add test cases to cycle .
1.To generate the JOB progress token id
API https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions/add/cycle/cycleid
method - POST
response - We will get the job progress token id - for example - 0001608711762447-242ac112-0001-
2. Use the above job progress token id in the api
API - https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/jobprogress/ (https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/jobprogress/job) token id
Method - GET
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/jobprogress/0001608711762447-242ac112-0001
I tried at my end and it is working fine.
Attaching screenshot for your reference