下面是录制的一个查询功能的脚本
对应的tree view 模式下,是看不到快照和response的,如下图
这种情况下,如何添加检查点呢?
利用抓包软件fidder,抓取请求,查看响应结果response,添加检查点
具体代码如下:
web_url("2_2",
"URL=http://10.16.56.XXX:XXX/arcgis/rest/services/Agriculture_SCD/SCD/MapServer/2?f=json",
"Resource=0",
"Referer=http://10.16.56.XXX/ImageSky.GISCase.SZ.SCD/dist/",
"Mode=HTTP",
LAST);
web_reg_find("Fail=NotFound",
"Search=Body",
"SaveCount=search_count",
"Text=\"DKBH\":\"3205060050010003\"",
LAST);
web_url("query_76",
"URL=http://10.16.56.XXX:XXX/arcgis/rest/services/Agriculture_SCD/SCD/MapServer/2/query?f=json&where=(1%3D1%20AND%201%3D1%20And%20DSMC%3D%27%E8%8B%8F%E5%B7%9E%E5%B8%82%27)%20AND%20"
"(%20DSMC%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20%20OR%20QXMC%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20XZMC%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20CUNMC%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20DKBH%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20TBLXDM%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20TBLXMC%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20ZWMC%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20QSR%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20%20OR%20WYM%20like%20%27%25%"
"E7%8E%89%E7%B1%B3%25%27%20OR%20DATA%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20OR%20BZ%20like%20%27%25%E7%8E%89%E7%B1%B3%25%27%20)&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=DSMC%2CQXMC%2CXZMC%2CCUNMC%2CDKBH%2CTBLXDM%2CTBLXMC%2CZWMC%2CQSR%2CWYM%2CZPBH%2CTBMJ%2CDATA%2CBZ",
"Resource=0",
"Referer=http://10.16.56.XXX/ImageSky.GISCase.SZ.SCD/dist/",
"Mode=HTTP",
LAST);
if(strcmp(lr_eval_string("{search_count}"),"0")==1)
//if(strcmp(lr_eval_string("{Count}"))>0)
lr_log_message("查询成功!");
else
lr_log_message("查询失败!");
运行结果如下:
如果失败,如下图