# PanUITest **Repository Path**: bitezz/pan-uitest ## Basic Information - **Project Name**: PanUITest - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-16 - **Last Updated**: 2024-08-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # web UI自动化测试 #### 介绍 web自动化测试框架 pytest+Selenium4+allure+yaml+logging #### 软件架构 采用PO模型设计思路+pytest测试框架allure展示测试报告 ```log ├─base #base基本操作类,selenium 二次封装 ├─data #放测试数据 ├─file #放文件和截图 ├─config #配置文件,mysql ├─log #日志 ├─page #po模式的page类 ├─report #allure报告 ├─test_cases #测试用例 ├─utils #公共方法 └─run.py #运行用例入口 ``` #### 软件架构 | 软件名称 | 软件版本 | 备注说明 | | :------------------- | -------- | ---------------------------------- | | Python | 3.8.10 | python环境 | | Selenium | 4.10.0 | selenium环境 | | PyYAML | 6.0 | 读取yaml配置文件 | | pytest | 7.4.0 | 执行python测试用例 | | pymysql | 1.1.0 | 执行python测试用例 | | pytest-ordering | 0.6 | 设置测试用例的执行顺序 | | allure-pytest | 2.13.2 | 生成html测试报告 | #### 安装教程 1. 安装依赖环境 pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com (部分包可能是mac才能安装,如果安装失败请忽略) 2. 安装allrue报告allure-2.xx.xx.zip 3. 安装java环境,allure需要java环境 4. 修改项目中的一些基础配置: conftest.py, data/data.yaml 5. 启动项目运行run.py