{ "summary_metadata": { "start_time": "2025-05-28T17:57:00.901753", "end_time": "2025-05-28T17:57:01.737493", "duration_seconds": "0.84" }, "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.209676, "start_time": "2025-05-28T17:57:00.902104", "end_time": "2025-05-28T17:57:01.111780", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.07002354110591114, "timestamp": "2025-05-28T17:57:00.972205", "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.035653416998684406, "timestamp": "2025-05-28T17:57:01.007926", "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.02291191602125764, "timestamp": "2025-05-28T17:57:01.030911", "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.017394457943737507, "timestamp": "2025-05-28T17:57:01.048363", "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') 为 '55'.", "duration_seconds": 0.01715416694059968, "timestamp": "2025-05-28T17:57:01.065571", "validation_points": [ { "status_code": 200, "response_body": { "code": 55, "message": "Lorem non nisi voluptate nostrud", "data": { "total": 11, "list": [ { "dsid": "69", "dataRegion": "ut tempor", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "79", "dataRegion": "in", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "24", "dataRegion": "dolore anim et consequat", "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.030197374988347292, "timestamp": "2025-05-28T17:57:01.095823", "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.01583941699936986, "timestamp": "2025-05-28T17:57:01.111725", "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.132242, "start_time": "2025-05-28T17:57:01.111818", "end_time": "2025-05-28T17:57:01.244060", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.01838937494903803, "timestamp": "2025-05-28T17:57:01.130307", "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.019362332997843623, "timestamp": "2025-05-28T17:57:01.149846", "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.017887583002448082, "timestamp": "2025-05-28T17:57:01.167889", "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') 为 '59'.", "duration_seconds": 0.020142374793067575, "timestamp": "2025-05-28T17:57:01.188091", "validation_points": [ { "status_code": 200, "response_body": { "code": 59, "message": "eiusmod Excepteur anim veniam", "data": { "total": 98, "list": [ { "dsid": "37", "dataRegion": "dolor occaecat ad id 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') 为 '48'.", "duration_seconds": 0.01720699993893504, "timestamp": "2025-05-28T17:57:01.205368", "validation_points": [ { "status_code": 200, "response_body": { "code": 48, "message": "reprehenderit", "data": { "total": 53, "list": [ { "dsid": "72", "dataRegion": "ipsum laborum ullamco dolor nulla", "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.020268375054001808, "timestamp": "2025-05-28T17:57:01.225817", "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.018000125186517835, "timestamp": "2025-05-28T17:57:01.243960", "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.124856, "start_time": "2025-05-28T17:57:01.244138", "end_time": "2025-05-28T17:57:01.368994", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.015104166930541396, "timestamp": "2025-05-28T17:57:01.259513", "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.023496625013649464, "timestamp": "2025-05-28T17:57:01.283156", "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.015164082869887352, "timestamp": "2025-05-28T17:57:01.298495", "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') 为 '78'.", "duration_seconds": 0.0176448340062052, "timestamp": "2025-05-28T17:57:01.316371", "validation_points": [ { "status_code": 200, "response_body": { "code": 78, "message": "eiusmod reprehenderit Lorem", "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') 为 '58'.", "duration_seconds": 0.022187582915648818, "timestamp": "2025-05-28T17:57:01.338613", "validation_points": [ { "status_code": 200, "response_body": { "code": 58, "message": "in adipisicing ex elit", "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.015349291963502765, "timestamp": "2025-05-28T17:57:01.354087", "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') 为 '33'.", "duration_seconds": 0.014816165901720524, "timestamp": "2025-05-28T17:57:01.368953", "validation_points": [ { "status_code": 200, "response_body": { "code": 33, "message": "deserunt ut commodo non", "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.139494, "start_time": "2025-05-28T17:57:01.369023", "end_time": "2025-05-28T17:57:01.508517", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.01610799995251, "timestamp": "2025-05-28T17:57:01.385217", "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.02000500005669892, "timestamp": "2025-05-28T17:57:01.405281", "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.03763899998739362, "timestamp": "2025-05-28T17:57:01.442984", "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') 为 '69'.", "duration_seconds": 0.019403875106945634, "timestamp": "2025-05-28T17:57:01.462442", "validation_points": [ { "status_code": 200, "response_body": { "code": 69, "message": "Excepteur eu aute Duis Lorem", "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') 为 '25'.", "duration_seconds": 0.014665083028376102, "timestamp": "2025-05-28T17:57:01.477156", "validation_points": [ { "status_code": 200, "response_body": { "code": 25, "message": "reprehenderit", "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.015445458004251122, "timestamp": "2025-05-28T17:57:01.492652", "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') 为 '15'.", "duration_seconds": 0.015777709195390344, "timestamp": "2025-05-28T17:57:01.508481", "validation_points": [ { "status_code": 200, "response_body": { "code": 15, "message": "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.107212, "start_time": "2025-05-28T17:57:01.508545", "end_time": "2025-05-28T17:57:01.615757", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.014113249955698848, "timestamp": "2025-05-28T17:57:01.522745", "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.0161186249461025, "timestamp": "2025-05-28T17:57:01.538920", "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.018457709113135934, "timestamp": "2025-05-28T17:57:01.557434", "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.014414292061701417, "timestamp": "2025-05-28T17:57:01.571918", "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') 为 '78'.", "duration_seconds": 0.014244750142097473, "timestamp": "2025-05-28T17:57:01.586209", "validation_points": [ { "status_code": 200, "response_body": { "code": 78, "message": "minim deserunt", "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') 为 '25'.", "duration_seconds": 0.014795708004385233, "timestamp": "2025-05-28T17:57:01.601049", "validation_points": [ { "status_code": 200, "response_body": { "code": 25, "message": "ex est adipisicing laboris anim", "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.014598459005355835, "timestamp": "2025-05-28T17:57:01.615708", "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.121681, "start_time": "2025-05-28T17:57:01.615791", "end_time": "2025-05-28T17:57:01.737472", "executed_test_cases": [ { "test_case_id": "TC-STATUS-001", "test_case_name": "基本状态码 200 检查", "test_case_severity": "严重", "status": "通过", "message": "响应状态码为 200,符合预期 200。", "duration_seconds": 0.018977999920025468, "timestamp": "2025-05-28T17:57:01.634868", "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.024070708081126213, "timestamp": "2025-05-28T17:57:01.659005", "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.017159332986921072, "timestamp": "2025-05-28T17:57:01.676242", "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.014819666044786572, "timestamp": "2025-05-28T17:57:01.691121", "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.014503540936857462, "timestamp": "2025-05-28T17:57:01.705678", "validation_points": [ { "status_code": 200, "response_body": { "code": 49, "message": "consectetur est fugiat", "data": { "total": 5, "list": [ { "dsid": "86", "dataRegion": "aliqua", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "94", "dataRegion": "ullamco reprehenderit voluptate", "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.01480150013230741, "timestamp": "2025-05-28T17:57:01.720534", "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.016823292011395097, "timestamp": "2025-05-28T17:57:01.737425", "validation_points": [ { "passed": true, "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" } ] } ] } ] }