随笔分类 -  接口自动化

摘要:接口及接口测试 前端和后端 不管是web端还是移动端,我们看到的就是前端,除了展示页面,还做一些简单的校验、逻辑控制; 而像下单购买、扣减库存,是由后端实现的,前端和后端的交互,就是通过接口实现的。 接口 接口一般来说有两种,一种是程序内部的接口,一种是系统对外的接口。 系统对外的接口:比如你要从别 阅读全文
posted @ 2021-04-08 11:38 牛小胖666 阅读(105) 评论(0) 推荐(0)
摘要:方法1:直接拖动 方法2:在Tests中设置,请求后的设置。 postman.setNextRequest('Request 3'); 阅读全文
posted @ 2021-04-06 17:31 牛小胖666 阅读(57) 评论(0) 推荐(0)
摘要:data.json设置如下 [{ "username":"jack", "passwd":"6666" },{ "username":"Bob", "passwd":"5555" },{ "username":"Marry", "passwd":"8888" }] 演示如下: 新建一个Collect 阅读全文
posted @ 2021-04-06 08:01 牛小胖666 阅读(49) 评论(0) 推荐(0)
摘要://定义一个变量 pm.variables.set("user","51zxw"); pm.test("Status code is 200", function () { pm.response.to.have.status(200); }); username=pm.variables.get( 阅读全文
posted @ 2021-04-02 08:00 牛小胖666 阅读(33) 评论(0) 推荐(0)
摘要:做数据驱动: 阅读全文
posted @ 2021-04-02 07:20 牛小胖666 阅读(65) 评论(0) 推荐(0)
摘要:get模式下: 阅读全文
posted @ 2021-04-01 17:10 牛小胖666 阅读(42) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-01 16:56 牛小胖666 阅读(45) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-01 16:34 牛小胖666 阅读(50) 评论(0) 推荐(0)
摘要:如果有任意项填写错误,则提示错误信息 阅读全文
posted @ 2021-04-01 16:27 牛小胖666 阅读(104) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-01 07:41 牛小胖666 阅读(231) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-01 07:31 牛小胖666 阅读(57) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-31 21:21 牛小胖666 阅读(16) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-31 21:09 牛小胖666 阅读(55) 评论(0) 推荐(0)
摘要:import json data={'id':1,'name':'51zxw','password':'66666'} print(type(data)) json_str=json.dumps(data) print(type(json_str)) print(json_str) import j 阅读全文
posted @ 2021-03-31 20:56 牛小胖666 阅读(52) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-31 20:32 牛小胖666 阅读(37) 评论(0) 推荐(0)
摘要:参考资料: https://baike.baidu.com/item/http/243074?fr=aladdin#2 https://www.cnblogs.com/duanxz/p/5127561.html 阅读全文
posted @ 2021-03-31 20:24 牛小胖666 阅读(89) 评论(0) 推荐(0)
摘要:参考资料: https://baike.baidu.com/item/%E6%8E%A5%E5%8F%A3/2886384?fr=aladdin https://blog.csdn.net/lovesoo/article/details/78558303?locationNum=9&fps=1 ht 阅读全文
posted @ 2021-03-31 19:32 牛小胖666 阅读(63) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-31 19:17 牛小胖666 阅读(133) 评论(0) 推荐(0)