curl - How to generate a query that retrieves the count of test cases in a test cycle? -
we have number of test cycles contain many test cases each.i need exact count of test cases in particular test cycle . have following query :
curl -v -u username:password -h "content-type: application/json" -x 'https://jira.domain.com:port/rest/api/2/search?zql=project = "abc" , fixversion = "6.5" , cyclename in ("spcc-p1.4.2")'
the result of above query in json gives field "total" displays number of times test cycle executed. need number of test cases in test cycle. appreciated thanks
to retrieve count of test cases in test cycle, might have use zapi jira add-on . test cases or executions called in jira cannot retrieved query mentioned far know. please refer : zapi doc
/rest/api/2/project : give project id of projects.
/rest/api/2/project/"projid"/versions : fetch version id's
/rest/zapi/latest/cycle?projectid="projid" : fetch test cycles id's.
finally /rest/.../latest/cycle?projectid="id"&versionid="id"&cycleid="id" : should fetch field "totalexecutions" total number of test cases in cycle.
Comments
Post a Comment