获取后台广告图片推送的简单接口性能测试脚本
1 Action() 2 { 3 lr_start_transaction("广告轮询开始"); 4 5 web_reg_find("Search=Body", 6 "SaveCount=result", 7 "Text={\"code\":200", 8 LAST); 9 10 web_submit_data("web_submit_data", 11 "Action=http://rhtop.com/extrade-web/product/advertis/picture", 12 "Method=POST", 13 "EncodeAtSign=YES", 14 "TargetFrame=", 15 "Referer=", 16 ITEMDATA, 17 LAST); 18 19 20 21 22 lr_message("result=%s",lr_eval_string("{result}")); 23 24 if (atoi(lr_eval_string("{result}")) > 0 ) 25 { 26 lr_output_message("Successful"); 27 lr_end_transaction("广告轮询开始", LR_PASS); 28 } 29 else 30 { 31 lr_output_message("Failed"); 32 lr_end_transaction("广告轮询开始", LR_FAIL); 33 } 34 35 return 0; 36 }
posted on 2017-03-29 16:46 ListenWind 阅读(334) 评论(0) 编辑 收藏 举报