获取项目的测试单 分享链接

作者:王怡栋 浏览量:3768
GET
/projects/:id/testtasks

获取项目的测试单

请求头

名称类型必填描述
TokenString认证凭证Token

请求响应

名称类型必填描述
pageint当前页面
totalintBug总数
limitint每页Bug数
testtasksarray测试单列表
  ∟  idint测试单编号
  ∟  projectint所属项目
  ∟  productint所属产品
  ∟  namestring测试单名称
  ∟  executionint所属执行
  ∟  buildint所属版本
  ∟  typestring类型
  ∟  owner负责人
  ∟  priint优先级
  ∟  begindate开始日期
  ∟  enddate结束日期
  ∟  descstring描述
  ∟  statusstring状态(wait 未开始 | doing 进行中 | done 已关闭 | blocked 被阻塞)
  ∟  branchint所属分支

响应示例

{
    "page": 1,
    "total": 1,
    "limit": 20,
    "testtasks": [
        {
            "id": 1,
            "project": 0,
            "product": 1,
            "name": "企业网站第一期测试任务",
            "execution": 1,
            "build": "1",
            "type": "",
            "owner": "testManager",
            "pri": 0,
            "begin": "2020-06-05",
            "end": "2021-06-21",
            "realFinishedDate": null,
            "mailto": "",
            "desc": "",
            "report": "",
            "status": "wait",
            "testreport": 0,
            "auto": "no",
            "subStatus": "",
            "deleted": "0",
            "productName": "公司企业网站建设1",
            "executionName": "企业网站第一期",
            "buildName": "第一期版本",
            "branch": 0
        }
    ]
}