|
想实现一个需求,一个脚本跑好几接口,每个接口记录不同的请求时间,这个怎么实现,以下是我的脚本,求助大家 急
- get()
- {
- lr_start_transaction("get");
- web_reg_find("Text=Successful","SaveCount=itemsCount",LAST);
- web_url("get",
- "URL=http://XXXXXXX/mapapi/poi/search-with-keywor",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t2.inf",
- "Mode=HTML",
- LAST);
-
- if(atoi(lr_eval_string("{itemsCount}")) > 0){
- lr_output_message("±¾´ÎÇëÇó³É¹¦");
- lr_end_transaction("get", LR_PASS);
- }
- else{
- lr_error_message("±¾´ÎÇëÇóʧ°Ü");
- lr_end_transaction("get", LR_FAIL);
- return 0;
- }
- }
-
复制代码
|
|