{ "summary_metadata": { "start_time": "2025-05-29T16:45:25.849307", "end_time": "2025-05-29T16:45:26.621679", "duration_seconds": "0.77" }, "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.195803, "start_time": "2025-05-29T16:45:25.849631", "end_time": "2025-05-29T16:45:26.045434", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.06710091698914766, "timestamp": "2025-05-29T16:45:25.916804", "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.024326875107362866, "timestamp": "2025-05-29T16:45:25.941204", "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.019037832971662283, "timestamp": "2025-05-29T16:45:25.960309", "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.0200852919369936, "timestamp": "2025-05-29T16:45:25.980454", "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] 中,或返回业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '44'.", "duration_seconds": 0.02025704109109938, "timestamp": "2025-05-29T16:45:26.000770", "validation_points": [ { "status_code": 200, "response_body": { "code": 44, "message": "cupidatat ipsum exercitation", "data": { "total": 84, "list": [ { "dsid": "56", "dataRegion": "culpa et nisi", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "22", "dataRegion": "ea nulla in tempor proident", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "69", "dataRegion": "adipisicing dolore velit Excepteur", "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.02807041583582759, "timestamp": "2025-05-29T16:45:26.028894", "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.016444000182673335, "timestamp": "2025-05-29T16:45:26.045394", "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.121974, "start_time": "2025-05-29T16:45:26.045467", "end_time": "2025-05-29T16:45:26.167441", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.0186984168831259, "timestamp": "2025-05-29T16:45:26.064250", "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.021727959159761667, "timestamp": "2025-05-29T16:45:26.086038", "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.017182791838422418, "timestamp": "2025-05-29T16:45:26.103281", "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') 为 '30'.", "duration_seconds": 0.016620707930997014, "timestamp": "2025-05-29T16:45:26.119956", "validation_points": [ { "status_code": 200, "response_body": { "code": 30, "message": "ut incididunt aliquip laborum", "data": { "total": 45, "list": [ { "dsid": "86", "dataRegion": "aliqua ipsum labore ea", "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') 为 '93'.", "duration_seconds": 0.01504912506788969, "timestamp": "2025-05-29T16:45:26.135053", "validation_points": [ { "status_code": 200, "response_body": { "code": 93, "message": "irure in aute aliquip dolor", "data": { "total": 14, "list": [ { "dsid": "49", "dataRegion": "pariatur nulla", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "47", "dataRegion": "ullamco anim incididunt culpa", "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.01566412509419024, "timestamp": "2025-05-29T16:45:26.150763", "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.016583458986133337, "timestamp": "2025-05-29T16:45:26.167396", "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.110383, "start_time": "2025-05-29T16:45:26.167471", "end_time": "2025-05-29T16:45:26.277854", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.01697887503542006, "timestamp": "2025-05-29T16:45:26.184543", "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.01832004194147885, "timestamp": "2025-05-29T16:45:26.202912", "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.016209041001275182, "timestamp": "2025-05-29T16:45:26.219217", "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') 为 '55'.", "duration_seconds": 0.014930624980479479, "timestamp": "2025-05-29T16:45:26.234199", "validation_points": [ { "status_code": 200, "response_body": { "code": 55, "message": "tempor elit", "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') 为 '54'.", "duration_seconds": 0.014813833869993687, "timestamp": "2025-05-29T16:45:26.249066", "validation_points": [ { "status_code": 200, "response_body": { "code": 54, "message": "deserunt id incididunt", "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.013806292088702321, "timestamp": "2025-05-29T16:45:26.262916", "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') 为 '25'.", "duration_seconds": 0.014846875099465251, "timestamp": "2025-05-29T16:45:26.277818", "validation_points": [ { "status_code": 200, "response_body": { "code": 25, "message": "sint laboris ex ea", "data": true }, "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.111407, "start_time": "2025-05-29T16:45:26.277880", "end_time": "2025-05-29T16:45:26.389287", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.013204999966546893, "timestamp": "2025-05-29T16:45:26.291166", "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.01893095811828971, "timestamp": "2025-05-29T16:45:26.310139", "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.013458125060424209, "timestamp": "2025-05-29T16:45:26.323654", "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.015051041962578893, "timestamp": "2025-05-29T16:45:26.338921", "validation_points": [ { "status_code": 200, "response_body": { "code": 36, "message": "nostrud aliqua consequat commodo", "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') 为 '91'.", "duration_seconds": 0.015764417126774788, "timestamp": "2025-05-29T16:45:26.354804", "validation_points": [ { "status_code": 200, "response_body": { "code": 91, "message": "nisi eu deserunt laboris", "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.017602207837626338, "timestamp": "2025-05-29T16:45:26.372570", "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') 为 '68'.", "duration_seconds": 0.016222875099629164, "timestamp": "2025-05-29T16:45:26.389095", "validation_points": [ { "status_code": 200, "response_body": { "code": 68, "message": "esse ad consectetur", "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.12343, "start_time": "2025-05-29T16:45:26.389467", "end_time": "2025-05-29T16:45:26.512897", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.017961708130314946, "timestamp": "2025-05-29T16:45:26.407964", "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.01862025004811585, "timestamp": "2025-05-29T16:45:26.427163", "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.017223792150616646, "timestamp": "2025-05-29T16:45:26.444548", "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.016695416998118162, "timestamp": "2025-05-29T16:45:26.461439", "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') 为 '44'.", "duration_seconds": 0.01606720802374184, "timestamp": "2025-05-29T16:45:26.477669", "validation_points": [ { "status_code": 200, "response_body": { "code": 44, "message": "enim cupidatat magna nulla", "data": true }, "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') 为 '34'.", "duration_seconds": 0.018121875124052167, "timestamp": "2025-05-29T16:45:26.495933", "validation_points": [ { "status_code": 200, "response_body": { "code": 34, "message": "do consequat elit", "data": true }, "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.016664458205923438, "timestamp": "2025-05-29T16:45:26.512857", "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.108735, "start_time": "2025-05-29T16:45:26.512925", "end_time": "2025-05-29T16:45:26.621660", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.020550667075440288, "timestamp": "2025-05-29T16:45:26.533561", "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.014473499963060021, "timestamp": "2025-05-29T16:45:26.548098", "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.013600457925349474, "timestamp": "2025-05-29T16:45:26.561752", "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.013701542047783732, "timestamp": "2025-05-29T16:45:26.575502", "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') 为 '70'.", "duration_seconds": 0.016377917025238276, "timestamp": "2025-05-29T16:45:26.591934", "validation_points": [ { "status_code": 200, "response_body": { "code": 70, "message": "amet labore ex", "data": { "total": 63, "list": [ { "dsid": "44", "dataRegion": "eiusmod consequat irure Lorem 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.013865916058421135, "timestamp": "2025-05-29T16:45:26.605858", "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.015692499931901693, "timestamp": "2025-05-29T16:45:26.621611", "validation_points": [ { "passed": true, "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" } ] } ] } ] }