|
@@ -2,7 +2,7 @@
|
|
|
"project_name": "AI有声书生成工具-第二期",
|
|
"project_name": "AI有声书生成工具-第二期",
|
|
|
"base_config": {
|
|
"base_config": {
|
|
|
"backend_port": 3000,
|
|
"backend_port": 3000,
|
|
|
- "frontend_port": 8080,
|
|
|
|
|
|
|
+ "frontend_port": 5174,
|
|
|
"db_host": "localhost",
|
|
"db_host": "localhost",
|
|
|
"db_port": 3306
|
|
"db_port": 3306
|
|
|
},
|
|
},
|
|
@@ -23,8 +23,8 @@
|
|
|
"3. 退出页面后重新进入",
|
|
"3. 退出页面后重新进入",
|
|
|
"4. 验证是否显示'继续播放'按钮并正确续播到30秒位置"
|
|
"4. 验证是否显示'继续播放'按钮并正确续播到30秒位置"
|
|
|
],
|
|
],
|
|
|
- "status": "frontend-testing",
|
|
|
|
|
- "passes": false
|
|
|
|
|
|
|
+ "status": "done",
|
|
|
|
|
+ "passes": true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"id": 2,
|
|
"id": 2,
|
|
@@ -32,10 +32,10 @@
|
|
|
"priority": "P1",
|
|
"priority": "P1",
|
|
|
"phase": "第一阶段",
|
|
"phase": "第一阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X GET http://localhost:8000/api/favorites - 验证获取收藏列表接口返回 200",
|
|
|
|
|
- "2. curl -X POST http://localhost:8000/api/favorites -d '{\"audioId\":\"test-audio-1\"}' - 验证添加收藏接口返回 200",
|
|
|
|
|
- "3. curl -X GET http://localhost:8000/api/favorites - 验证收藏列表包含新添加的音频",
|
|
|
|
|
- "4. curl -X DELETE http://localhost:8000/api/favorites/test-audio-1 - 验证取消收藏接口返回 200"
|
|
|
|
|
|
|
+ "1. curl -X GET http://localhost:3000/api/favorites - 验证获取收藏列表接口返回 200",
|
|
|
|
|
+ "2. curl -X POST http://localhost:3000/api/favorites -d '{\"audioId\":\"test-audio-1\"}' - 验证添加收藏接口返回 200",
|
|
|
|
|
+ "3. curl -X GET http://localhost:3000/api/favorites - 验证收藏列表包含新添加的音频",
|
|
|
|
|
+ "4. curl -X DELETE http://localhost:3000/api/favorites/test-audio-1 - 验证取消收藏接口返回 200"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 打开播放器页面播放音频",
|
|
"1. 打开播放器页面播放音频",
|
|
@@ -71,9 +71,9 @@
|
|
|
"priority": "P1",
|
|
"priority": "P1",
|
|
|
"phase": "第一阶段",
|
|
"phase": "第一阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X GET http://localhost:8000/api/user/preferences - 验证获取用户偏好接口返回 200",
|
|
|
|
|
- "2. curl -X PUT http://localhost:8000/api/user/preferences -d '{\"playSpeed\":1.5}' - 验证更新偏好接口返回 200",
|
|
|
|
|
- "3. curl -X GET http://localhost:8000/api/user/preferences - 验证playSpeed为1.5"
|
|
|
|
|
|
|
+ "1. curl -X GET http://localhost:3000/api/user/preferences - 验证获取用户偏好接口返回 200",
|
|
|
|
|
+ "2. curl -X PUT http://localhost:3000/api/user/preferences -d '{\"playSpeed\":1.5}' - 验证更新偏好接口返回 200",
|
|
|
|
|
+ "3. curl -X GET http://localhost:3000/api/user/preferences - 验证playSpeed为1.5"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 打开播放器页面",
|
|
"1. 打开播放器页面",
|
|
@@ -92,7 +92,7 @@
|
|
|
"priority": "P1",
|
|
"priority": "P1",
|
|
|
"phase": "第一阶段",
|
|
"phase": "第一阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X POST http://localhost:8000/api/share -d '{\"audioId\":\"test-audio-1\"}' - 验证生成分享链接接口返回 200"
|
|
|
|
|
|
|
+ "1. curl -X POST http://localhost:3000/api/share -d '{\"audioId\":\"test-audio-1\"}' - 验证生成分享链接接口返回 200"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 打开播放器页面",
|
|
"1. 打开播放器页面",
|
|
@@ -127,9 +127,9 @@
|
|
|
"priority": "P1",
|
|
"priority": "P1",
|
|
|
"phase": "第二阶段",
|
|
"phase": "第二阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X GET 'http://localhost:8000/api/search?q=test' - 验证搜索接口返回 200",
|
|
|
|
|
- "2. curl -X GET 'http://localhost:8000/api/search?q=' - 验证空关键词返回历史记录",
|
|
|
|
|
- "3. curl -X GET 'http://localhost:8000/api/search?q=小说' - 验证中文搜索正常"
|
|
|
|
|
|
|
+ "1. curl -X GET 'http://localhost:3000/api/search?q=test' - 验证搜索接口返回 200",
|
|
|
|
|
+ "2. curl -X GET 'http://localhost:3000/api/search?q=' - 验证空关键词返回历史记录",
|
|
|
|
|
+ "3. curl -X GET 'http://localhost:3000/api/search?q=小说' - 验证中文搜索正常"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 点击顶部搜索图标进入搜索页面",
|
|
"1. 点击顶部搜索图标进入搜索页面",
|
|
@@ -149,8 +149,8 @@
|
|
|
"priority": "P2",
|
|
"priority": "P2",
|
|
|
"phase": "第二阶段",
|
|
"phase": "第二阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X GET http://localhost:8000/api/categories - 验证获取分类列表接口返回 200",
|
|
|
|
|
- "2. curl -X GET http://localhost:8000/api/categories/1 - 验证获取分类下音频接口返回 200"
|
|
|
|
|
|
|
+ "1. curl -X GET http://localhost:3000/api/categories - 验证获取分类列表接口返回 200",
|
|
|
|
|
+ "2. curl -X GET http://localhost:3000/api/categories/1 - 验证获取分类下音频接口返回 200"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 在首页点击分类标签(如'小说')",
|
|
"1. 在首页点击分类标签(如'小说')",
|
|
@@ -169,8 +169,8 @@
|
|
|
"priority": "P2",
|
|
"priority": "P2",
|
|
|
"phase": "第二阶段",
|
|
"phase": "第二阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X PUT http://localhost:8000/api/user/preferences -d '{\"quality\":\"high\"}' - 验证更新音质偏好返回 200",
|
|
|
|
|
- "2. curl -X GET http://localhost:8000/api/user/preferences - 验证quality为high"
|
|
|
|
|
|
|
+ "1. curl -X PUT http://localhost:3000/api/user/preferences -d '{\"quality\":\"high\"}' - 验证更新音质偏好返回 200",
|
|
|
|
|
+ "2. curl -X GET http://localhost:3000/api/user/preferences - 验证quality为high"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 打开播放器页面",
|
|
"1. 打开播放器页面",
|
|
@@ -189,7 +189,7 @@
|
|
|
"priority": "P2",
|
|
"priority": "P2",
|
|
|
"phase": "第二阶段",
|
|
"phase": "第二阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X GET http://localhost:8000/api/downloads - 验证获取下载列表接口返回 200"
|
|
|
|
|
|
|
+ "1. curl -X GET http://localhost:3000/api/downloads - 验证获取下载列表接口返回 200"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 在播放器页面点击下载按钮",
|
|
"1. 在播放器页面点击下载按钮",
|
|
@@ -210,7 +210,7 @@
|
|
|
"priority": "P2",
|
|
"priority": "P2",
|
|
|
"phase": "贯穿全程",
|
|
"phase": "贯穿全程",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X POST http://localhost:8000/api/downloads/check -d '{\"audioId\":\"test\",\"downloaded\":1024000}' - 验证断点查询返回正确信息"
|
|
|
|
|
|
|
+ "1. curl -X POST http://localhost:3000/api/downloads/check -d '{\"audioId\":\"test\",\"downloaded\":1024000}' - 验证断点查询返回正确信息"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 开始下载一个大音频文件",
|
|
"1. 开始下载一个大音频文件",
|
|
@@ -229,9 +229,9 @@
|
|
|
"priority": "P2",
|
|
"priority": "P2",
|
|
|
"phase": "贯穿全程",
|
|
"phase": "贯穿全程",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X POST http://localhost:8000/api/favorites -d '{\"audioId\":\"sync-test\"}' - 添加收藏",
|
|
|
|
|
- "2. curl -X GET http://localhost:8000/api/favorites - 验证收藏添加成功",
|
|
|
|
|
- "3. curl -X PUT http://localhost:8000/api/player/progress -d '{\"audioId\":\"sync-test\",\"progress\":50}' - 更新播放进度"
|
|
|
|
|
|
|
+ "1. curl -X POST http://localhost:3000/api/favorites -d '{\"audioId\":\"sync-test\"}' - 添加收藏",
|
|
|
|
|
+ "2. curl -X GET http://localhost:3000/api/favorites - 验证收藏添加成功",
|
|
|
|
|
+ "3. curl -X PUT http://localhost:3000/api/player/progress -d '{\"audioId\":\"sync-test\",\"progress\":50}' - 更新播放进度"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 在H5端收藏一个音频",
|
|
"1. 在H5端收藏一个音频",
|
|
@@ -250,9 +250,9 @@
|
|
|
"priority": "P2",
|
|
"priority": "P2",
|
|
|
"phase": "第三阶段",
|
|
"phase": "第三阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X GET http://localhost:8000/api/comments/test-audio-1 - 验证获取评论列表接口返回 200",
|
|
|
|
|
- "2. curl -X POST http://localhost:8000/api/comments -d '{\"audioId\":\"test-audio-1\",\"content\":\"很好听\",\"rating\":5}' - 验证发表评论接口返回 200",
|
|
|
|
|
- "3. curl -X GET http://localhost:8000/api/comments/test-audio-1 - 验证评论已添加"
|
|
|
|
|
|
|
+ "1. curl -X GET http://localhost:3000/api/comments/test-audio-1 - 验证获取评论列表接口返回 200",
|
|
|
|
|
+ "2. curl -X POST http://localhost:3000/api/comments -d '{\"audioId\":\"test-audio-1\",\"content\":\"很好听\",\"rating\":5}' - 验证发表评论接口返回 200",
|
|
|
|
|
+ "3. curl -X GET http://localhost:3000/api/comments/test-audio-1 - 验证评论已添加"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 打开播放器页面",
|
|
"1. 打开播放器页面",
|
|
@@ -272,7 +272,7 @@
|
|
|
"priority": "P3",
|
|
"priority": "P3",
|
|
|
"phase": "第三阶段",
|
|
"phase": "第三阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X GET http://localhost:8000/api/notifications - 验证获取消息列表接口返回 200"
|
|
|
|
|
|
|
+ "1. curl -X GET http://localhost:3000/api/notifications - 验证获取消息列表接口返回 200"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 进入设置页面",
|
|
"1. 进入设置页面",
|
|
@@ -292,8 +292,8 @@
|
|
|
"priority": "P3",
|
|
"priority": "P3",
|
|
|
"phase": "第三阶段",
|
|
"phase": "第三阶段",
|
|
|
"backend_test_steps": [
|
|
"backend_test_steps": [
|
|
|
- "1. curl -X PUT http://localhost:8000/api/user/preferences -d '{\"theme\":\"dark\"}' - 验证更新主题偏好返回 200",
|
|
|
|
|
- "2. curl -X GET http://localhost:8000/api/user/preferences - 验证theme为dark"
|
|
|
|
|
|
|
+ "1. curl -X PUT http://localhost:3000/api/user/preferences -d '{\"theme\":\"dark\"}' - 验证更新主题偏好返回 200",
|
|
|
|
|
+ "2. curl -X GET http://localhost:3000/api/user/preferences - 验证theme为dark"
|
|
|
],
|
|
],
|
|
|
"frontend_test_steps": [
|
|
"frontend_test_steps": [
|
|
|
"1. 进入设置页面",
|
|
"1. 进入设置页面",
|