![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
软件测试
看星星喝水了
这个作者很懒,什么都没留下…
展开
-
interface-2
postman 请求发布话题断言 var jsonData = pm.response.json(); pm.test("success value is true", function () { pm.expect(jsonData["success"]).to.eql(true); }); pm.test("topic id value is not null",fun...原创 2020-03-01 18:19:27 · 382 阅读 · 0 评论 -
python-创建当天目录
参考:https://docs.python.org/zh-cn/3.7/library/index.html from datetime import date,time,datetime print( datetime.now()) print( date.today()) # today 类方法,返回当前日期 now = date.today() # 实例date类传入 年,月,日 toda...原创 2020-02-25 15:40:42 · 150 阅读 · 0 评论 -
interface-1
接口 传输数据-----------------数据格式 Restful API ---------------- Json 如何测试API? 1.使用专业的测试工具 postman 2.自己开发代码《侧重》 python + requests + pytest Postman 作业:http://39.107.96.138:3000/ Python coding requests:https:/...原创 2020-02-24 10:59:07 · 306 阅读 · 0 评论 -
Pytest-2
Pytest运行时设置 setup teardown 路径:test\test_.py """ 前置条件 ---- ---- test cases ---- 后置操作 """ def setup(): """ pytest 内置的一个功能, 每一个函数(方法)运行之前 都会自动先运行 setup中定义的操作。 :return: """ print('--...原创 2020-02-21 11:32:41 · 165 阅读 · 0 评论 -
文件读写
csv文件读写操作 官网文档: https://docs.python.org/zh-cn/3.7/library/csv.html open file 读写文件操作: https://docs.python.org/zh-cn/3.7/tutorial/inputoutput.html#reading-and-writing-files data.csv username,age xiaomin...原创 2020-02-20 20:39:09 · 387 阅读 · 0 评论 -
pytest-1
pytest 安装 pip install pytest pip uninstall pytest where pytest pytest --help 创建新项目 使用虚拟环境:确保每个项目都有单独的一份运行环境 <备注>venv目录不要动,venv目录存放的是项目使用的库文件。 本地环境:所有项目共享一份环境 安装环境 File – Setting 搜索 pytes...原创 2020-02-19 12:34:09 · 114 阅读 · 0 评论