Files
his/MD/test/reports/biz_test_20260607_215348.md
华佗 e31337b58a feat(test): 业务逻辑级测试脚本+测试报告
- 04_test_business_logic.py: 业务逻辑测试v1(111用例)
- 04_test_business_logic_v2.py: 修正API路径后v2(107用例,通过率31.8%)
- 测试报告: 揭示大量API路径不匹配和参数问题
- 测试数据: SQL脚本覆盖31个业务模块
- 测试流程: 30个业务流程图+API映射

测试发现的问题:
1. 多个Controller缺少/page端点
2. 部分接口需要必填参数(patientId, startTime等)
3. 部分接口响应格式非标准(rows嵌套为dict)
4. DB列名不匹配(create_by不存在等)
2026-06-07 21:54:20 +08:00

12 KiB

业务逻辑测试报告

时间: 2026-06-07 21:53:48

环境: http://localhost:18082/healthlink-his

汇总

  • 总数: 107
  • 通过: 34
  • 失败: 73
  • 通过率: 31.8%

详细

模块 编号 测试项 状态 说明
认证 1.1 登录成功-返回token PASS
认证 1.2 错误密码-应失败 PASS
认证 1.3 获取用户信息 PASS
认证 1.4 获取路由菜单 PASS
挂号 2.1 挂号初始化 PASS
挂号 2.2 当日挂号列表 PASS
挂号 2.3 患者元数据查询 PASS
挂号 2.4 全部医生列表 PASS
医生站 3.1 医生站初始化 PASS
医生站 3.2 患者信息查询 PASS
医生站 3.3 接诊统计 FAIL code=500, msg=Required request parameter 'startTime' for method parameter type String is not present
医生站 3.4 医嘱基础信息 PASS
医生站 3.5 诊断初始化 PASS
医生站 3.6 诊断定义分类 FAIL code=500, msg=Required request parameter 'patientId' for method parameter type Long is not present
医生站 3.7 检查申请初始化 FAIL code=500, msg=No static resource doctor-station/inspection/init for request '/healthlink-his/doctor-station/inspection/init'.
收费 4.1 门诊收费初始化 PASS
收费 4.2 收费患者列表 PASS
收费 4.3 退费初始化 PASS
收费 4.4 退费患者列表 PASS
收费 4.5 住院收费初始化 PASS
收费 4.6 住院收费患者列表 PASS
收费 4.7 定价患者信息 PASS
住院 5.1 患者主页初始化 PASS
住院 5.2 空床查询 PASS
住院 5.3 科室统计 PASS
住院 5.4 押金初始化 PASS
住院 5.5 入院登记-病区列表 FAIL code=500, msg=No static resource inhospitalmanage/register/ward-list for request '/healthlink-his/inhospitalmanage/register/ward-list'
住院 5.6 入院登记-床位数 FAIL code=500, msg=No static resource inhospitalmanage/register/beds-num for request '/healthlink-his/inhospitalmanage/register/beds-num'.
住院 5.7 入院登记-患者信息 FAIL code=500, msg=No static resource inhospitalmanage/register/patient-info for request '/healthlink-his/inhospitalmanage/register/patient
护理 6.1 护理评估列表 FAIL rows类型异常: <class 'dict'>
护理 6.2 护理评估统计 PASS
护理 6.3 Braden评估-成功 PASS
护理 6.4 Morse评估-成功 PASS
护理 6.5 体征记录查询 PASS
护理 6.6 体征图表 FAIL rows类型异常: <class 'dict'>
护理 6.7 护理执行列表 FAIL code=500, msg=No static resource nurse-station/advice-process/page for request '/healthlink-his/nurse-station/advice-process/page'.
护理 6.8 护理质量指标 FAIL rows类型异常: <class 'dict'>
检验 7.1 标本采集 FAIL code=500, msg=No static resource inspection/collection/page for request '/healthlink-his/inspection/collection/page'.
检验 7.2 检验观察 FAIL code=500, msg=No static resource inspection/observation/page for request '/healthlink-his/inspection/observation/page'.
检验 7.3 标本定义 FAIL code=500, msg=No static resource inspection/specimen/page for request '/healthlink-his/inspection/specimen/page'.
检验 7.4 LIS配置 FAIL code=500, msg=No static resource inspection/lisConfig/page for request '/healthlink-his/inspection/lisConfig/page'.
检验 7.5 仪器管理 FAIL code=500, msg=No static resource inspection/instrument/page for request '/healthlink-his/inspection/instrument/page'.
检验 7.6 检验结果 FAIL code=500, msg=请求参数类型不匹配,参数[id]要求类型为:'java.lang.Long',但输入值为:'page'
检验 7.7 参考范围 FAIL rows类型异常: <class 'dict'>
检验 7.8 检查申请 FAIL code=500, msg=未找到申请单信息
影像 8.1 影像列表 FAIL code=500, msg=No static resource radiology-image/page for request '/healthlink-his/radiology-image/page'.
影像 8.2 影像增强 FAIL code=500, msg=No static resource radiology-enhanced/page for request '/healthlink-his/radiology-enhanced/page'.
影像 8.3 影像对比 FAIL code=500, msg=No static resource radiology-comparison/page for request '/healthlink-his/radiology-comparison/page'.
影像 8.4 3D重建 FAIL code=500, msg=No static resource reconstruction/page for request '/healthlink-his/reconstruction/page'.
手术 9.1 手术列表 FAIL code=500, msg=No static resource clinical-manage/surgery/page for request '/healthlink-his/clinical-manage/surgery/page'.
手术 9.2 手术排程 FAIL rows类型异常: <class 'dict'>
手术 9.3 术前讨论 FAIL code=500, msg=

Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: column "delete_flag" does not exist

