Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wangxiaoxi3/API_Automation
基于Pytest+request+Allure的接口自动化开源框架(第一版)
https://github.com/wangxiaoxi3/API_Automation
Last synced: 2 months ago
JSON representation
基于Pytest+request+Allure的接口自动化开源框架(第一版)
- Host: GitHub
- URL: https://github.com/wangxiaoxi3/API_Automation
- Owner: wangxiaoxi3
- Created: 2018-08-31T14:16:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T06:03:25.000Z (over 4 years ago)
- Last Synced: 2024-08-02T19:01:53.944Z (5 months ago)
- Language: Python
- Homepage:
- Size: 1.16 MB
- Stars: 362
- Watchers: 20
- Forks: 222
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-List - PyTest Allure API Framework - Python (💖 Admired Examples)
- awesome-list - PyTest Allure API Framework - Python (💖 Admired Examples)
- awesome-list - PyTest Allure API Framework - Python (💖 Admired Examples)
README
# API_Automation
基于Pytest+request+Allure的接口自动化开源框架----
#### 模块类的设计
`Request.py` 封装request方法,可以支持多协议扩展(get\post\put)`Config.py`读取配置文件,包括:不同环境的配置,email相关配置
`Log.py` 封装记录log方法,分为:debug、info、warning、error、critical
`Email.py`封装smtplib方法,运行结果发送邮件通知
`Assert.py` 封装assert方法
`Hash.py` 封装常用加密方法
`Session.py` 封装获取登录cookies方法
`run.py` 核心代码。定义并执行用例集,生成报告
----
#### 详细介绍见原文[接口自动化框架](https://www.jianshu.com/p/e31c54bf15ee)