Skip to content

yanchunhuo/APIAutomationTest_excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
Apr 24, 2018
Sep 18, 2018
Apr 24, 2018
Apr 24, 2018
May 21, 2018
Apr 24, 2018
Apr 24, 2018
Apr 24, 2018

Repository files navigation

基于excel的接口自动化测试:

一、安装依赖库

  • pip install -r requirements.txt

二、使用方法

  • python run.py > myreport.html

三、软件

  • unittest 单元测试
  • HTMLTestRunner 将unittest结果生成html
  • requests http请求库
  • xlrd 读excel
  • xlwt 写excel

四、编码规范

  • Python使用2.7版本
  • 代码编写全部统一在Linux环境下进行
  • 文件编码统一使用"-*- coding:utf-8 -*-"

五、打赏

avatar