{ "summary_metadata": { "start_time": "2025-05-27T03:17:32.169725", "end_time": "2025-05-27T03:17:33.726074", "duration_seconds": "1.56" }, "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.38021, "start_time": "2025-05-27T03:17:32.170519", "end_time": "2025-05-27T03:17:32.550729", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.10054145799949765, "timestamp": "2025-05-27T03:17:32.271233", "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.04229112481698394, "timestamp": "2025-05-27T03:17:32.313678", "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.046983249951153994, "timestamp": "2025-05-27T03:17:32.360817", "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.04334258288145065, "timestamp": "2025-05-27T03:17:32.404292", "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') 为 '89'.", "duration_seconds": 0.04505762504413724, "timestamp": "2025-05-27T03:17:32.449477", "validation_points": [ { "status_code": 200, "response_body": { "code": 89, "message": "non mollit", "data": { "total": 56, "list": [ { "dsid": "97", "dataRegion": "nulla laborum ut cupidatat incididunt", "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.053338083904236555, "timestamp": "2025-05-27T03:17:32.503262", "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.047208999982103705, "timestamp": "2025-05-27T03:17:32.550622", "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.289961, "start_time": "2025-05-27T03:17:32.550812", "end_time": "2025-05-27T03:17:32.840773", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.03967254119925201, "timestamp": "2025-05-27T03:17:32.590701", "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.05223862477578223, "timestamp": "2025-05-27T03:17:32.643082", "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.04689537500962615, "timestamp": "2025-05-27T03:17:32.690147", "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') 为 '34'.", "duration_seconds": 0.044708832865580916, "timestamp": "2025-05-27T03:17:32.735038", "validation_points": [ { "status_code": 200, "response_body": { "code": 34, "message": "est", "data": { "total": 76, "list": [ { "dsid": "56", "dataRegion": "et dolore veniam ex voluptate", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "8", "dataRegion": "in", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "16", "dataRegion": "consequat irure proident", "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') 为 '23'.", "duration_seconds": 0.039677416905760765, "timestamp": "2025-05-27T03:17:32.774854", "validation_points": [ { "status_code": 200, "response_body": { "code": 23, "message": "occaecat aute ut velit Excepteur", "data": { "total": 88, "list": [ { "dsid": "93", "dataRegion": "officia", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "21", "dataRegion": "ullamco commodo proident dolore id", "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.033955666003748775, "timestamp": "2025-05-27T03:17:32.808929", "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.0316302499268204, "timestamp": "2025-05-27T03:17:32.840677", "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.194852, "start_time": "2025-05-27T03:17:32.840839", "end_time": "2025-05-27T03:17:33.035691", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.0246629579924047, "timestamp": "2025-05-27T03:17:32.865694", "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.028576500015333295, "timestamp": "2025-05-27T03:17:32.894368", "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.023044000146910548, "timestamp": "2025-05-27T03:17:32.917541", "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') 为 '36'.", "duration_seconds": 0.027355958009138703, "timestamp": "2025-05-27T03:17:32.944990", "validation_points": [ { "status_code": 200, "response_body": { "code": 36, "message": "velit proident nisi", "data": false }, "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') 为 '38'.", "duration_seconds": 0.02183720818720758, "timestamp": "2025-05-27T03:17:32.966910", "validation_points": [ { "status_code": 200, "response_body": { "code": 38, "message": "Excepteur", "data": false }, "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.02861408400349319, "timestamp": "2025-05-27T03:17:32.995596", "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') 为 '37'.", "duration_seconds": 0.039827125146985054, "timestamp": "2025-05-27T03:17:33.035557", "validation_points": [ { "status_code": 200, "response_body": { "code": 37, "message": "est sint non magna", "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.214498, "start_time": "2025-05-27T03:17:33.035783", "end_time": "2025-05-27T03:17:33.250281", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.024680749978870153, "timestamp": "2025-05-27T03:17:33.060754", "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.02513625007122755, "timestamp": "2025-05-27T03:17:33.086215", "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.023132374975830317, "timestamp": "2025-05-27T03:17:33.109590", "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') 为 '57'.", "duration_seconds": 0.02844312507659197, "timestamp": "2025-05-27T03:17:33.138175", "validation_points": [ { "status_code": 200, "response_body": { "code": 57, "message": "culpa reprehenderit amet pariatur", "data": false }, "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.05025433306582272, "timestamp": "2025-05-27T03:17:33.188548", "validation_points": [ { "status_code": 200, "response_body": { "code": 2, "message": "tempor ullamco consequat", "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.03652524994686246, "timestamp": "2025-05-27T03:17:33.225187", "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') 为 '49'.", "duration_seconds": 0.024812292074784636, "timestamp": "2025-05-27T03:17:33.250181", "validation_points": [ { "status_code": 200, "response_body": { "code": 49, "message": "culpa cillum", "data": true }, "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.200211, "start_time": "2025-05-27T03:17:33.250350", "end_time": "2025-05-27T03:17:33.450561", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.028625000035390258, "timestamp": "2025-05-27T03:17:33.279196", "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.02822887501679361, "timestamp": "2025-05-27T03:17:33.307693", "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.02737983292900026, "timestamp": "2025-05-27T03:17:33.335201", "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.03305029193870723, "timestamp": "2025-05-27T03:17:33.368404", "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') 为 '58'.", "duration_seconds": 0.03271925006993115, "timestamp": "2025-05-27T03:17:33.401426", "validation_points": [ { "status_code": 200, "response_body": { "code": 58, "message": "enim", "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') 为 '97'.", "duration_seconds": 0.025021000066772103, "timestamp": "2025-05-27T03:17:33.426714", "validation_points": [ { "status_code": 200, "response_body": { "code": 97, "message": "sit enim est anim", "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.023357625119388103, "timestamp": "2025-05-27T03:17:33.450349", "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.275309, "start_time": "2025-05-27T03:17:33.450733", "end_time": "2025-05-27T03:17:33.726042", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.026520791929215193, "timestamp": "2025-05-27T03:17:33.477855", "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.0279082499910146, "timestamp": "2025-05-27T03:17:33.506072", "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.029651165939867496, "timestamp": "2025-05-27T03:17:33.536036", "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.035403457935899496, "timestamp": "2025-05-27T03:17:33.571723", "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') 为 '96'.", "duration_seconds": 0.0588684999383986, "timestamp": "2025-05-27T03:17:33.630695", "validation_points": [ { "status_code": 200, "response_body": { "code": 96, "message": "qui eu sit", "data": { "total": 88, "list": [ { "dsid": "25", "dataRegion": "veniam dolor", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "1", "dataRegion": "aute 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.06513866619206965, "timestamp": "2025-05-27T03:17:33.696569", "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.02917162491939962, "timestamp": "2025-05-27T03:17:33.725963", "validation_points": [ { "passed": true, "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" } ] } ] } ] }