# Api_automation **Repository Path**: jia20220830/Api_automation ## Basic Information - **Project Name**: Api_automation - **Description**: 接口自动化 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-05 - **Last Updated**: 2023-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: pytest, Python, API, 关键字驱动 ## README ## 项目介绍: 通过yaml文件编写测试用例,利用关键字驱动对homelinking接口进行自动化测试,并输出测试报告 --- ## 技术特点: 1.关键字驱动 2.使用yaml文件编辑测试用例 3.allure自动生成测试报告,使用jenkins执行时jenkins自动生成测试报告 --- ## 页面展示: ![image](https://user-images.githubusercontent.com/83941545/202336674-4918d50c-21cf-4a9b-8aaf-e26ac24eed3e.png) ![image](https://user-images.githubusercontent.com/83941545/202335212-6a14b8a2-7546-4648-a90f-509ed603f9cf.png) --- ## 项目环境: System.version = win10 author = jia python = 3.9 pyTest = 6.2.4 allure = 2.9.43 flask = 2.0.1 html = 3.1.1 --- ## 环境安装: pip install -r requirement_plugin.txt 安装所有使用插件 --- ## 插件介绍 pytest------------------库 pytest-html -----------生成HTML报告 pytest-xdist ----------并行执行 pytest-ordering------设定执行顺序 pytest-rerunfailures--失败重跑 allure-pytest ----------测试报告 --- ## 目录介绍 - Case------------测试用例 - Common------自定义方法 - Config----------配置文件 - Data------------yaml文件 - Log-------------日志 - Report---------测试报告 - Run-------------执行入口 - conftest-------前后置方法 - extract--------yaml文件导出的数据 - pytest.ini------pytest配置文件 - pytest.note---pytest使用说明 - README-----项目说明 - requirements--依赖第三方库 - shortcut_key---pycharm快捷键