GET
/products/:id/testcases
Get the Use Case List of Product
1. Request Header
Name | Type | Required | Description |
---|---|---|---|
Token | String | Yes | Authentication Token |
2. Request Response
Name | Type | Required | Description |
---|---|---|---|
page | int | Yes | Page No. |
total | int | Yes | Total Use Cases |
limit | int | Yes | Use Cases per Page |
testcases | array | Yes | Use Case List |
∟ id | int | Yes | Use Case ID |
∟ product | int | Yes | Affiliated Product |
∟ branch | int | No | Affiliated Branch |
∟ module | int | No | All Modules |
∟ story | int | No | Related Stories |
∟storyVersion | int | No | Story Version |
∟ title | string | No | Use Case Title |
∟precondition | string | No | Precondition |
∟ keywords | string | No | Keywords |
∟ pri | int | Yes | Priority |
∟ type | string | Yes |
Case Type (feature test | performance test | config | install | security | interface test | unit test | others) |
∟ stage | string | Yes |
Adoptive Stage (unit test stage | feature test stage | integrate test stage | system test stage | smoke test stage | build verification test stage) |
∟ status | string | Yes | Status (to be reviewed | normal | blocked | investigating) |
∟ openedBy | Yes | Created by | |
∟ openedDate | datetime | Yes | Created at |
∟ fromBug | int | No | From the Bug |
∟ fromCaseID | int | No | From the Use Case |
3. Response Example
{ "page": 1,
"total": 6,
"limit": 20,
"testcases": [
{
"id": 10,
"project": 0,
"product": 1,
"execution": 0,
"branch": 0,
"lib": 0,
"module": 0,
"path": 0,
"story": 0,
"storyVersion": 1,
"title": "case1",
"precondition": "",
"keywords": "",
"pri": 1,
"type": "feature",
"auto": "no",
"frame": "",
"stage": "",
"howRun": "",
"scriptedBy": "",
"scriptedDate": null,
"scriptStatus": "",
"scriptLocation": "",
"status": "normal",
"subStatus": "",
"color": "",
"frequency": "1",
"order": 0,
"openedBy": {
"id": 1,
"account": "admin",
"avatar": "",
"realname": "administrator"
},
"openedDate": "2021-12-05T15:05:16Z",
"reviewedBy": null,
"reviewedDate": null,
"lastEditedBy": null,
"lastEditedDate": null,
"version": 1,
"linkCase": "",
"fromBug": 0,
"fromCaseID": 0,
"fromCaseVersion": 1,
"deleted": false,
"lastRunner": "",
"lastRunDate": null,
"lastRunResult": "",
"storyTitle": null,
"needconfirm": false,
"bugs": 0,
"results": 0,
"caseFails": 0,
"stepNumber": 1,
"statusName": "normal"
}
]
}