更新用例执行信息
功能介绍
更新用例执行信息
调用方法
请参见如何调用API。
URI
POST /v4/{project_id}/testcases/execution-info/batch-update
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目ID |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
result_code |
否 |
Integer |
结果 |
status_code |
否 |
Integer |
状态 |
execute_latest_time |
否 |
String |
最近执行时间 |
execute_duration |
否 |
String |
执行时长 |
execute_times |
否 |
Integer |
执行次数 |
total_execute_times |
否 |
Integer |
总执行次数 |
task_uri |
否 |
String |
任务uri |
version_uri |
否 |
String |
分支/迭代uri |
executor_id |
否 |
String |
执行人ID |
execute_status_code |
否 |
Integer |
执行状态 |
case_list |
否 |
Array of TaskCaseExecuteBeanInfo objects |
用例列表 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
uri |
否 |
String |
用例URI |
execute_latest_time |
否 |
String |
最后执行时间 |
execute_duration |
否 |
String |
执行时长 |
result_code |
否 |
Integer |
结果Code |
status_code |
否 |
Integer |
状态Code |
execute_times |
否 |
Integer |
执行次数 |
total_execute_times |
否 |
Integer |
执行总次数 |
success_times |
否 |
String |
执行成功次数 |
executor_id |
否 |
String |
执行人ID |
version_uri |
否 |
String |
版本URI |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
status |
String |
参数解释: 本次请求的处理状态 取值范围: success|error |
result |
ResultValueString object |
参数解释: 请求结果 取值范围: 非必返 |
error |
ApiError object |
参数解释: 错误信息 取值范围: 非必返 |
request_id |
String |
参数解释: 请求的唯一id 取值范围: 非必返 |
address |
String |
参数解释: 本次请求的受理的服务地址。 取值范围: 非必返 |
状态码:400
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释: 接口调用失败错误码 取值范围: 不涉及 |
error_msg |
String |
参数解释: 接口调用失败错误信息 取值范围: 不涉及 |
状态码:401
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释: 接口调用失败错误码 取值范围: 不涉及 |
error_msg |
String |
参数解释: 接口调用失败错误信息 取值范围: 不涉及 |
状态码:404
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释: 接口调用失败错误码 取值范围: 不涉及 |
error_msg |
String |
参数解释: 接口调用失败错误信息 取值范围: 不涉及 |
状态码:500
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释: 接口调用失败错误码 取值范围: 不涉及 |
error_msg |
String |
参数解释: 接口调用失败错误信息 取值范围: 不涉及 |
请求示例
post https://{endpoint}/v4/2e8b14eb90d54b6c9bc4c0b5cde1f449/testcases/execution-info/batch-update { "result_code" : 1, "status_code" : 1, "execute_latest_time" : "2021-01-01 00:00:00", "execute_duration" : "00:00:42", "execute_times" : 1, "total_execute_times" : 1, "task_uri" : "wefwaef413546", "version_uri" : "b9eaw1es2fdb12", "executor_id" : "11hj3qaw4jnkdsfts", "execute_status_code" : 0, "case_list" : [ { "uri" : "b9eaw1es2fdb12", "execute_latest_time" : "2021-01-01 00:00:00", "execute_duration" : "00:00:09", "result_code" : 0, "status_code" : 7, "execute_times" : 46, "total_execute_times" : 46, "success_times" : "1", "executor_id" : "11hj3qaw4jnkdsfts", "version_uri" : "b9eaw1es2fdb12" } ] }
响应示例
状态码:200
OK
{ "status" : "success", "result" : { "value" : "success" } }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
404 |
Not Found |
500 |
Internal Server Error |
错误码
请参见错误码。