2016-08-23 30 views
0

我正在進行zapi/zypher集成,我需要創建一個測試周期運行時間並添加測試用例。ZAPI API:需要API調用才能在測試周期內執行過濾器,以便過濾器中存在的所有測試用例都將添加到測試周期中

測試周期的創建已經完成,但是我找不到任何api調用,通過它我可以添加測試用例。

我沒有在循環中逐個添加測試用例,而是通過JIRA創建了一個過濾器,並希望在該特定測試循環中執行該過濾器,以便過濾器中存在的所有測試用例都將添加到測試循環中。

回答

0
Try this POST : http://localhost:2990/jira/rest/zapi/latest/execution 
Update the Body : 
{ 
    "13377": { 
    "id": 13377, 
    "orderId": 13377, 
    "executionStatus": "-1", 
    "comment": "", 
    "htmlComment": "", 
    "cycleId": -1, 
    "cycleName": "Ad hoc", 
    "versionId": 10001, 
    "versionName": "Version2", 
    "projectId": 10000, 
    "createdBy": "vm_admin", 
    "modifiedBy": "vm_admin", 
    "assignedTo": "user1", 
    "assignedToDisplay": "user1", 
    "assignedToUserName": "user1", 
    "assigneeType": "assignee", 
    "issueId": 10013, 
    "issueKey": "SAM-14", 
    "summary": "Test", 
    "label": "", 
    "component": "", 
    "projectKey": "SAM" 
    } 
} 
相關問題