734 lines
26 KiB
JSON
734 lines
26 KiB
JSON
{
|
||
"summary_metadata": {
|
||
"start_time": "2025-05-26T17:10:18.937545",
|
||
"end_time": "2025-05-26T17:10:19.037161",
|
||
"duration_seconds": "0.10"
|
||
},
|
||
"endpoint_stats": {
|
||
"total_defined": 6,
|
||
"total_tested": 6,
|
||
"passed": 0,
|
||
"failed": 6,
|
||
"partial_success": 0,
|
||
"error": 0,
|
||
"skipped": 0,
|
||
"success_rate_percentage": "0.00"
|
||
},
|
||
"test_case_stats": {
|
||
"total_applicable": 42,
|
||
"total_executed": 42,
|
||
"passed": 23,
|
||
"failed": 19,
|
||
"error_in_execution": 0,
|
||
"skipped_during_endpoint_execution": 0,
|
||
"success_rate_percentage": "54.76"
|
||
},
|
||
"detailed_results": [
|
||
{
|
||
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}",
|
||
"endpoint_name": "数据推送接口",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 0.043781,
|
||
"start_time": "2025-05-26T17:10:18.937890",
|
||
"end_time": "2025-05-26T17:10:18.981671",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.035302374977618456,
|
||
"timestamp": "2025-05-26T17:10:18.973269",
|
||
"validation_points": [
|
||
{
|
||
"expected_status": 200,
|
||
"actual_status": 500,
|
||
"request_url": "https://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version",
|
||
"response_body_sample": ""
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-CORE-FUNC-001",
|
||
"test_case_name": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.001680959016084671,
|
||
"timestamp": "2025-05-26T17:10:18.974994",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-001",
|
||
"test_case_name": "HTTPS Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0012912091333419085,
|
||
"timestamp": "2025-05-26T17:10:18.976330",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "测试已跳过,因为发送的URL已经是 HTTPS(可能是由于原始基础URL非HTTPS或测试设置问题)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0013675407972186804,
|
||
"timestamp": "2025-05-26T17:10:18.977732",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.001474499935284257,
|
||
"timestamp": "2025-05-26T17:10:18.979238",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0012187499087303877,
|
||
"timestamp": "2025-05-26T17:10:18.980486",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0011259580496698618,
|
||
"timestamp": "2025-05-26T17:10:18.981646",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}",
|
||
"endpoint_name": "地质单元列表查询",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 0.015458,
|
||
"start_time": "2025-05-26T17:10:18.981700",
|
||
"end_time": "2025-05-26T17:10:18.997158",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0016555420588701963,
|
||
"timestamp": "2025-05-26T17:10:18.983441",
|
||
"validation_points": [
|
||
{
|
||
"expected_status": 200,
|
||
"actual_status": 500,
|
||
"request_url": "https://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0",
|
||
"response_body_sample": ""
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-CORE-FUNC-001",
|
||
"test_case_name": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0011254160199314356,
|
||
"timestamp": "2025-05-26T17:10:18.984597",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-001",
|
||
"test_case_name": "HTTPS Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0011057921219617128,
|
||
"timestamp": "2025-05-26T17:10:18.985732",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "测试已跳过,因为发送的URL已经是 HTTPS(可能是由于原始基础URL非HTTPS或测试设置问题)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.001326208934187889,
|
||
"timestamp": "2025-05-26T17:10:18.987090",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0013839590828865767,
|
||
"timestamp": "2025-05-26T17:10:18.988501",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0022551249712705612,
|
||
"timestamp": "2025-05-26T17:10:18.990784",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0063235408160835505,
|
||
"timestamp": "2025-05-26T17:10:18.997136",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据修改",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 0.007749,
|
||
"start_time": "2025-05-26T17:10:18.997186",
|
||
"end_time": "2025-05-26T17:10:19.004935",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0011879999656230211,
|
||
"timestamp": "2025-05-26T17:10:18.998449",
|
||
"validation_points": [
|
||
{
|
||
"expected_status": 200,
|
||
"actual_status": 500,
|
||
"request_url": "https://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit",
|
||
"response_body_sample": ""
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-CORE-FUNC-001",
|
||
"test_case_name": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0008167079649865627,
|
||
"timestamp": "2025-05-26T17:10:18.999302",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-001",
|
||
"test_case_name": "HTTPS Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0009453750681132078,
|
||
"timestamp": "2025-05-26T17:10:19.000282",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "测试已跳过,因为发送的URL已经是 HTTPS(可能是由于原始基础URL非HTTPS或测试设置问题)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.001086625037714839,
|
||
"timestamp": "2025-05-26T17:10:19.001401",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0013515420723706484,
|
||
"timestamp": "2025-05-26T17:10:19.002791",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0010457078460603952,
|
||
"timestamp": "2025-05-26T17:10:19.003869",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null,
|
||
"removed_field": "body.data.0.bsflag"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0010109590366482735,
|
||
"timestamp": "2025-05-26T17:10:19.004911",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null,
|
||
"removed_field": "query.id"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据删除",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 0.008712,
|
||
"start_time": "2025-05-26T17:10:19.004961",
|
||
"end_time": "2025-05-26T17:10:19.013673",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0009155420120805502,
|
||
"timestamp": "2025-05-26T17:10:19.005958",
|
||
"validation_points": [
|
||
{
|
||
"expected_status": 200,
|
||
"actual_status": 500,
|
||
"request_url": "https://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit",
|
||
"response_body_sample": ""
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-CORE-FUNC-001",
|
||
"test_case_name": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0012859171256422997,
|
||
"timestamp": "2025-05-26T17:10:19.007307",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-001",
|
||
"test_case_name": "HTTPS Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0010566250421106815,
|
||
"timestamp": "2025-05-26T17:10:19.008399",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "测试已跳过,因为发送的URL已经是 HTTPS(可能是由于原始基础URL非HTTPS或测试设置问题)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0011866658460348845,
|
||
"timestamp": "2025-05-26T17:10:19.009618",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0016809171065688133,
|
||
"timestamp": "2025-05-26T17:10:19.011357",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0014303750358521938,
|
||
"timestamp": "2025-05-26T17:10:19.012824",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.000795166939496994,
|
||
"timestamp": "2025-05-26T17:10:19.013652",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null,
|
||
"removed_field": "query.id"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据添加",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 0.007254,
|
||
"start_time": "2025-05-26T17:10:19.013697",
|
||
"end_time": "2025-05-26T17:10:19.020951",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0007979590445756912,
|
||
"timestamp": "2025-05-26T17:10:19.014569",
|
||
"validation_points": [
|
||
{
|
||
"expected_status": 200,
|
||
"actual_status": 500,
|
||
"request_url": "https://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit",
|
||
"response_body_sample": ""
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-CORE-FUNC-001",
|
||
"test_case_name": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0007929170969873667,
|
||
"timestamp": "2025-05-26T17:10:19.015392",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-001",
|
||
"test_case_name": "HTTPS Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.001027249963954091,
|
||
"timestamp": "2025-05-26T17:10:19.016455",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "测试已跳过,因为发送的URL已经是 HTTPS(可能是由于原始基础URL非HTTPS或测试设置问题)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.001004124991595745,
|
||
"timestamp": "2025-05-26T17:10:19.017489",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0013770000077784061,
|
||
"timestamp": "2025-05-26T17:10:19.018896",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0009045829065144062,
|
||
"timestamp": "2025-05-26T17:10:19.019847",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null,
|
||
"removed_field": "body.data.0.bsflag"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0010490419808775187,
|
||
"timestamp": "2025-05-26T17:10:19.020929",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "GET /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}",
|
||
"endpoint_name": "地质单元查询详情",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 0.016169,
|
||
"start_time": "2025-05-26T17:10:19.020976",
|
||
"end_time": "2025-05-26T17:10:19.037145",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0014472499024122953,
|
||
"timestamp": "2025-05-26T17:10:19.022501",
|
||
"validation_points": [
|
||
{
|
||
"expected_status": 200,
|
||
"actual_status": 500,
|
||
"request_url": "https://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id",
|
||
"response_body_sample": ""
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-CORE-FUNC-001",
|
||
"test_case_name": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0011265419889241457,
|
||
"timestamp": "2025-05-26T17:10:19.023676",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-001",
|
||
"test_case_name": "HTTPS Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0011152499355375767,
|
||
"timestamp": "2025-05-26T17:10:19.024819",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "测试已跳过,因为发送的URL已经是 HTTPS(可能是由于原始基础URL非HTTPS或测试设置问题)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.008005708921700716,
|
||
"timestamp": "2025-05-26T17:10:19.032866",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.0014979999978095293,
|
||
"timestamp": "2025-05-26T17:10:19.034398",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 500,
|
||
"response_body": null
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0013297090772539377,
|
||
"timestamp": "2025-05-26T17:10:19.035759",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.0013257910031825304,
|
||
"timestamp": "2025-05-26T17:10:19.037121",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
} |