{ "summary_metadata": { "start_time": "2025-06-05T13:18:23.490837", "end_time": null, "duration_seconds": "0.00" }, "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": 24, "failed": 18, "error_in_execution": 0, "skipped_during_endpoint_execution": 0, "success_rate_percentage": "57.14" }, "detailed_results": [ { "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}", "endpoint_name": "数据推送接口", "overall_status": "失败", "duration_seconds": 0.465053, "start_time": "2025-06-05T13:18:23.491218", "end_time": "2025-06-05T13:18:23.956271", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.27044441597536206, "timestamp": "2025-06-05T13:18:23.761746", "validation_points": [ { "passed": true, "message": "响应状态码为 200,符合预期 200。" } ] }, { "test_case_id": "TC-CORE-FUNC-001", "test_case_name": "Response Body JSON Schema Validation", "test_case_severity": "严重", "status": "通过", "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", "duration_seconds": 0.0601590839214623, "timestamp": "2025-06-05T13:18:23.821970", "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": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version) 响应了成功的状态码 200,这违反了HTTPS强制策略。", "duration_seconds": 0.025706333806738257, "timestamp": "2025-06-05T13:18:23.847743", "validation_points": [ { "status_code": 200 } ] }, { "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.03199487505480647, "timestamp": "2025-06-05T13:18:23.879789", "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": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '94'.", "duration_seconds": 0.039490207796916366, "timestamp": "2025-06-05T13:18:23.919334", "validation_points": [ { "status_code": 200, "response_body": { "code": 94, "message": "irure nulla fugiat sit", "data": { "total": 86, "list": [ { "dsid": "39", "dataRegion": "qui sed in", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "87", "dataRegion": "deserunt aute irure", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_field": "body.isSearchCount" } ] }, { "test_case_id": "TC-ERROR-4003-BODY", "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", "test_case_severity": "高", "status": "通过", "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", "duration_seconds": 0.017872040858492255, "timestamp": "2025-06-05T13:18:23.937261", "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": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", "duration_seconds": 0.01888895803131163, "timestamp": "2025-06-05T13:18:23.956219", "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.138585, "start_time": "2025-06-05T13:18:23.956310", "end_time": "2025-06-05T13:18:24.094895", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.022716667037457228, "timestamp": "2025-06-05T13:18:23.979121", "validation_points": [ { "passed": true, "message": "响应状态码为 200,符合预期 200。" } ] }, { "test_case_id": "TC-CORE-FUNC-001", "test_case_name": "Response Body JSON Schema Validation", "test_case_severity": "严重", "status": "通过", "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", "duration_seconds": 0.017374124843627214, "timestamp": "2025-06-05T13:18:23.996552", "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": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0) 响应了成功的状态码 200,这违反了HTTPS强制策略。", "duration_seconds": 0.019951834110543132, "timestamp": "2025-06-05T13:18:24.016559", "validation_points": [ { "status_code": 200 } ] }, { "test_case_id": "TC-ERROR-4001-QUERY", "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", "test_case_severity": "中", "status": "失败", "message": "当查询参数 'pageNo' (路径: 'pageNo') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '53'.", "duration_seconds": 0.018517875112593174, "timestamp": "2025-06-05T13:18:24.035132", "validation_points": [ { "status_code": 200, "response_body": { "code": 53, "message": "velit sed", "data": { "total": 28, "list": [ { "dsid": "77", "dataRegion": "deserunt", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "43", "dataRegion": "quis anim ea pariatur in", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_param": "pageNo" } ] }, { "test_case_id": "TC-ERROR-4001-BODY", "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", "test_case_severity": "中", "status": "失败", "message": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '36'.", "duration_seconds": 0.02283320901915431, "timestamp": "2025-06-05T13:18:24.058027", "validation_points": [ { "status_code": 200, "response_body": { "code": 36, "message": "in voluptate commodo", "data": { "total": 37, "list": [ { "dsid": "59", "dataRegion": "amet occaecat deserunt ex pariatur", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "20", "dataRegion": "aute officia deserunt in", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_field": "body.isSearchCount" } ] }, { "test_case_id": "TC-ERROR-4003-BODY", "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", "test_case_severity": "高", "status": "通过", "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", "duration_seconds": 0.016807042062282562, "timestamp": "2025-06-05T13:18:24.075022", "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": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", "duration_seconds": 0.01974637503735721, "timestamp": "2025-06-05T13:18:24.094848", "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.144021, "start_time": "2025-06-05T13:18:24.094928", "end_time": "2025-06-05T13:18:24.238949", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.026633291970938444, "timestamp": "2025-06-05T13:18:24.121653", "validation_points": [ { "passed": true, "message": "响应状态码为 200,符合预期 200。" } ] }, { "test_case_id": "TC-CORE-FUNC-001", "test_case_name": "Response Body JSON Schema Validation", "test_case_severity": "严重", "status": "通过", "message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.", "duration_seconds": 0.024359666975215077, "timestamp": "2025-06-05T13:18:24.146076", "validation_points": [ { "passed": true, "message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema." } ] }, { "test_case_id": "TC-SECURITY-001", "test_case_name": "HTTPS Protocol Mandatory Verification", "test_case_severity": "严重", "status": "失败", "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", "duration_seconds": 0.017260834109038115, "timestamp": "2025-06-05T13:18:24.163411", "validation_points": [ { "status_code": 200 } ] }, { "test_case_id": "TC-ERROR-4001-QUERY", "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", "test_case_severity": "中", "status": "失败", "message": "当查询参数 'id' (路径: 'id') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '75'.", "duration_seconds": 0.019769666949287057, "timestamp": "2025-06-05T13:18:24.183238", "validation_points": [ { "status_code": 200, "response_body": { "code": 75, "message": "dolore sit minim sint", "data": true }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_param": "id" } ] }, { "test_case_id": "TC-ERROR-4001-BODY", "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", "test_case_severity": "中", "status": "失败", "message": "当请求体字段 'id' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '33'.", "duration_seconds": 0.016951082972809672, "timestamp": "2025-06-05T13:18:24.200244", "validation_points": [ { "status_code": 200, "response_body": { "code": 33, "message": "sit non esse ad enim", "data": true }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_field": "body.id" } ] }, { "test_case_id": "TC-ERROR-4003-BODY", "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", "test_case_severity": "高", "status": "通过", "message": "当移除必填请求体字段 'id' 时,API响应了状态码 200 (非主要预期HTTP状态 [400, 422],但为4xx客户端错误), 且响应体中包含预期的业务错误码 '4003' (字段: 'code').", "duration_seconds": 0.01893512485548854, "timestamp": "2025-06-05T13:18:24.219234", "validation_points": [ { "passed": true, "message": "当移除必填请求体字段 'id' 时,API响应了状态码 200 (非主要预期HTTP状态 [400, 422],但为4xx客户端错误), 且响应体中包含预期的业务错误码 '4003' (字段: 'code')." } ] }, { "test_case_id": "TC-ERROR-4003-QUERY", "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", "test_case_severity": "高", "status": "失败", "message": "当移除必填查询参数 'id' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '69'.", "duration_seconds": 0.019623583182692528, "timestamp": "2025-06-05T13:18:24.238911", "validation_points": [ { "status_code": 200, "response_body": { "code": 69, "message": "exercitation laborum cupidatat commodo", "data": false }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4003", "removed_param": "query.id" } ] } ] }, { "endpoint_id": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit", "endpoint_name": "地质单元数据删除", "overall_status": "失败", "duration_seconds": 0.108327, "start_time": "2025-06-05T13:18:24.238977", "end_time": "2025-06-05T13:18:24.347304", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.013654708862304688, "timestamp": "2025-06-05T13:18:24.252718", "validation_points": [ { "passed": true, "message": "响应状态码为 200,符合预期 200。" } ] }, { "test_case_id": "TC-CORE-FUNC-001", "test_case_name": "Response Body JSON Schema Validation", "test_case_severity": "严重", "status": "通过", "message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.", "duration_seconds": 0.015607249923050404, "timestamp": "2025-06-05T13:18:24.268376", "validation_points": [ { "passed": true, "message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema." } ] }, { "test_case_id": "TC-SECURITY-001", "test_case_name": "HTTPS Protocol Mandatory Verification", "test_case_severity": "严重", "status": "失败", "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", "duration_seconds": 0.013847207883372903, "timestamp": "2025-06-05T13:18:24.282274", "validation_points": [ { "status_code": 200 } ] }, { "test_case_id": "TC-ERROR-4001-QUERY", "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", "test_case_severity": "中", "status": "失败", "message": "当查询参数 'id' (路径: 'id') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '91'.", "duration_seconds": 0.014518292155116796, "timestamp": "2025-06-05T13:18:24.296839", "validation_points": [ { "status_code": 200, "response_body": { "code": 91, "message": "irure ex", "data": true }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_param": "id" } ] }, { "test_case_id": "TC-ERROR-4001-BODY", "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", "test_case_severity": "中", "status": "失败", "message": "当请求体字段 'version' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '2'.", "duration_seconds": 0.017365749925374985, "timestamp": "2025-06-05T13:18:24.314251", "validation_points": [ { "status_code": 200, "response_body": { "code": 2, "message": "aliqua pariatur", "data": false }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_field": "body.version" } ] }, { "test_case_id": "TC-ERROR-4003-BODY", "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", "test_case_severity": "高", "status": "通过", "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", "duration_seconds": 0.018009459134191275, "timestamp": "2025-06-05T13:18:24.332313", "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": "当移除必填查询参数 'id' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '19'.", "duration_seconds": 0.014903625007718801, "timestamp": "2025-06-05T13:18:24.347267", "validation_points": [ { "status_code": 200, "response_body": { "code": 19, "message": "sed cillum sit nulla", "data": false }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4003", "removed_param": "query.id" } ] } ] }, { "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit", "endpoint_name": "地质单元数据添加", "overall_status": "失败", "duration_seconds": 0.11047, "start_time": "2025-06-05T13:18:24.347330", "end_time": "2025-06-05T13:18:24.457800", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.014181334059685469, "timestamp": "2025-06-05T13:18:24.361591", "validation_points": [ { "passed": true, "message": "响应状态码为 200,符合预期 200。" } ] }, { "test_case_id": "TC-CORE-FUNC-001", "test_case_name": "Response Body JSON Schema Validation", "test_case_severity": "严重", "status": "通过", "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", "duration_seconds": 0.01454712520353496, "timestamp": "2025-06-05T13:18:24.376190", "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": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", "duration_seconds": 0.013859666883945465, "timestamp": "2025-06-05T13:18:24.390099", "validation_points": [ { "status_code": 200 } ] }, { "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.015962708042934537, "timestamp": "2025-06-05T13:18:24.406113", "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": "当请求体字段 'version' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '73'.", "duration_seconds": 0.015125166857615113, "timestamp": "2025-06-05T13:18:24.421291", "validation_points": [ { "status_code": 200, "response_body": { "code": 73, "message": "ullamco ex", "data": false }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_field": "body.version" } ] }, { "test_case_id": "TC-ERROR-4003-BODY", "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", "test_case_severity": "高", "status": "失败", "message": "当移除必填请求体字段 'data.0.bsflag' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '72'.", "duration_seconds": 0.01929962495341897, "timestamp": "2025-06-05T13:18:24.440806", "validation_points": [ { "status_code": 200, "response_body": { "code": 72, "message": "dolore Excepteur", "data": false }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4003", "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": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", "duration_seconds": 0.016721792053431273, "timestamp": "2025-06-05T13:18:24.457695", "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.129312, "start_time": "2025-06-05T13:18:24.457925", "end_time": "2025-06-05T13:18:24.587237", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.016316582914441824, "timestamp": "2025-06-05T13:18:24.474562", "validation_points": [ { "passed": true, "message": "响应状态码为 200,符合预期 200。" } ] }, { "test_case_id": "TC-CORE-FUNC-001", "test_case_name": "Response Body JSON Schema Validation", "test_case_severity": "严重", "status": "通过", "message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema.", "duration_seconds": 0.017227750038728118, "timestamp": "2025-06-05T13:18:24.491939", "validation_points": [ { "passed": true, "message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema." } ] }, { "test_case_id": "TC-SECURITY-001", "test_case_name": "HTTPS Protocol Mandatory Verification", "test_case_severity": "严重", "status": "失败", "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id) 响应了成功的状态码 200,这违反了HTTPS强制策略。", "duration_seconds": 0.021245625102892518, "timestamp": "2025-06-05T13:18:24.513427", "validation_points": [ { "status_code": 200 } ] }, { "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.016599917085841298, "timestamp": "2025-06-05T13:18:24.530175", "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": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '49'.", "duration_seconds": 0.02165700006298721, "timestamp": "2025-06-05T13:18:24.551889", "validation_points": [ { "status_code": 200, "response_body": { "code": 49, "message": "officia ex non do dolore", "data": { "total": 38, "list": [ { "dsid": "22", "dataRegion": "do", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } }, "expected_http_status_codes": [ 400, 422 ], "expected_business_code": "4001", "mismatched_field": "body.isSearchCount" } ] }, { "test_case_id": "TC-ERROR-4003-BODY", "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", "test_case_severity": "高", "status": "通过", "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", "duration_seconds": 0.015388375148177147, "timestamp": "2025-06-05T13:18:24.567343", "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": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", "duration_seconds": 0.019689790904521942, "timestamp": "2025-06-05T13:18:24.587189", "validation_points": [ { "passed": true, "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" } ] } ] } ], "stage_stats": { "total_defined": 0, "total_executed": 0, "passed": 0, "failed": 0, "skipped": 0, "success_rate_percentage": "0.00" }, "detailed_stage_results": [] }