postman小结

1.get和post请求,get有限制2k,post没有限制post安全

在选择的时候别把get post选错然后,run

2.data 选成txt文件  utf-8 

ip

ip,result
12.12.12.12,美国
111.11.2.3,河北
123.123.123.123,北京

data file type txt/csv

3.环境变量 添加环境变量 user_id 

 4.txt -》另存为-》编码改为utf-8

5.http://ip.taobao.com/service/getIpInfo.php?ip={{ip}}

pm.test("Body matches string", function () {
pm.expect(pm.response.text()).to.include(data.result);
});

console.log(data.result);

posted @ 2019-04-24 13:35  凌易说-lingyisay  阅读(255)  评论(0编辑  收藏  举报