根据工程id获取执行机运行必要信息,供执行机调用
功能介绍
根据工程唯一标识获取自定义关键字信息
调用方法
请参见如何调用API。
URI
POST /v1/{project_id}/executor/elements
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
参数解释 项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目唯一标识。 约束限制 不涉及 取值范围 32个字符组成的字符串 默认取值 不涉及 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
参数解释: 用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 约束限制: 必传。 取值范围: 字符串长度不少于1,不超过10万。 默认取值: 不涉及。 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
execute_mode |
否 |
String |
执行模式 |
testcase_infos |
否 |
Array of TestcaseInfo objects |
用例信息 |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
certificates_info |
Object |
证书信息 |
custom_aw_lib_info |
Object |
用于返回执行器 自定义关键字 实体对象 |
global_variable_info |
Object |
用于返回执行器 全局变量实体对象类 |
out_of_order_file_infos |
Array of ResourceEntity objects |
商用、混合云环境下载无序文件 |
public_aw_lib_infos |
Array of PublicAwLib objects |
公共库信息列表 |
security_key_infos |
Array of strings |
安全密钥信息列表 |
testcase_src_infos |
Array of TestcaseSrcInfo objects |
测试用例源信息列表 |
type |
String |
执行器类型 |
参数 |
参数类型 |
描述 |
---|---|---|
create_time |
DateTime |
创建时间 |
create_time_stamp |
Long |
创建时间戳 |
create_time_string |
String |
创建时间字符串 |
create_user |
String |
创建人 |
document_link |
String |
文档链接 |
id |
String |
唯一标识 |
name |
String |
名称 |
net_area |
Array of strings |
蓝区:Blue,绿区:Green,黄区:Yellow |
obs_temp_url |
String |
obs临时url |
product_line |
String |
产品线 |
repo_branch |
String |
仓库分支 |
repo_lib_path |
String |
存公共关键字依赖jar包的目录 |
repo_password |
String |
仓库密码 |
repo_private_key |
String |
仓库秘钥 |
repo_url |
String |
仓库地址 |
repo_username |
String |
仓库用户名 |
update_time |
DateTime |
更新时间 |
update_time_stamp |
Long |
更新时间戳 |
update_time_string |
String |
更新时间字符串 |
update_user |
String |
更新人 |
参数 |
参数类型 |
描述 |
---|---|---|
class_name |
String |
类名 |
file_infos |
Array of ResourceEntity objects |
文件信息列表 |
src_url |
String |
源代码的URL |
uri |
String |
请求的URI |
状态码:201
Created
状态码:401
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 12-18个字符组成的字符串 |
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 3-1000个字符组成的字符串 |
状态码:403
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 12-18个字符组成的字符串 |
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 3-1000个字符组成的字符串 |
状态码:404
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 12-18个字符组成的字符串 |
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 3-1000个字符组成的字符串 |
请求示例
{
"testcase_infos" : [ {
"script_path" : "src/scripts/user/Case_636dc0a5fcd84a7aa6e5a9250b0f9044_1.java",
"uri" : "v92s00010hrk32n0"
} ]
}
响应示例
状态码:200
OK
{
"type" : "SYSTEM_STORAGE",
"public_aw_lib_infos" : [ {
"id" : "b52dfcb23dd3411d827a2a7cec043e2c",
"name" : "mongo-operation-aw",
"create_time_string" : "2022-03-28 21:27:48 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:57 GMT+08:00",
"create_time_stamp" : 1648474068000,
"update_time_stamp" : 1696859697000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-03-28T09:27:48+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:57+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/mongo-operation-aw/test/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "a911bfb4d32847849c68549a36376575",
"name" : "iam-operation-aw",
"create_time_string" : "2022-02-22 18:25:45 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:57 GMT+08:00",
"create_time_stamp" : 1645525545000,
"update_time_stamp" : 1696859697000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-02-22T06:25:45+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:57+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/iam-operation-aw/test/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "2111fa8bc9724b999b2c1fea6bc1e8f2",
"name" : "dubbo-operation-aw",
"create_time_string" : "2022-11-04 17:21:28 GMT+08:00",
"update_time_string" : "2023-06-27 10:59:43 GMT+08:00",
"create_time_stamp" : 1667553688000,
"update_time_stamp" : 1687834783000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-11-04T05:21:28+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-06-27T10:59:43+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/dubbo-operation-aw/5.0.1/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "0d6191de88f84f33860bce772e091d4c",
"name" : "db-operation-aw",
"create_time_string" : "2022-02-21 11:05:27 GMT+08:00",
"update_time_string" : "2023-06-27 10:47:56 GMT+08:00",
"create_time_stamp" : 1645412727000,
"update_time_stamp" : 1687834076000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-02-21T11:05:27+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-06-27T10:47:56+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/db-operation-aw/2.0.1/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "c0c8bae93c814de39cb7af07fb622ecc",
"name" : "redis-operation-aw",
"create_time_string" : "2022-04-07 17:19:27 GMT+08:00",
"update_time_string" : "2023-03-28 17:27:44 GMT+08:00",
"create_time_stamp" : 1649323167000,
"update_time_stamp" : 1679995664000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-04-07T05:19:27+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-03-28T05:27:44+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/redis-operation-aw/2.0.1/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "b3d8cb30b3984c5093cdb80af1d12d8b",
"name" : "niTest",
"create_time_string" : "2022-01-05 09:28:44 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:58 GMT+08:00",
"create_time_stamp" : 1641346124000,
"update_time_stamp" : 1696859698000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-01-05T09:28:44+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:58+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/niTest/1.0.2/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : null,
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "47e9d543184e4535a620c908ea25501c",
"name" : "kafka-opertation-aw",
"create_time_string" : "2022-08-06 11:02:57 GMT+08:00",
"update_time_string" : "2025-04-27 15:13:01 GMT+08:00",
"create_time_stamp" : 1659754977000,
"update_time_stamp" : 1745737981000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-08-06T11:02:57+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2025-04-27T03:13:01+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/kafka-opertation-aw/3.0.6/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "6dd0f347990245468cc3a0fb9f03a955",
"name" : "oneaccess-helper-aw",
"create_time_string" : "2022-05-31 11:22:49 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:57 GMT+08:00",
"create_time_stamp" : 1653967369000,
"update_time_stamp" : 1696859697000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-05-31T11:22:49+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:57+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/oneaccess-helper-aw/test/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "7123e964a44a4cc3a678264253f4cfac",
"name" : "aw001",
"create_time_string" : "2022-01-21 11:37:40 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:57 GMT+08:00",
"create_time_stamp" : 1642736260000,
"update_time_stamp" : 1696859697000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-01-21T11:37:40+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:57+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/aw001/1.0.1/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : null,
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "38671cc6b8eb406a8ef4b30d3c5a17b1",
"name" : "mqtt-operation-aw",
"create_time_string" : "2022-06-20 19:25:00 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:58 GMT+08:00",
"create_time_stamp" : 1655724300000,
"update_time_stamp" : 1696859698000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-06-20T07:25:00+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:58+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/mqtt-operation-aw/test/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "1803d2c5348541b7b5129152755e41ee",
"name" : "obs-operation-aw",
"create_time_string" : "2022-06-11 14:49:29 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:58 GMT+08:00",
"create_time_stamp" : 1654930169000,
"update_time_stamp" : 1696859698000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-06-11T02:49:29+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:58+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/obs-operation-aw/test/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "105c2240f4354fbbb47cb43c1dbe51f0",
"name" : "protocol-operation-aw",
"create_time_string" : "2022-03-19 16:49:28 GMT+08:00",
"update_time_string" : "2023-03-28 17:27:45 GMT+08:00",
"create_time_stamp" : 1647679768000,
"update_time_stamp" : 1679995665000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-03-19T04:49:28+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-03-28T05:27:45+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/protocol-operation-aw/0.0.1-SANPSHOT/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "f2f4a3bc97484d89902c4cf9fcd71cd0",
"name" : "ws-operation-aw",
"create_time_string" : "2022-10-21 17:31:49 GMT+08:00",
"update_time_string" : "2023-03-28 17:27:45 GMT+08:00",
"create_time_stamp" : 1666344709000,
"update_time_stamp" : 1679995665000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2022-10-21T05:31:49+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-03-28T05:27:45+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/ws-operation-aw/2.0.1/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
}, {
"id" : "fbd736a55d36450ebe5cbf1d36e02a67",
"name" : "dblimit-operation-aw",
"create_time_string" : "2023-06-27 16:16:55 GMT+08:00",
"update_time_string" : "2023-10-09 21:54:58 GMT+08:00",
"create_time_stamp" : 1687853815000,
"update_time_stamp" : 1696859698000,
"create_user" : "APITEST_PUBLIC",
"create_time" : "2023-06-27T04:16:55+0800",
"update_user" : "APITEST_PUBLIC",
"update_time" : "2023-10-09T09:54:58+0800",
"product_line" : null,
"repo_url" : null,
"repo_username" : null,
"repo_lib_path" : "Apitest_publicAw/apitest_publicaw_common/dblimit-operation-aw/1.0.0/",
"repo_password" : null,
"repo_private_key" : null,
"repo_branch" : null,
"document_link" : "https://support.huaweicloud.com/intl/en-us/usermanual-testman/cloudtest_01_0034.html",
"obs_temp_url" : null,
"net_area" : null
} ],
"global_variable_info" : null,
"custom_aw_lib_info" : {
"type" : "SYSTEM_STORAGE",
"urls" : [ ]
},
"testcase_src_infos" : [ {
"class_name" : null,
"uri" : "v92s00010hrk32n0",
"src_url" : "src/scripts/user/Case_636dc0a5fcd84a7aa6e5a9250b0f9044_2.java",
"round_cnt" : 0,
"file_infos" : null
} ],
"certificates_info" : null,
"security_key_infos" : null,
"out_of_order_file_infos" : [ {
"file_path" : "ApiTest/API接口测试项目_OqWNNp_alpha/src/scripts/user/Case_636dc0a5fcd84a7aa6e5a9250b0f9044_2.java",
"url" : "https://cnnorth6-dev-apitest.obs.cn-north-6.myhuaweicloud.com:443/testcase/{region}/7b90e408636344328e44bf70bbae8351/13e706b1c3a7481da49c4627b96ad291/636dc0a5fcd84a7aa6e5a9250b0f9044/src/scripts/user/Case_636dc0a5fcd84a7aa6e5a9250b0f9044_2.java?AccessKeyId=HPUAYHCOCMKPCLK7DTS3&Expires=1749730221&Signature=NS30utjDynKidHV%2B04esyQaoiYg%3D"
} ]
}
状态码
状态码 |
描述 |
---|---|
200 |
OK |
201 |
Created |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
错误码
请参见错误码。