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);