# web-demotest **Repository Path**: carrot_rudy/web-demotest ## Basic Information - **Project Name**: web-demotest - **Description**: pytest+selenium+allure UI+POM自动化测试框架 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 66 - **Created**: 2024-09-27 - **Last Updated**: 2024-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # web-UI 自动化测试示例 --- ## 框架设计 - pytest - selenium - POM页面对象模型(Page Object Model) --- ## 目录结构 common ——公共类 Page ——基类 PageElements ——页面元素类 PageObject ——页面对象类 TestCase ——测试用例 conftest.py ——pytest胶水文件 pytest.ini ——pytest配置文件 --- ## 运行 ### 安装依赖 ```shell pip install -r requirements.txt ``` ### 执行主文件 * 在项目根目录执行`run_case.py`文件即可运行项目 # allure参数说明 - pytest --alluredir `result-path` - --clean-alluredir 清除历史生成记录 - allure generate `result-path` - -c 生成报告前删除上一次生成的报告 - -o 指定生成的报告目录 - allure open `report-path`