# 自动化模板 **Repository Path**: translated-by-zhang-shu/AutomaticTemplate ## Basic Information - **Project Name**: 自动化模板 - **Description**: 接口自动化模型 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-04-25 - **Last Updated**: 2025-07-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 自动化模板 ## 介绍 接口自动化模型 ## 软件架构 软件架构说明 基于unittest编写自动化通用框架,webUI、appUI、api自动化框架,已封装好selenium、appnuim、UIauto、request,简单明了 ## 安装教程 ### 1. 安装Python环境 ``` 1) pip install yagmail 2) pip install BeautifulReport 3) pip install xlutils 4) pip install clickhouse_sqlalchemy 5) pip install pandas 6) pip install pymysql 7) pip install xlrd 8) pip install requests 9) pip install selenium==4.0.0 10) pip install Appium-Python-Client==2.0 11) pip install uiautomator2==2.16.23 12) pip install weditor==0.6.8 -i https://pypi.doubanio.com/simple ``` ### 2. 安装环境 ``` python -m uiautomator2 init ``` #### 2.1 安装weditor报错 ``` 解决1: 1.git bash 打开git的命令行窗口,执行git clone https://github.com/openatx/weditor,安装成功后关闭 2.再cmd执行pip install -e weditor,安装成功。 3.启动 执行命令:python -m weditor 解决2: 1.pip3 install -U uiautodev -i https://pypi.doubanio.com/simple 2.uiauto.dev 3.python3 -m uiautodev ``` #### 2.2 下载ChromeDriver 知道了Chrome浏览器的版本号,就可以开始下载相应版本的ChromeDriver了。请按照以下步骤进行: ChromeDriver下载页面: ```angular2html 淘宝镜像:https://registry.npmmirror.com/binary.html?path=chromedriver/ 官方镜像:https://sites.google.com/a/chromium.org/chromedriver/downloads 新版浏览器:https://googlechromelabs.github.io/chrome-for-testing/ ``` 在下载页面上,将看到一列Chrome浏览器的版本号和相应的ChromeDriver版本号。 找到与Chrome浏览器版本号相匹配的ChromeDriver版本,并点击下载链接。 请注意,ChromeDriver的下载文件是一个压缩文件,根据操作系统,选择适当的下载文件。