Просмотр исходного кода

test(interface): 接口冒烟闭环 2026-11-01 14:28 — 通过率 44% (fix=0 reg=0); 测试用例 360/387 完成(文档化202)

E2E Test Bot 1 неделя назад
Родитель
Сommit
64fa5f6711
4 измененных файлов с 33 добавлено и 24 удалено
  1. 12 8
      INTERFACE_TEST_REPORT.md
  2. 4 1
      interface_test_extra_cases.tsv
  3. 15 13
      interface_test_report.tsv
  4. 2 2
      playwright_smoke.log

+ 12 - 8
INTERFACE_TEST_REPORT.md

@@ -1,17 +1,21 @@
-# CFC 接口冒烟测试报告 (20261101_103643)
+# CFC 接口冒烟测试报告 (20261101_142252)
 
-- 目标: cfc.iwintrue.com  用例总数: **542**
-- 业务成功率(BIZ_OK): **246/542 = 45%**
+- 目标: cfc.iwintrue.com  用例总数: **545**
+- 业务成功率(BIZ_OK): **245/545 = 44%**
 
 ## 分类汇总
-- BIZ_OK: 246
+- BIZ_OK: 245
 - BIZ_FAIL: 292
-- NOT_FOUND: 2
+- NOT_FOUND: 6
 - CONN_ERR: 2
 
-## 需开发团队关注的契约缺口 (NOT_FOUND=2)
+## 需开发团队关注的契约缺口 (NOT_FOUND=6)
 - `POST /api/badges/child/list`  (biz=None, NOT_FOUND)
 - `POST /api/badges/statistics/child`  (biz=None, NOT_FOUND)
+- `POST /api/admin/supply-team/service-assign`  (biz=None, NOT_FOUND)
+- `POST /api/admin/supply-team/service-candidates`  (biz=None, NOT_FOUND)
+- `POST /api/admin/supply-team/service-task/update`  (biz=None, NOT_FOUND)
+- `POST /api/admin/supply-team/service-tasks`  (biz=None, NOT_FOUND)
 
 ## 健壮性风险 (SERVER_ERR=0)
 
@@ -22,12 +26,12 @@
 - 自动化用例总数(可执行 `test()`):**387**(api 层 56 / 角色分包 52 / DOM 层 279)
 - 文档化用例(设计层 TC-xxxx):**202**
 - 已完成(自动化且未被跳过):**360/387 = 93%**
-- 已实跑通过:接口冒烟 BIZ_OK **246** 端点 + API e2e 末次 **0** 通过 / 0 fixme
+- 已实跑通过:接口冒烟 BIZ_OK **245** 端点 + API e2e 末次 **0** 通过 / 0 fixme
 
 ### 未完成 / 未开始的原因(共 4 类)
 1. [279 项] DOM 型 E2E 无法执行(CFC-ENV-001):279 个用例已编写,但远程 cfc.iwintrue.com 为纯 Spring Boot API 后端、未部署 uni-app H5 / cfc-web 前端,浏览器型用例无法运行,未开始执行。
 2. [27 项] 已知缺陷/待上线导致跳过:27 个用例被 test.skip/test.fixme 标记(能量发放 500-CFC-EN-001、昵称未持久化-CFC-FM-001 等),待后端修复后启用。
-3. [6 项] 新功能待部署后验证:接口冒烟发现 6 个 NOT_FOUND 端点,对应前端页面尚未部署到测试环境,相关 E2E 暂挂起。
+3. [10 项] 新功能待部署后验证:接口冒烟发现 10 个 NOT_FOUND 端点,对应前端页面尚未部署到测试环境,相关 E2E 暂挂起。
 4. [202 项] 文档化用例未全量自动化:202 条设计用例(TC-xxxx),核心主链路已落地 e2e,边缘/异常流仍以文档形式待补自动化。
 
 > 说明:自动化完成率按 `test()` 未被 skip/fixme 计;DOM 层受 CFC-ENV-001 限制需前端部署后执行,属环境阻塞而非用例缺失。

+ 4 - 1
interface_test_extra_cases.tsv

@@ -1 +1,4 @@
-auto	auto	POST	/api/coupon/available-templates	false	false
+auto	auto	POST	/api/admin/supply-team/service-assign	false	false
+auto	auto	POST	/api/admin/supply-team/service-candidates	false	false
+auto	auto	POST	/api/admin/supply-team/service-task/update	false	false
+auto	auto	POST	/api/admin/supply-team/service-tasks	false	false

+ 15 - 13
interface_test_report.tsv

@@ -15,14 +15,14 @@ __tests__/api/api.test	getArticleDetail	POST	/api/articles/detail	200	403	BIZ_FA
 __tests__/api/api.test	getArticleList	POST	/api/articles/list	200	200	BIZ_OK
 __tests__/api/api.test	getRelatedArticles	POST	/api/articles/related	200	500	BIZ_FAIL
 __tests__/api/api.test	autoLogin	POST	/api/auth/auto-login	200	410	BIZ_FAIL
