322 lines
10 KiB
JSON
322 lines
10 KiB
JSON
{
|
||
"summary_metadata": {
|
||
"start_time": "2025-05-21T17:04:17.211454",
|
||
"end_time": "2025-05-21T17:04:17.518522",
|
||
"duration_seconds": "0.31"
|
||
},
|
||
"endpoint_stats": {
|
||
"total_defined": 6,
|
||
"total_tested": 6,
|
||
"passed": 0,
|
||
"failed": 0,
|
||
"partial_success": 6,
|
||
"error": 0,
|
||
"skipped": 0,
|
||
"success_rate_percentage": "0.00"
|
||
},
|
||
"test_case_stats": {
|
||
"total_applicable": 12,
|
||
"total_executed": 12,
|
||
"passed": 6,
|
||
"failed": 6,
|
||
"error_in_execution": 0,
|
||
"skipped_during_endpoint_execution": 0,
|
||
"success_rate_percentage": "50.00"
|
||
},
|
||
"detailed_results": [
|
||
{
|
||
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}",
|
||
"endpoint_name": "数据推送接口",
|
||
"overall_status": "部分成功",
|
||
"duration_seconds": 0.098617,
|
||
"start_time": "2025-05-21T17:04:17.211570",
|
||
"end_time": "2025-05-21T17:04:17.310187",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.05682086944580078,
|
||
"timestamp": "2025-05-21T17:04:17.268429",
|
||
"validation_points": [
|
||
{
|
||
"expected_header": "X-Request-ID",
|
||
"actual_headers": [
|
||
"Vary",
|
||
"Access-Control-Allow-Origin",
|
||
"Content-Type",
|
||
"Content-Length",
|
||
"success",
|
||
"Date",
|
||
"Connection",
|
||
"Keep-Alive"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.04161787033081055,
|
||
"timestamp": "2025-05-21T17:04:17.310103",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}",
|
||
"endpoint_name": "地质单元列表查询",
|
||
"overall_status": "部分成功",
|
||
"duration_seconds": 0.080731,
|
||
"start_time": "2025-05-21T17:04:17.310299",
|
||
"end_time": "2025-05-21T17:04:17.391030",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.043160200119018555,
|
||
"timestamp": "2025-05-21T17:04:17.353522",
|
||
"validation_points": [
|
||
{
|
||
"expected_header": "X-Request-ID",
|
||
"actual_headers": [
|
||
"Vary",
|
||
"Access-Control-Allow-Origin",
|
||
"Content-Type",
|
||
"Content-Length",
|
||
"success",
|
||
"Date",
|
||
"Connection",
|
||
"Keep-Alive"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.037424325942993164,
|
||
"timestamp": "2025-05-21T17:04:17.391001",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据修改",
|
||
"overall_status": "部分成功",
|
||
"duration_seconds": 0.036219,
|
||
"start_time": "2025-05-21T17:04:17.391064",
|
||
"end_time": "2025-05-21T17:04:17.427283",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.015516281127929688,
|
||
"timestamp": "2025-05-21T17:04:17.406630",
|
||
"validation_points": [
|
||
{
|
||
"expected_header": "X-Request-ID",
|
||
"actual_headers": [
|
||
"Vary",
|
||
"Access-Control-Allow-Origin",
|
||
"Content-Type",
|
||
"Content-Length",
|
||
"success",
|
||
"Date",
|
||
"Connection",
|
||
"Keep-Alive"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.02056288719177246,
|
||
"timestamp": "2025-05-21T17:04:17.427253",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据删除",
|
||
"overall_status": "部分成功",
|
||
"duration_seconds": 0.030476,
|
||
"start_time": "2025-05-21T17:04:17.427316",
|
||
"end_time": "2025-05-21T17:04:17.457792",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.01640176773071289,
|
||
"timestamp": "2025-05-21T17:04:17.443764",
|
||
"validation_points": [
|
||
{
|
||
"expected_header": "X-Request-ID",
|
||
"actual_headers": [
|
||
"Vary",
|
||
"Access-Control-Allow-Origin",
|
||
"Content-Type",
|
||
"Content-Length",
|
||
"success",
|
||
"Date",
|
||
"Connection",
|
||
"Keep-Alive"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.013955831527709961,
|
||
"timestamp": "2025-05-21T17:04:17.457768",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据添加",
|
||
"overall_status": "部分成功",
|
||
"duration_seconds": 0.03182,
|
||
"start_time": "2025-05-21T17:04:17.457819",
|
||
"end_time": "2025-05-21T17:04:17.489639",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.015901803970336914,
|
||
"timestamp": "2025-05-21T17:04:17.473765",
|
||
"validation_points": [
|
||
{
|
||
"expected_header": "X-Request-ID",
|
||
"actual_headers": [
|
||
"Vary",
|
||
"Access-Control-Allow-Origin",
|
||
"Content-Type",
|
||
"Content-Length",
|
||
"success",
|
||
"Date",
|
||
"Connection",
|
||
"Keep-Alive"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.015805959701538086,
|
||
"timestamp": "2025-05-21T17:04:17.489614",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "GET /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}",
|
||
"endpoint_name": "地质单元查询详情",
|
||
"overall_status": "部分成功",
|
||
"duration_seconds": 0.028834,
|
||
"start_time": "2025-05-21T17:04:17.489670",
|
||
"end_time": "2025-05-21T17:04:17.518504",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.013111114501953125,
|
||
"timestamp": "2025-05-21T17:04:17.502828",
|
||
"validation_points": [
|
||
{
|
||
"expected_header": "X-Request-ID",
|
||
"actual_headers": [
|
||
"Vary",
|
||
"Access-Control-Allow-Origin",
|
||
"Content-Type",
|
||
"Content-Length",
|
||
"success",
|
||
"Date",
|
||
"Connection",
|
||
"Keep-Alive"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-STATUS-001",
|
||
"test_case_name": "基本状态码 200 检查",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "",
|
||
"duration_seconds": 0.015619039535522461,
|
||
"timestamp": "2025-05-21T17:04:17.518482",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
} |