获取用例脚本详细信息
功能介绍
获取用例脚本详细信息
URI
GET /v4/{project_id}/testcase/{tmss_case_uri}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目ID,固定长度32位字符(字母和数字)。 |
tmss_case_uri |
是 |
String |
TMSS用例uri |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
task_id |
否 |
String |
执行任务id |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
- |
String |
- |
请求示例
get https://{endpoint}/v4/09645c1f3f954a8d9ab29174857cffc5/testcase/v91j0000vl6b2b2e
响应示例
状态码: 200
OK
{ "status" : "success", "result" : { "id" : "10896ab1bab34bd8a81b9751fb5c0f4f", "name" : "123", "changeSign" : 0, "copyFlag" : false, "region" : "cn-north-7", "create_time_string" : "2024-06-21 14:10:05 GMT+08:00", "update_time_string" : "2024-06-21 14:10:10", "create_time_stamp" : 1718950205000, "update_time_stamp" : 1718950210000, "create_user" : "devcloud_devcloud_s00314720_01", "create_time" : 1718950205000, "update_user" : "devcloud_devcloud_s00314720_01", "update_time" : 1718950210000, "tmss_property" : { "name" : "123", "number" : "104", "level" : 2, "node_name" : "其他", "test_type" : 1, "testStep" : "", "expectOutput" : "", "exe_platform" : "apitest", "auto_type" : "1", "test_feature" : "09645c1f3f954a8d9ab29174857cffc5_32559725_defaultFeature", "last_modified" : "2024-06-21 14:10:10", "last_modifier" : "efdb403066474ab08836b9eeaaa23bca", "author" : "1_devcloud_devcloud_s00314720", "creation_date" : "2024-06-21 14:10:05", "activity_id" : "1", "last_result" : "0", "isKeyWord" : 0 }, "project_id" : "23c1c5ba3b3c4e92b8adaab3529913c4", "activity_id" : "1", "package_name" : "scripts.user", "script_name" : "Case_10896ab1bab34bd8a81b9751fb5c0f4f_2", "script_path" : "src/scripts/user/Case_10896ab1bab34bd8a81b9751fb5c0f4f_2.java", "tmss_case_uri" : "v91j0000vl6b2b2e", "aw_instance" : { "setup_aw_list" : [ ], "test_aw_list" : [ { "id" : "6e11373667fe46f9881fd216cd1e4404", "projectId" : "23c1c5ba3b3c4e92b8adaab3529913c4", "changeSign" : 0, "region" : "cn-north-7", "relation" : "", "create_time_string" : "2024-06-21 14:10:10 GMT+08:00", "update_time_string" : "2024-06-21 14:10:10 GMT+08:00", "create_time_stamp" : 1718950210000, "update_time_stamp" : 1718950210000, "create_user" : "devcloud_devcloud_s00314720_01", "create_time" : 1718950210000, "update_user" : "devcloud_devcloud_s00314720_01", "update_time" : 1718950210000, "condition_type" : 20, "condition_statement" : "1000", "aw_type" : 1, "aw_id" : "", "param_type_and_value" : [ ], "check_point_list" : [ ], "variable_list" : [ ], "retry_times" : "", "retry_interval" : "", "by_order" : 0, "is_disabled" : 0, "relation_type" : 0, "custom_header" : [ ], "is_basic" : 1, "special_type" : 0, "alias_runaw" : "" } ], "teardown_aw_list" : [ ] }, "case_variable_list" : [ ], "quality_check_time" : 970970555000, "import_info_list" : [ ], "IsKeyWord" : 0, "all_variable_names" : [ "$${hostURL}(全局参数)" ], "import_edit" : 5, "case_type" : 0 } }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
错误码
请参见错误码。