-__tests__/api/api.test	checkPhone	POST	/api/auth/check-phone	200	500	BIZ_FAIL
+__tests__/api/api.test	checkPhone	POST	/api/auth/check-phone	200	200	BIZ_OK
 __tests__/api/api.test	directRegister	POST	/api/auth/direct-register	200	500	BIZ_FAIL
 __tests__/api/api.test	phoneLogin	POST	/api/auth/phone-login	200	500	BIZ_FAIL
-__tests__/api/api.test	sendCode	POST	/api/auth/send-code	200	500	BIZ_FAIL
-__tests__/api/api.test	setPassword	POST	/api/auth/set-password	200	400	BIZ_FAIL
+__tests__/api/api.test	sendCode	POST	/api/auth/send-code	200	200	BIZ_OK
+__tests__/api/api.test	setPassword	POST	/api/auth/set-password	200	200	BIZ_OK
 __tests__/api/api.test	silentLogin	POST	/api/auth/silent-login	200	500	BIZ_FAIL
 __tests__/api/api.test	verifyToken	POST	/api/auth/verify	200	200	BIZ_OK
-__tests__/api/api.test	verifyPassword	POST	/api/auth/verify-password	200	200	BIZ_OK
+__tests__/api/api.test	verifyPassword	POST	/api/auth/verify-password	200	400	BIZ_FAIL
 __tests__/api/api.test	wechatLogin	POST	/api/auth/wechat-login	200	200	BIZ_OK
 __tests__/api/api.test	wechatPhoneLogin	POST	/api/auth/wechat-phone-login	200	500	BIZ_FAIL
 __tests__/api/api.test	getChildBadges	POST	/api/badges/child/list	404	None	NOT_FOUND
@@ -261,11 +261,11 @@ pages/butler/apply	butlerApply	POST	/api/butler/apply	200	200	BIZ_OK
 pages/butler/select	getAvailableButlers	POST	/api/butler/available-list	200	200	BIZ_OK
 pages/butler/select	getMyButler	POST	/api/butler/my-butler	200	200	BIZ_OK
 pages/butler/select	selectButler	POST	/api/butler/select	200	500	BIZ_FAIL
-pages/child/rewards	verifyPassword	POST	/api/auth/verify-password	200	200	BIZ_OK
+pages/child/rewards	verifyPassword	POST	/api/auth/verify-password	200	400	BIZ_FAIL
 pages/child/rewards	getPointsBalance	POST	/api/points/balance	200	200	BIZ_OK
 pages/child/rewards	getWishlist	POST	/api/rewards/wishlist	200	200	BIZ_OK
 pages/child/rewards	switchBackToParent	POST	/api/family/user/switch-back-to-parent	200	410	BIZ_FAIL
-pages/child/tasks	verifyPassword	POST	/api/auth/verify-password	200	200	BIZ_OK
+pages/child/tasks	verifyPassword	POST	/api/auth/verify-password	200	400	BIZ_FAIL
 pages/child/tasks	getTodayTasks	POST	/api/tasks/today	200	200	BIZ_OK
 pages/child/tasks	switchBackToParent	POST	/api/family/user/switch-back-to-parent	200	410	BIZ_FAIL
 pages/cognitive-hall	getCognitiveChildScores	POST	/api/cognitive/child	200	200	BIZ_OK
@@ -329,7 +329,7 @@ pages/energy/detail	getEnergyLogs	POST	/api/energy/logs	200	200	BIZ_OK
 pages/energy/index	getEnergySandbox	POST	/api/energy/sandbox	200	200	BIZ_OK
 pages/energy/index	getFamilyEnergySandbox	POST	/api/energy/sandbox	200	200	BIZ_OK
 pages/energy/index	getFamilyMemberList	POST	/api/family/member/list	200	200	BIZ_OK
-pages/family/add-member	checkPhone	POST	/api/auth/check-phone	200	500	BIZ_FAIL
+pages/family/add-member	checkPhone	POST	/api/auth/check-phone	200	200	BIZ_OK
 pages/family/add-member	recordConsent	POST	/api/consent/record	200	500	BIZ_FAIL
 pages/family/add-member	addFamilyMember	POST	/api/family/member/add	200	500	BIZ_FAIL
 pages/family/add-member	updateFamilyMember	POST	/api/family/member/update	200	500	BIZ_FAIL
@@ -707,7 +707,7 @@ pages/profile-extra/family-members	reportAppEnter	POST	/api/home/app/enter	200	5
 pages/profile-extra/gates	getUnlockStatus	POST	/api/unlock/status	200	200	BIZ_OK
 pages/profile-extra/onboarding	claimOnboardingReward	POST	/api/onboarding/claim	200	200	BIZ_OK
 pages/profile-extra/onboarding	getOnboardingProgress	POST	/api/onboarding/progress	200	200	BIZ_OK
