diff --git a/__pycache__/encoding_fix.cpython-313.pyc b/__pycache__/encoding_fix.cpython-313.pyc new file mode 100644 index 0000000..05976a7 Binary files /dev/null and b/__pycache__/encoding_fix.cpython-313.pyc differ diff --git a/client_test.json b/client_test.json new file mode 100644 index 0000000..2b8057e --- /dev/null +++ b/client_test.json @@ -0,0 +1,13 @@ +{ + "message": "这是客户端测试数据", + "timestamp": "2025-07-01T14:07:28.439293", + "data": { + "name": "测试用户", + "age": 25, + "hobbies": [ + "编程", + "音乐", + "阅读" + ] + } +} \ No newline at end of file diff --git a/test_report.json b/test_report.json index 48583ca..e85a812 100644 --- a/test_report.json +++ b/test_report.json @@ -1,18 +1,27 @@ { - "test_time": "2025-07-01T14:03:13.108361", + "test_time": "2025-07-01T14:06:52.602924", "test_results": [ - "[14:03:11] INFO: 🚀 开始 Socket JSON 传输系统完整测试", - "[14:03:11] INFO: ==================================================", - "[14:03:11] INFO: \n📋 测试 1/4: 验证文件存在性", - "[14:03:11] INFO: 验证测试文件...", - "[14:03:11] SUCCESS: ✅ 所有必需文件都存在", - "[14:03:11] INFO: \n🖥️ 测试 2/4: 启动服务器", - "[14:03:11] INFO: 正在启动服务器...", - "[14:03:13] ERROR: ❌ 服务器启动失败: Traceback (most recent call last):\n File \"C:\\Users\\20920\\Desktop\\blender\\server.py\", line 22, in start_server\n print(f\"\\U0001f680 服务器启动成功!\")\n ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^\nUnicodeEncodeError: 'gbk' codec can't encode character '\\U0001f680' in position 0: illegal multibyte sequence\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"C:\\Users\\20920\\Desktop\\blender\\server.py\", line 189, in \n server.start_server()\n ~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\20920\\Desktop\\blender\\server.py\", line 40, in start_server\n print(f\"\\u274c 服务器启动失败: {e}\")\n ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^\nUnicodeEncodeError: 'gbk' codec can't encode character '\\u274c' in position 0: illegal multibyte sequence\n", - "[14:03:13] INFO: ⛔ 服务器已停止", - "[14:03:13] INFO: \n==================================================", - "[14:03:13] WARNING: 🎯 测试完成: 1/4 项通过", - "[14:03:13] WARNING: ⚠️ 部分测试失败,请检查上述错误信息" + "[14:06:50] INFO: 🚀 开始 Socket JSON 传输系统完整测试", + "[14:06:50] INFO: ==================================================", + "[14:06:50] INFO: \n📋 测试 1/4: 验证文件存在性", + "[14:06:50] INFO: 验证测试文件...", + "[14:06:50] SUCCESS: ✅ 所有必需文件都存在", + "[14:06:50] INFO: \n🖥️ 测试 2/4: 启动服务器", + "[14:06:50] INFO: 正在启动服务器...", + "[14:06:52] SUCCESS: ✅ 服务器启动成功", + "[14:06:52] INFO: \n💻 测试 3/4: 客户端功能测试", + "[14:06:52] INFO: 开始测试客户端功能...", + "[14:06:52] SUCCESS: ✅ 客户端测试完成", + "[14:06:52] DEBUG: 客户端输出:", + "[14:06:52] ERROR: ❌ 客户端测试出错: 'NoneType' object has no attribute 'split'", + "[14:06:52] INFO: \n📁 测试 4/4: 验证文件传输", + "[14:06:52] SUCCESS: ✅ 发现客户端创建的测试文件", + "[14:06:52] SUCCESS: ✅ JSON 文件格式正确", + "[14:06:52] DEBUG: 文件内容预览: 这是客户端测试数据", + "[14:06:52] INFO: ⛔ 服务器已停止", + "[14:06:52] INFO: \n==================================================", + "[14:06:52] WARNING: 🎯 测试完成: 3/4 项通过", + "[14:06:52] WARNING: ⚠️ 部分测试失败,请检查上述错误信息" ], - "summary": "测试完成,详细日志共 12 条" + "summary": "测试完成,详细日志共 21 条" } \ No newline at end of file