# 说明

获取用例执行记录

# url

https://api.tapd.cn/api/testx/case/v1/namespaces/{namespace}/repos/{repo_uid}/versions/{repo_version_uid}/cases/{case_uid}/executions

# 支持格式

JSON

# HTTP请求方式

GET

# 请求数限制

一次获取一批数据,不传默认获取10条。

# 请求参数

# request

字段名 必选 类型及范围 说明
Namespace string 命名空间/项目唯一标识
CaseUid string 用例UID
PageInfo Pageinfo 分页信息
Ordering string 排序字段
RepoUid string 仓库UID
RepoVersionUid string 仓库版本UID

# pageinfo

字段名 必选 类型及范围 说明
Offset uint32 分页偏移位置
Limit uint32 每页数量

# 返回结果

{
    "Error": null,
    "Data": [
        {
            "SourceName": "测试",
            "SourceUid": "case-xx",
            "Executor": "xx",
            "StartExecuteTime": "",
            "EndExecuteTime": "2025-07-01 17:02:59",
            "ExecuteState": "FAIL",
            "Message": "",
            "BugCount": "0",
            "LinkData": {
                "DesignUid": "xxxx"
            },
            "Source": "DESIGN"
        }
    ],
    "TotalCount": 1
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

# 测试用例执行记录字段说明

# CaseExecution

字段名 类型及范围 说明
SourceName string 执行源名称
SourceUid string 执行源UID
Executor string 执行人
StartExecuteTime string 开始执行时间
EndExecuteTime string 结束执行时间
ExecuteState string 执行状态
Message string 执行消息
BugCount uint64 缺陷数量
LinkData google.protobuf.Struct 关联数据
Source string 执行来源
上次更新: 2025-07-22 11:19:54