随笔分类 -  接口自动化

摘要: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)
摘要:http://localhost:8080 密码 123456 执行SQL脚本后,在左侧右键刷新,左侧出现以下表后,就表示数据库部署成功 1.打开 SQLyog - 64 bit 2. D:\apache-tomcat-8.0.38\bin 双击执行startup.bat 文件 123456 访问地 阅读全文
posted @ 2022-11-02 17:33 张翼德是也 阅读(22) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-31 16:49 张翼德是也 阅读(20) 评论(0) 推荐(0)