获取用例脚本详细信息
功能介绍
获取用例脚本详细信息
调用方法
请参见如何调用API。
URI
GET /v1/{project_id}/testcase/{tmss_case_uri}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
参数解释 项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目唯一标识。 约束限制 不涉及 取值范围 32个字符组成的字符串 默认取值 不涉及 |
tmss_case_uri |
是 |
String |
测试管理用例uri |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
参数解释: 用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 约束限制: 必传。 取值范围: 字符串长度不少于1,不超过10万。 默认取值: 不涉及。 |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
error |
CommonResponseErrorOfobject object |
统一错误返回 |
reason |
String |
错误原因 |
result |
Object |
结果 |
status |
String |
状态值,如success、error |
请求示例
get https://{endpoint}/v1/09645c1f3f954a8d9ab29174857cffc5/testcase/v91j0000vl6b2b2e
响应示例
状态码:200
SUCCESS
{ "status" : "success", "result" : { "id" : "2371aa35bb264c059fb7ee847463745e", "name" : "123", "deleteFlag" : null, "changeSign" : 0, "planId" : null, "issueId" : null, "addToPlan" : null, "releaseDev" : null, "copyFlag" : false, "source" : null, "region" : "{region}", "status" : null, "create_time_string" : "2024-07-04 15:00:54 GMT+08:00", "update_time_string" : "2024-07-04 15:28:30", "create_time_stamp" : 1720076454000, "update_time_stamp" : 1720078110000, "create_user" : "devcloud_devcloud_s00314720_01", "create_time" : "2024-07-04T03:00:54+0800", "update_user" : "devcloud_devcloud_s00314720_01", "update_time" : "2024-07-04T03:28:30+0800", "tmss_property" : { "name" : "123", "description" : null, "number" : "101", "cataId" : null, "labelId" : null, "tags" : null, "level" : 2, "preparation" : null, "market" : null, "remark" : null, "originUri" : null, "releaseDev" : null, "stage" : null, "moduleId" : null, "releaseId" : null, "uri" : null, "node_name" : "其他", "test_type" : 1, "testStep" : "", "test_step" : null, "expectOutput" : "", "expect_output" : null, "env_type" : null, "exe_platform" : "apitest", "auto_type" : "1", "is_contract_testcase" : null, "is_paraValidator_testcase" : null, "test_feature" : "5a20b8323f3548008bd6e5669567538f_33258721_defaultFeature", "last_modified" : "2024-07-04 15:28:30", "last_modifier" : "efdb403066474ab08836b9eeaaa23bca", "author" : "1_devcloud_devcloud_s003147200", "creation_date" : "2024-07-04 15:05:14", "activity_id" : "1", "owner" : null, "feature_path" : null, "ownerId" : null, "dr_relationid" : null, "applied_product" : null, "last_result" : null, "isKeyWord" : null, "steps" : null, "networkScriptName" : null, "svnScriptPath" : null }, "project_id" : "b7cb42f3fec14acba074624ddccd30db", "logic_case_id" : null, "activity_id" : "1", "package_name" : "scripts.user", "script_name" : "Case_2371aa35bb264c059fb7ee847463745e_3", "script_path" : "src/scripts/user/Case_2371aa35bb264c059fb7ee847463745e_3.java", "tmss_case_uri" : "v91i0000vm7tclro", "aw_instance" : { "setup_aw_list" : [ ], "test_aw_list" : [ { "id" : "bcf7fd1f57da4b29935ff423ddfc3d19", "projectId" : "b7cb42f3fec14acba074624ddccd30db", "changeSign" : 0, "region" : "{region}", "relation" : "", "children" : null, "scriptName" : null, "create_time_string" : "2024-07-04 15:28:30 GMT+08:00", "update_time_string" : "2024-07-04 15:28:30 GMT+08:00", "create_time_stamp" : 1720078110000, "update_time_stamp" : 1720078110000, "create_user" : "devcloud_devcloud_s00314720_01", "create_time" : "2024-07-04T03:28:30+0800", "update_user" : "devcloud_devcloud_s00314720_01", "update_time" : "2024-07-04T03:28:30+0800", "name" : null, "condition_type" : 20, "condition_statement" : "1000", "body_param_type" : null, "aw_type" : 1, "aw_id" : "", "basic_aw" : null, "param_type_and_value" : [ ], "check_point_list" : [ ], "variable_list" : [ ], "retry_times" : "", "retry_interval" : "", "by_order" : 0, "from_outside" : null, "service_and_stage" : null, "is_contract_aw" : null, "is_sectest_aw" : null, "is_disabled" : 0, "param_dependent" : null, "param_dependent_enabled" : null, "relation_id" : null, "relation_type" : 0, "extra_info" : null, "custom_header" : [ ], "level" : null, "hasLevel" : null, "is_basic" : 1, "his_script" : null, "description" : null, "aw_description" : null, "user_id" : null, "special_type" : 0, "error_info" : null, "alias_runaw" : "2222222222", "authentication_type" : null, "authentication_info" : null, "header_array" : null } ], "teardown_aw_list" : [ ] }, "case_variable_list" : [ ], "quality_check_time" : "2000-10-08T10:02:35+0800", "quality_check_result" : null, "tc_comments" : null, "import_info_list" : [ ], "IteratorCaseUri" : null, "IsKeyWord" : 0, "keyword_id" : null, "all_variable_names" : [ "$${hostURL}(全局参数)" ], "variableGroupId" : null, "error_step" : null, "import_edit" : 5, "user_id" : null, "case_type" : 0 }, "reason" : null, "error" : null, "code" : null }
状态码
状态码 |
描述 |
---|---|
200 |
SUCCESS |
错误码
请参见错误码。