# TestFramework **Repository Path**: yRan-032/test-framework ## Basic Information - **Project Name**: TestFramework - **Description**: 测试用例 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-24 - **Last Updated**: 2025-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TestFramework #### 介绍 测试用例 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 离线环境下安装第三方包: 1. 安装 virtualenvwrapper-win 2. makevirtualenv + 环境名 3. workon + 环境名 进入到虚拟环境中 4. python -m pip install --no-index --find-links=./offline_packages --ignore-installed setuptools -r requirement.txt #### 离线环境下安装增加的第三方包 1. cd 目标目录 2. pip install --no-index --find-links=./ netmiko(包名) #### 服务器启动命令 1, daphne TestFramework.asgi:application -b IP -p PORT ## Websocket 技术 1, 创建一个新的app: django-admin startapp comments 2, 将app 添加到settings里 3, Project下配置协议路由: 3.1 import comment.routing 3.2 Web请求由channels进行处理 "websocket": AuthMiddlewareStack( # 可选:添加认证中间件 URLRouter( ......, comment.routing.websocket_urlpatterns # WebSocket路由配置 ) ),