322 lines
10 KiB
JSON
322 lines
10 KiB
JSON
{
|
||
"summary_metadata": {
|
||
"start_time": "2025-05-21T18:30:56.368119",
|
||
"end_time": "2025-05-21T18:30:56.681215",
|
||
"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.089518,
|
||
"start_time": "2025-05-21T18:30:56.368227",
|
||
"end_time": "2025-05-21T18:30:56.457745",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.06334280967712402,
|
||
"timestamp": "2025-05-21T18:30:56.431606",
|
||
"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.026033878326416016,
|
||
"timestamp": "2025-05-21T18:30:56.457700",
|
||
"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.041726,
|
||
"start_time": "2025-05-21T18:30:56.457776",
|
||
"end_time": "2025-05-21T18:30:56.499502",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.022691011428833008,
|
||
"timestamp": "2025-05-21T18:30:56.480802",
|
||
"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.01860499382019043,
|
||
"timestamp": "2025-05-21T18:30:56.499463",
|
||
"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.03492,
|
||
"start_time": "2025-05-21T18:30:56.499530",
|
||
"end_time": "2025-05-21T18:30:56.534450",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.01642608642578125,
|
||
"timestamp": "2025-05-21T18:30:56.515996",
|
||
"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.018361806869506836,
|
||
"timestamp": "2025-05-21T18:30:56.534410",
|
||
"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.035115,
|
||
"start_time": "2025-05-21T18:30:56.534480",
|
||
"end_time": "2025-05-21T18:30:56.569595",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.019882917404174805,
|
||
"timestamp": "2025-05-21T18:30:56.554426",
|
||
"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.015078067779541016,
|
||
"timestamp": "2025-05-21T18:30:56.569559",
|
||
"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.033789,
|
||
"start_time": "2025-05-21T18:30:56.569621",
|
||
"end_time": "2025-05-21T18:30:56.603410",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.01661515235900879,
|
||
"timestamp": "2025-05-21T18:30:56.586277",
|
||
"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.017055988311767578,
|
||
"timestamp": "2025-05-21T18:30:56.603376",
|
||
"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.077762,
|
||
"start_time": "2025-05-21T18:30:56.603434",
|
||
"end_time": "2025-05-21T18:30:56.681196",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "检查响应中是否存在 'X-Request-ID' 头",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "",
|
||
"duration_seconds": 0.020492076873779297,
|
||
"timestamp": "2025-05-21T18:30:56.623967",
|
||
"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.05701398849487305,
|
||
"timestamp": "2025-05-21T18:30:56.681140",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
} |