Po | | 手术 | 9.4 | 安全核查 | FAIL | rows类型异常: <class 'dict'> | | 麻醉 | 9.5 | 麻醉记录 | FAIL | code=500, msg=No static resource api/v1/anesthesia/page for request '/healthlink-his/api/v1/anesthesia/page'. | | 麻醉 | 9.6 | 麻醉增强 | FAIL | code=500, msg=No static resource anesthesia-enhanced/page for request '/healthlink-his/anesthesia-enhanced/page'. | | 院感 | 10.1 | 院感监测 | FAIL | rows类型异常: <class 'dict'> | | 院感 | 10.2 | 院感预警 | FAIL | code=500, msg=No static resource infection-enhanced/warning/page for request '/healthlink-his/infection-enhanced/warning/page'. | | 院感 | 10.3 | 耐药监测 | FAIL | code=500, msg=No static resource infection-enhanced/resistance/page for request '/healthlink-his/infection-enhanced/resistance/page'. | | 院感 | 10.4 | 职业暴露 | FAIL | code=500, msg=No static resource infection-enhanced/exposure/page for request '/healthlink-his/infection-enhanced/exposure/page'. | | 院感 | 10.5 | 手卫生 | FAIL | rows类型异常: <class 'dict'> | | 院感 | 10.6 | 环境监测 | FAIL | code=500, msg=No static resource infection-enhanced/environment/page for request '/healthlink-his/infection-enhanced/environment/page' | | 质控 | 11.1 | 运行质控 | FAIL | code=500, msg=No static resource quality-enhanced/runtime/page for request '/healthlink-his/quality-enhanced/runtime/page'. | | 质控 | 11.2 | 终末质控 | FAIL | code=500, msg=No static resource api/v1/emr-quality/page for request '/healthlink-his/api/v1/emr-quality/page'. | | 质控 | 11.3 | 质量统计 | FAIL | code=500, msg=No static resource quality-enhanced/statistics/page for request '/healthlink-his/quality-enhanced/statistics/page'. | | 中医 | 12.1 | 中医体质 | FAIL | code=500, msg=No static resource api/v1/tcm/constitution/page for request '/healthlink-his/api/v1/tcm/constitution/page'. | | 中医 | 12.2 | 方剂列表>=3个 | PASS | | | 中医 | 12.3 | 中医统计 | PASS | | | 会诊 | 13.1 | 会诊记录 | FAIL | code=500, msg=No static resource consultation/page for request '/healthlink-his/consultation/page'. | | 会诊 | 13.2 | 会诊反馈 | FAIL | code=500, msg=No static resource cross-module/consult-feedback/page for request '/healthlink-his/cross-module/consult-feedback/page'. | | 会诊 | 13.3 | 会诊超时 | FAIL | code=500, msg=No static resource cross-module/consulttimeout/page for request '/healthlink-his/cross-module/consulttimeout/page'. | | 路径 | 14.1 | 临床路径>=2条 | FAIL | 实际=5 | | 危急值 | 15.1 | 危急值列表 | FAIL | code=500, msg=No static resource api/v1/critical-value/page for request '/healthlink-his/api/v1/critical-value/page'. | | 点评 | 16.1 | 点评计划 | FAIL | rows类型异常: <class 'dict'> | | 点评 | 16.2 | 点评记录 | FAIL | rows类型异常: <class 'dict'> | | 点评 | 16.3 | 点评统计 | PASS | | | 用药 | 17.1 | 合理用药 | FAIL | code=500, msg=No static resource api/v1/rational-drug/page for request '/healthlink-his/api/v1/rational-drug/page'. | | 用药 | 17.2 | 相互作用 | FAIL | code=500, msg=No static resource api/v1/rational-drug/interaction/page for request '/healthlink-his/api/v1/rational-drug/interaction/p | | 用药 | 17.3 | 用药统计 | PASS | | | 用药 | 17.4 | 审计日志 | FAIL | code=500, msg=No static resource api/v1/rational-drug/audit-log for request '/healthlink-his/api/v1/rational-drug/audit-log'. | | 追溯 | 18.1 | 药品追溯 | FAIL | code=500, msg=No static resource drugtrace/page for request '/healthlink-his/drugtrace/page'. | | EMPI | 19.1 | EMPI索引 | FAIL | code=500, msg=No static resource api/v1/empi/page for request '/healthlink-his/api/v1/empi/page'. | | ESB | 20.1 | ESB消息 | FAIL | rows类型异常: <class 'dict'> | | ESB | 20.2 | ESB服务注册 | FAIL | rows类型异常: <class 'dict'> | | CA | 21.1 | CA签名 | FAIL | code=500, msg=No static resource api/v1/ca-signature/page for request '/healthlink-his/api/v1/ca-signature/page'. | | CA | 21.2 | CA签名统计 | PASS | | | 病案 | 22.1 | 病案首页 | FAIL | code=500, msg=请求参数类型不匹配,参数[id]要求类型为:'java.lang.Long',但输入值为:'page' | | 随访 | 23.1 | 随访计划 | FAIL | code=500, msg=No static resource followup/page for request '/healthlink-his/followup/page'. | | 知情 | 24.1 | 知情同意 | FAIL | rows类型异常: <class 'dict'> | | CSSD | 25.1 | 消毒追溯 | FAIL | code=500, msg=No static resource cssd/page for request '/healthlink-his/cssd/page'. | | 急诊 | 26.1 | 急诊记录 | FAIL | code=500, msg=No static resource emergency/page for request '/healthlink-his/emergency/page'. | | 急诊 | 26.2 | 分诊排队 | FAIL | code=500, msg=No static resource index.html for request '/healthlink-his/index.html'. | | 医保 | 27.1 | 医保请求 | FAIL | code=500, msg=No static resource yb-request/page for request '/healthlink-his/yb-request/page'. | | 抗菌 | 28.1 | 抗菌药物 | FAIL | code=500, msg=No static resource api/v1/antibiotic/page for request '/healthlink-his/api/v1/antibiotic/page'. | | DRG | 29.1 | DRG分析 | FAIL | code=500, msg=No static resource drg-analysis/page for request '/healthlink-his/drg-analysis/page'. | | DRG | 29.2 | DRG分组 | FAIL | code=500, msg=

Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: column "create_by" does not exist

