项目基本应该包括:配置文件(IP、域名、接口信息),测试数据:ddt,Excel管理,数据库管理(测试平台管理)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| |-reports/ 报告 |---------2018-1-1_12_1_1.html |---------2018-1-1_12_1_1.html |-resources/ 资源 |---------images/ |---------videos/ |---------lrc/ |-json/ json文件 |---------a.json |---------b.json |-api/ api文件 |---------login.py |-shcema/ schema校验 |---------login_schema.py |---------buy_schema.py |-common/ 公用模块 |---------session.py |-test/ 测试用例 |---------module1.py |---------module2.py |-creator/ 创造器,创造API所需数据 |---------module1_creator.py |---------module2_creator.py |-main.py 入口
|
常用库
requests = “”
jsonschema = “”
selenium = “”
mitmproxy = “”
pytest = ““
allure-pytest = “”
pyyaml = “”
pymysql = “”
faker = “”
arrow = ““ mysql-
connector = “”
sqlalchemy = “”