# IntegrationFramework **Repository Path**: yingmingzongyu/IntegrationFramework ## Basic Information - **Project Name**: IntegrationFramework - **Description**: Framework integration web, APP, interface automation.The separation of script and data is well realized by using key words, data driving and reflection.At the same time, the framework contains database initialization, mail configuration, automatic statistics, mail sending and other functions - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-01-28 - **Last Updated**: 2021-10-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # IntegrationFramework #### 介绍 Framework integration web, APP, interface automation.The separation of script and data is well realized by using key words, data driving and reflection.At the same time, the framework contains database initialization, mail configuration, automatic statistics, mail sending and other functions 框架集成web,APP,接口自动化。运用关键字+数据驱动+反射等关键技术,实现了脚本与数据的分离。同时,框架包含数据库初始化,邮件配置,自动化统计,发送邮件等功能 喜欢可以点个Star~ . 欢迎大家交流学习~ #### 软件架构 ![框架流程图1](https://images.gitee.com/uploads/images/2020/0503/165849_e14b928f_5007859.png "AutoFramework.png") ![ExcelResult](https://images.gitee.com/uploads/images/2020/0424/165624_154fc961_5007859.png "result.png") ![webResult](https://images.gitee.com/uploads/images/2020/0428/130654_d45189df_5007859.png "企业微信截图_15880503862181.png") ![APP](https://images.gitee.com/uploads/images/2020/0506/192504_08e5d5f3_5007859.png "app.png") ![email](https://images.gitee.com/uploads/images/2020/0506/192523_d878ae1a_5007859.png "企业微信截图_15887637453947.png") #### 依赖安装 1. pip install -U selenium,requests 2. pip install -U appium-python-client 3. pip install xlrd,xlutils 4. pip install pymysql #### 怎么使用它呢? 1. WEB自动化. 编写WEBExcel用例,调用Webkeys关键字填写到Excel中,照着模板填写就好(可根据自己喜好自定义) 定位表达式我这里就不多说了. 8大定位方式看大家喜好. 我这边默认使用Xpath,Case写好,执行RunnerMain方法, casename换成自己的Casename, 执行就可以了。 APP自动化和接口自动化如上,需要执行什么去RunnerMain中调用就可以了。 可实现持续集成 2. 注意部分文件路径需要换成自己本地路径 3. 有什么问题欢迎大家私聊我沟通交流~ #### 框架优势: 1. 集成了整个持续集成的流程 2. 易拓展性:可以很好的支持web,app,接口三大类自动化,公司自动化有任何特殊需求,都可以快速实现 3. 框架可以使用项目管理,适合多人协同开发 4. 框架包括的功能全面:配置化,数据库操作,自动化运行,自动化报告,自动化邮件,用例编写和维护 5. 用例编写和维护: 自动化用例采用excel编写,在熟悉了关键字情况下,任何没有编程经验的测试也可以编写自动化用例(功能往自动化测试转移) 用例需要维护时,因为是excel用例,编辑和维护也简单 功能测试编写自动化用例后,经有自动化测试经验者调试通过,即可稳定运行