-pages/profile-main/profile	verifyPassword	POST	/api/auth/verify-password	200	200	BIZ_OK
+pages/profile-main/profile	verifyPassword	POST	/api/auth/verify-password	200	400	BIZ_FAIL
 pages/profile-main/profile	cartCount	POST	/api/cart/count	200	200	BIZ_OK
 pages/profile-main/profile	getMyReferrer	POST	/api/commission/my-referrer	200	200	BIZ_OK
 pages/profile-main/profile	getTeamConsumption	POST	/api/commission/team/consumption	200	200	BIZ_OK
@@ -723,10 +723,10 @@ pages/profile-main/profile	getTodayTasksByCategory	POST	/api/tasks/today	200	200
 pages/profile-main/profile	getUserInfo	POST	/api/user/info	200	200	BIZ_OK
 pages/profile-main/profile	getProfileStats	POST	/api/user/profile-stats	200	200	BIZ_OK
 pages/profile-main/profile	vendorStatus	POST	/api/vendor/status	200	200	BIZ_OK
-pages/profile/components/ProfileHeader	verifyPassword	POST	/api/auth/verify-password	200	200	BIZ_OK
+pages/profile/components/ProfileHeader	verifyPassword	POST	/api/auth/verify-password	200	400	BIZ_FAIL
 pages/profile/components/ProfileHeader	switchToFamilyMember	POST	/api/family/member/switch	200	500	BIZ_FAIL
-pages/profile/components/ProfileMenu	setPassword	POST	/api/auth/set-password	200	400	BIZ_FAIL
-pages/profile/components/ProfileMenu	verifyPassword	POST	/api/auth/verify-password	200	200	BIZ_OK
+pages/profile/components/ProfileMenu	setPassword	POST	/api/auth/set-password	200	200	BIZ_OK
+pages/profile/components/ProfileMenu	verifyPassword	POST	/api/auth/verify-password	200	400	BIZ_FAIL
 pages/profile/components/ProfileMenu	getFamilyMemberList	POST	/api/family/member/list	200	200	BIZ_OK
 pages/profile/components/ProfileMenu	updateMemberVisibility	POST	/api/family/user/members/update-visibility	200	500	BIZ_FAIL
 pages/profile/components/ProfileMenu	getReferralCode	POST	/api/invite/code	200	200	BIZ_OK
@@ -999,5 +999,7 @@ utils/api	getPortrait	POST	/api/user/portrait/get	200	200	BIZ_OK
 utils/api	regeneratePortrait	POST	/api/user/portrait/regenerate	-1	None	CONN_ERR
 utils/profile-backfill	backfillProfile	POST	/api/user/profile/backfill	200	500	BIZ_FAIL
 utils/sso	createSsoTicket	POST	/api/auth/sso-ticket	200	500	BIZ_FAIL
-auto	auto	POST	/api/octopus/effect/family/list	200	200	BIZ_OK
-auto	auto	POST	/api/pearl/family/resources	200	200	BIZ_OK
+auto	auto	POST	/api/admin/supply-team/service-assign	404	None	NOT_FOUND
+auto	auto	POST	/api/admin/supply-team/service-candidates	404	None	NOT_FOUND
+auto	auto	POST	/api/admin/supply-team/service-task/update	404	None	NOT_FOUND
+auto	auto	POST	/api/admin/supply-team/service-tasks	404	None	NOT_FOUND

+ 2 - 2
playwright_smoke.log

@@ -50,7 +50,7 @@ Running 58 tests using 1 worker
 [44/58] [desktop] › e2e\api\nonfunc-perf-compat.spec.js:92:1 › [TC-P-N02/X-N01] 并发不串数据:并行 AI 请求各自独立响应
 [45/58] [desktop] › e2e\api\nonfunc-perf-compat.spec.js:106:1 › [响应时间基线] 已登录家庭列表单请求耗时冒烟 ≤ 8s
 [desktop] › e2e\api\nonfunc-perf-compat.spec.js:106:1 › [响应时间基线] 已登录家庭列表单请求耗时冒烟 ≤ 8s
-[耗时] 家庭列表 73ms
+[耗时] 家庭列表 103ms
 
 [46/58] [desktop] › e2e\api\nonfunc-perf-compat.spec.js:117:6 › [TC-C-N01/X-N04] 任务打卡幂等:重复提交不重复计分(需任务流夹具)
 [47/58] [desktop] › e2e\api\nonfunc-perf-compat.spec.js:122:6 › [TC-X-N03] 活动名额并发不超卖:100 名额 / 瞬时 500 请求(需活动夹具 + 压测授权)
@@ -107,4 +107,4 @@ Running 58 tests using 1 worker
     [desktop] › e2e\api\nonfunc-security.spec.js:75:3 › 非功能/安全接口冒烟 › [TC-A-N05] 非管理员访问后台接口被拒(401/403) 
     [desktop] › e2e\api\nonfunc-security.spec.js:121:3 › 非功能/安全接口冒烟 › [TC-P-N11] 报告上传非 PDF/恶意内容被拒(非 200) 
   5 skipped
-  51 passed (54.2s)
+  51 passed (1.0m)