a simple Example for api autotest
python3.6 + requests + unittest + BeautifulReport + pymsql + parameterized
项目启动依赖,由于导出环境配置前用的是全局配置,所以会多一些与项目无关的依赖包
pip install -r requirements.txt
依赖包单独安装的话都有以下这些:
pip install pymysql
pip install requests
pip install parameterized
生成测试报告还需要依赖第三方BeautifulReport
BeautifulReport的下载与使用,请参考https://github.com/TesterlifeRaymond/BeautifulReport
在上面的链接将源码拉下来,解压后修改目录名为BeautifulReport,
将整个目录放置python目录的/lib/site-packages/ 目录下 就可以使用了
项目目录下在终端中运行下面命令
python run_suite.py
生成的测试报告保存在report文件夹中
