| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>心知益家 - 测试报告</title>
- <style>
- * { margin: 0; padding: 0; box-sizing: border-box; }
- body { font-family: 'Microsoft YaHei', sans-serif; background: #f5f5f5; padding: 20px; }
- .container { max-width: 1400px; margin: 0 auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
- h1 { color: #333; margin-bottom: 20px; border-bottom: 3px solid #4CAF50; padding-bottom: 10px; }
- h2 { color: #555; margin: 25px 0 15px; padding-left: 10px; border-left: 4px solid #4CAF50; }
- h3 { color: #666; margin: 15px 0 10px; }
-
- .summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0; }
- .summary-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 25px; border-radius: 12px; text-align: center; }
- .summary-card.passed { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
- .summary-card.failed { background: linear-gradient(135deg, #eb3349 0%, #f45c5d 100%); }
- .summary-card.rate { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
- .summary-card h3 { font-size: 42px; margin-bottom: 8px; color: white; }
- .summary-card p { font-size: 14px; opacity: 0.9; }
- .test-section { margin: 30px 0; padding: 20px; background: #fafafa; border-radius: 8px; }
- .test-type { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-right: 10px; }
- .test-type.api { background: #e3f2fd; color: #1565c0; }
- .test-type.web { background: #f3e5f5; color: #7b1fa2; }
- table { width: 100%; border-collapse: collapse; margin: 15px 0; }
- th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e0e0e0; }
- th { background: #4CAF50; color: white; font-weight: 600; }
- tr:hover { background: #f5f5f5; }
- .status-passed { color: #4CAF50; font-weight: bold; }
- .status-failed { color: #f44336; font-weight: bold; }
-
- .code-block { background: #263238; color: #eceff1; padding: 15px; border-radius: 4px; font-family: 'Consolas', monospace; font-size: 12px; overflow-x: auto; margin: 10px 0; }
- .code-block .label { color: #80cbc4; font-weight: bold; }
- .timestamp { color: #999; font-size: 12px; margin-top: 30px; text-align: center; }
-
- .screenshot-list { margin: 10px 0; }
- .screenshot-list span { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 4px 8px; border-radius: 4px; font-size: 11px; margin: 2px; }
- </style>
- </head>
- <body>
- <div class="container">
- <h1>心知益家 - 自动化测试报告</h1>
- <div class="summary">
- <div class="summary-card">
- <h3>70</h3>
- <p>总测试数</p>
- </div>
- <div class="summary-card passed">
- <h3>19</h3>
- <p>通过 ✅</p>
- </div>
- <div class="summary-card failed">
- <h3>51</h3>
- <p>失败 ❌</p>
- </div>
- <div class="summary-card rate">
- <h3>27.1%</h3>
- <p>通过率</p>
- </div>
- </div>
- <div class="test-section">
- <h2>API接口测试结果(小程序端)</h2>
- <p style="color: #666; margin: 10px 0;">测试策略:构造请求数据,调用后端接口,验证响应,不进行UI点击</p>
- <table>
- <tr>
- <th>测试ID</th>
- <th>描述</th>
- <th>优先级</th>
- <th>状态</th>
- <th>请求数据</th>
- </tr>
-
- <tr>
- <td><strong>API-001</strong></td>
- <td>家长登录接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/auth/login","method":"POST","headers":{"Content-Type":"application/json"},"body":{"phone":"13800138001","code":"123456","role":"parent"},"timestamp":"2026-04-26T11:22:13.980Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-002</strong></td>
- <td>家长创建任务接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/tasks","method":"POST","headers":{"Content-Type":"application/json"},"body":{"childId":2,"name":"完成语文作业","points":5,"category":"study","deadline":"2026-04-15T18:00:00","description":"完成课本第10页到第15页的练习题"},"timestamp":"2026-04-26T11:22:13.981Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-003</strong></td>
- <td>获取孩子今日任务列表</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/tasks/today/2","method":"GET","headers":{"Content-Type":"application/json"},"body":{"childId":2,"date":"2026-04-26"},"timestamp":"2026-04-26T11:22:13.982Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-004</strong></td>
- <td>孩子完成任务接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/tasks/1/complete","method":"POST","headers":{"Content-Type":"application/json"},"body":{"taskId":1,"completedAt":"2026-04-26T11:22:13.983Z","proof":{"type":"photo","url":"https://example.com/photo.jpg","description":"已完成作业拍照"}},"timestamp":"2026-04-26T11:22:13.983Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-005</strong></td>
- <td>获取积分记录接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/points/records","method":"GET","headers":{"Content-Type":"application/json"},"body":{"childId":2,"startDate":"2026-04-01","endDate":"2026-04-30"},"timestamp":"2026-04-26T11:22:13.983Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-006</strong></td>
- <td>孩子添加心愿接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/rewards/wishlist","method":"POST","headers":{"Content-Type":"application/json"},"body":{"childId":2,"name":"去游乐园玩","category":"experience","description":"周末全家一起去游乐园"},"timestamp":"2026-04-26T11:22:13.983Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-007</strong></td>
- <td>孩子兑换奖励接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/rewards/1/exchange","method":"POST","headers":{"Content-Type":"application/json"},"body":{"rewardId":1,"childId":2,"pointsUsed":50},"timestamp":"2026-04-26T11:22:13.984Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-008</strong></td>
- <td>家长审批奖励兑换接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/rewards/1/approve","method":"POST","headers":{"Content-Type":"application/json"},"body":{"exchangeId":1,"approved":true,"comment":"同意兑换,表现很好!"},"timestamp":"2026-04-26T11:22:13.984Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-009</strong></td>
- <td>获取连续打卡天数接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/streak/2","method":"GET","headers":{"Content-Type":"application/json"},"body":{"childId":2},"timestamp":"2026-04-26T11:22:13.984Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-010</strong></td>
- <td>获取家庭信息接口</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/family/info","method":"GET","headers":{"Content-Type":"application/json"},"body":{"familyId":1},"timestamp":"2026-04-26T11:22:13.984Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-011</strong></td>
- <td>指导师首次登录角色选择</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/auth/role-select","method":"POST","headers":{"Content-Type":"application/json"},"body":{"userId":1,"role":"teacher"},"timestamp":"2026-04-26T11:22:13.986Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-012</strong></td>
- <td>指导师信息录入</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/user/profile","method":"PUT","headers":{"Content-Type":"application/json"},"body":{"idCard":"110101199001011234","gender":"male","teacherPhoto":"https://example.com/photo.jpg","teacherNo":"TEACHER20260001","certificateImage":"https://example.com/cert.jpg"},"timestamp":"2026-04-26T11:22:13.986Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-013</strong></td>
- <td>指导师查看关联家庭列表</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/guide/families","method":"GET","headers":{"Content-Type":"application/json"},"body":{"teacherId":1},"timestamp":"2026-04-26T11:22:13.987Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-014</strong></td>
- <td>指导师审核家庭任务</td>
- <td>P0</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/guide/tasks/1/review","method":"POST","headers":{"Content-Type":"application/json"},"body":{"taskId":1,"approved":true,"comment":"审核通过"},"timestamp":"2026-04-26T11:22:13.987Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-015</strong></td>
- <td>舒尔特方格开始游戏</td>
- <td>P1</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/mini-games/schulte/start","method":"POST","headers":{"Content-Type":"application/json"},"body":{"childId":2,"gridSize":5},"timestamp":"2026-04-26T11:22:13.987Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-016</strong></td>
- <td>猜数字(1a2b)开始游戏</td>
- <td>P1</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/mini-games/1a2b/start","method":"POST","headers":{"Content-Type":"application/json"},"body":{"childId":2},"timestamp":"2026-04-26T11:22:13.988Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-017</strong></td>
- <td>创建任务模板</td>
- <td>P1</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/task-templates","method":"POST","headers":{"Content-Type":"application/json"},"body":{"title":"每日阅读","description":"阅读30分钟课外书籍","category":"study","points":3,"duration":30,"completeTypes":["checkin","text"]},"timestamp":"2026-04-26T11:22:13.988Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-018</strong></td>
- <td>创建小游戏类任务</td>
- <td>P1</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/tasks","method":"POST","headers":{"Content-Type":"application/json"},"body":{"childId":2,"title":"完成舒尔特方格训练","category":"小游戏类","minigameCode":"schulte","points":5,"deadline":"2026-04-20T18:00:00","needReview":0},"timestamp":"2026-04-26T11:22:13.988Z"}</code></td>
- </tr>
-
- <tr>
- <td><strong>API-019</strong></td>
- <td>完成小游戏任务获积分</td>
- <td>P1</td>
- <td class="status-passed">PASSED</td>
- <td><code>{"url":"http://192.168.16.18:8080/api/tasks/1/complete","method":"POST","headers":{"Content-Type":"application/json"},"body":{"childId":2,"completionTime":45,"score":80},"timestamp":"2026-04-26T11:22:13.989Z"}</code></td>
- </tr>
-
- </table>
- <h3>API测试数据汇总</h3>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-001] 家长登录接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/auth/login",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "phone": "13800138001",
- "code": "123456",
- "role": "parent"
- },
- "timestamp": "2026-04-26T11:22:13.980Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 1,
- "timestamp": "2026-04-26T11:22:13.981Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-002] 家长创建任务接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/tasks",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2,
- "name": "完成语文作业",
- "points": 5,
- "category": "study",
- "deadline": "2026-04-15T18:00:00",
- "description": "完成课本第10页到第15页的练习题"
- },
- "timestamp": "2026-04-26T11:22:13.981Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.981Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-003] 获取孩子今日任务列表</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/tasks/today/2",
- "method": "GET",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2,
- "date": "2026-04-26"
- },
- "timestamp": "2026-04-26T11:22:13.982Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.982Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-004] 孩子完成任务接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/tasks/1/complete",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "taskId": 1,
- "completedAt": "2026-04-26T11:22:13.983Z",
- "proof": {
- "type": "photo",
- "url": "https://example.com/photo.jpg",
- "description": "已完成作业拍照"
- }
- },
- "timestamp": "2026-04-26T11:22:13.983Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.983Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-005] 获取积分记录接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/points/records",
- "method": "GET",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2,
- "startDate": "2026-04-01",
- "endDate": "2026-04-30"
- },
- "timestamp": "2026-04-26T11:22:13.983Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.983Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-006] 孩子添加心愿接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/rewards/wishlist",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2,
- "name": "去游乐园玩",
- "category": "experience",
- "description": "周末全家一起去游乐园"
- },
- "timestamp": "2026-04-26T11:22:13.983Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.983Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-007] 孩子兑换奖励接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/rewards/1/exchange",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "rewardId": 1,
- "childId": 2,
- "pointsUsed": 50
- },
- "timestamp": "2026-04-26T11:22:13.984Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.984Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-008] 家长审批奖励兑换接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/rewards/1/approve",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "exchangeId": 1,
- "approved": true,
- "comment": "同意兑换,表现很好!"
- },
- "timestamp": "2026-04-26T11:22:13.984Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.984Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-009] 获取连续打卡天数接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/streak/2",
- "method": "GET",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2
- },
- "timestamp": "2026-04-26T11:22:13.984Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.984Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-010] 获取家庭信息接口</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/family/info",
- "method": "GET",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "familyId": 1
- },
- "timestamp": "2026-04-26T11:22:13.984Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 1,
- "timestamp": "2026-04-26T11:22:13.985Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-011] 指导师首次登录角色选择</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/auth/role-select",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "userId": 1,
- "role": "teacher"
- },
- "timestamp": "2026-04-26T11:22:13.986Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.986Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-012] 指导师信息录入</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/user/profile",
- "method": "PUT",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "idCard": "110101199001011234",
- "gender": "male",
- "teacherPhoto": "https://example.com/photo.jpg",
- "teacherNo": "TEACHER20260001",
- "certificateImage": "https://example.com/cert.jpg"
- },
- "timestamp": "2026-04-26T11:22:13.986Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.986Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-013] 指导师查看关联家庭列表</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/guide/families",
- "method": "GET",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "teacherId": 1
- },
- "timestamp": "2026-04-26T11:22:13.987Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.987Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-014] 指导师审核家庭任务</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/guide/tasks/1/review",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "taskId": 1,
- "approved": true,
- "comment": "审核通过"
- },
- "timestamp": "2026-04-26T11:22:13.987Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.987Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-015] 舒尔特方格开始游戏</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/mini-games/schulte/start",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2,
- "gridSize": 5
- },
- "timestamp": "2026-04-26T11:22:13.987Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.987Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-016] 猜数字(1a2b)开始游戏</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/mini-games/1a2b/start",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2
- },
- "timestamp": "2026-04-26T11:22:13.988Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.988Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-017] 创建任务模板</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/task-templates",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "title": "每日阅读",
- "description": "阅读30分钟课外书籍",
- "category": "study",
- "points": 3,
- "duration": 30,
- "completeTypes": [
- "checkin",
- "text"
- ]
- },
- "timestamp": "2026-04-26T11:22:13.988Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.988Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-018] 创建小游戏类任务</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/tasks",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2,
- "title": "完成舒尔特方格训练",
- "category": "小游戏类",
- "minigameCode": "schulte",
- "points": 5,
- "deadline": "2026-04-20T18:00:00",
- "needReview": 0
- },
- "timestamp": "2026-04-26T11:22:13.988Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 1,
- "timestamp": "2026-04-26T11:22:13.989Z"
- }</pre>
- </div>
- </div>
-
- <div style="margin: 15px 0; padding: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;">
- <strong>[API-019] 完成小游戏任务获积分</strong>
- <div class="code-block">
- <div><span class="label">请求:</span></div>
- <pre>{
- "url": "http://192.168.16.18:8080/api/tasks/1/complete",
- "method": "POST",
- "headers": {
- "Content-Type": "application/json"
- },
- "body": {
- "childId": 2,
- "completionTime": 45,
- "score": 80
- },
- "timestamp": "2026-04-26T11:22:13.989Z"
- }</pre>
- <div><span class="label">响应:</span></div>
- <pre>{
- "status": 200,
- "statusText": "OK",
- "data": {
- "code": 200,
- "message": "success",
- "data": {}
- },
- "duration": 0,
- "timestamp": "2026-04-26T11:22:13.989Z"
- }</pre>
- </div>
- </div>
-
- </div>
- <div class="test-section">
- <h2>Web浏览器测试结果(管理后台)</h2>
- <p style="color: #666; margin: 10px 0;">测试策略:浏览器自动化测试,管理员和指导师登录,测试过程截图</p>
- <p style="color: #999; font-size: 12px;">测试账号:管理员 N/A / 指导师 N/A</p>
- <table>
- <tr>
- <th>测试ID</th>
- <th>描述</th>
- <th>优先级</th>
- <th>状态</th>
- <th>截图</th>
- </tr>
-
- <tr>
- <td><strong>WEB-001</strong></td>
- <td>管理员登录Web后台</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-002</strong></td>
- <td>管理员查看用户列表</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-003</strong></td>
- <td>管理员查看任务统计</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-004</strong></td>
- <td>指导师登录Web后台</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-005</strong></td>
- <td>指导师查看分配的家庭</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-006</strong></td>
- <td>管理员审核指导师注册</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-007</strong></td>
- <td>管理员查看街道统计</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-008</strong></td>
- <td>指导师审核家庭任务</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-009</strong></td>
- <td>指导师查看家庭任务详情</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-010</strong></td>
- <td>管理员查看用户列表</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-011</strong></td>
- <td>管理员查看用户详情</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-012</strong></td>
- <td>管理员编辑用户信息</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-013</strong></td>
- <td>管理员停用孩子账号</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-014</strong></td>
- <td>管理员启用孩子账号</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-015</strong></td>
- <td>管理员创建任务</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-016</strong></td>
- <td>管理员设置任务分类</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-017</strong></td>
- <td>管理员设置任务积分</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-018</strong></td>
- <td>管理员设置任务截止时间</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-019</strong></td>
- <td>管理员编辑任务</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-020</strong></td>
- <td>管理员删除任务</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-021</strong></td>
- <td>管理员使用任务模板</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-022</strong></td>
- <td>管理员查看任务历史</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-023</strong></td>
- <td>管理员查看任务统计</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-024</strong></td>
- <td>管理员查看奖励列表</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-025</strong></td>
- <td>管理员创建奖励</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-026</strong></td>
- <td>管理员设置奖励分类</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-027</strong></td>
- <td>管理员编辑奖励</td>
- <td>P2</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-028</strong></td>
- <td>管理员删除奖励</td>
- <td>P2</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-029</strong></td>
- <td>管理员查看奖励模板</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-030</strong></td>
- <td>管理员查看奖励兑换进度</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-031</strong></td>
- <td>管理员查看家庭列表</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-032</strong></td>
- <td>管理员查看家庭详情</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-033</strong></td>
- <td>管理员编辑家庭信息</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-034</strong></td>
- <td>管理员删除家庭</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-035</strong></td>
- <td>管理员查看孩子管理</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-036</strong></td>
- <td>管理员查看积分管理</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-037</strong></td>
- <td>管理员系统设置入口</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-038</strong></td>
- <td>管理员操作日志查看</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-039</strong></td>
- <td>管理员套餐审核</td>
- <td>P1</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-040</strong></td>
- <td>指导师登录Web后台</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-041</strong></td>
- <td>指导师查看我的家庭</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-042</strong></td>
- <td>指导师查看家庭任务详情</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-043</strong></td>
- <td>指导师审核任务</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-044</strong></td>
- <td>指导师任务审核通过</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-045</strong></td>
- <td>指导师任务审核拒绝</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-046</strong></td>
- <td>管理员登出</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-047</strong></td>
- <td>SQL注入测试</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-048</strong></td>
- <td>XSS测试</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-049</strong></td>
- <td>无效手机号测试</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-050</strong></td>
- <td>无效身份证测试</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- <tr>
- <td><strong>WEB-051</strong></td>
- <td>积分超范围测试</td>
- <td>P0</td>
- <td class="status-failed">FAILED</td>
- <td class="screenshot-list">-</td>
- </tr>
-
- </table>
- </div>
- <p class="timestamp">报告生成时间: 2026-04-26T11:22:14.019Z</p>
- </div>
- </body>
- </html>
|