一.框架结构: 工程目录 二.Case文件设计 三.基础包 base 3.1 封装get/post请求(runmethon.py) import requests import json class RunMethod: def post_main(self,url,data,header=None): res = None if header !=None: res = requests.post(url=url,data=data,headers=header) else: res = r
一.框架结构:工程目录 二.Case文件设计三.基础包 base 3.1 封装get/post请求(runmethon.py) import requests import json class RunMethod: def post_main(self,url,data,header=None): res = None if header !=None: res = requests.post(url=url,data=data,headers=header) else: res = requ
unittest接口自动化测试报告 展示: 代码: __author__ = "Wai Yip Tung, Findyou" __version__ = "0.8.2.1" # TODO: color stderr # TODO: simplify javascript using ,ore than 1 class in the class attribute? import datetime import sys import io import time fr