摘要:
url是第一列,也就是row[0],登录成功是row[3],用户登录接口那一列是row[5] 是test_ 后面的case1 ,case2 可以自己随便写 unittest.main()是只能调用当前路径下的测试类 pattern,是执行指定路径下的多个测试类 unittest.main()是只能调 阅读全文
posted @ 2023-02-20 23:55
张翼德是也
阅读(59)
评论(0)
推荐(0)
摘要:
file=open("userinfo.csv","r") 打开文件 table=csv.reader(file) 读取内容 response=requests.post(url,data=userinfo).text 获取接口返回结果 file2.write(row[0]+","+row[1]+" 阅读全文
posted @ 2023-02-20 21:24
张翼德是也
阅读(18)
评论(0)
推荐(0)
摘要:
framworktest.py # #试验1:使用unittest框架进行注册接口的测试## #导入相关的unittest类库# import unittest# import requests## #定义测试类,继承unittest框架# class testregister(unittest.T 阅读全文
posted @ 2023-02-20 19:54
张翼德是也
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号