Posi | | 经营 | 30.1 | 经营分析 | FAIL | rows类型异常: <class 'dict'> | | 系统 | 31.1 | 字典定义 | FAIL | code=500, msg=No static resource dict-dictionary/definition/page for request '/healthlink-his/dict-dictionary/definition/page'. | | 系统 | 31.2 | 用户列表非空 | FAIL | 用户列表为空 | | 系统 | 31.3 | 角色列表非空 | FAIL | 角色列表为空 | | 系统 | 31.4 | 菜单>50条 | PASS | | | 系统 | 31.5 | 部门>5个 | PASS | | | 药房 | 32.1 | 库存预警 | FAIL | rows类型异常: <class 'dict'> | | 药房 | 32.2 | 西药发药 | FAIL | code=500, msg=No static resource pharmacy-manage/western-medicine-dispense/page for request '/healthlink-his/pharmacy-manage/western-m | | 药房 | 32.3 | 退药管理 | FAIL | code=500, msg=No static resource pharmacy-manage/return-medicine/page for request '/healthlink-his/pharmacy-manage/return-medicine/pag | | 报表 | 33.1 | 挂号报表 | FAIL | code=500, msg=No static resource report-manage/register/page for request '/healthlink-his/report-manage/register/page'. | | 报表 | 33.2 | 收费报表 | FAIL | code=500, msg=No static resource report-manage/charge/page for request '/healthlink-his/report-manage/charge/page'. | | 报表 | 33.3 | 经营统计 | FAIL | code=500, msg=No static resource report-manage/report-statistics/page for request '/healthlink-his/report-manage/report-statistics/pag |