最近在做post请求的性能测试把代码贴一下

Action()
{        
        //检查点
        web_reg_find("Text=\"err_code\":\"SUCCESS\"",//检查响应报文里边的信息
                     "SaveCount= StatusCodeCount", //统计查询字段的信息,如果找到值为1,如果未找到值为0
                     LAST);
        
        lr_rendezvous("jihe");   //集合点
        
        lr_start_transaction("bdsysQuery"); //开始事务

        web_custom_request("bdsysQuery",  //事务名 
                           "URL=http://xx.29.xx.10:7003/bd00016PS",  //请 求域名
                           "Method=POST",   //请求类型为post
                           "Resource=0",
                           "RecContentType=test/xml", //返回格式
                           "Referer=",
                           "Mode=HTML",
                           "EncType=text/xml; charset=utf-8",
                           "Body=<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' "
                            "xmlns:ser='http://localhost:8080/GMIS/service'><soapenv:Header/><soapenv:Body>"
                            "<ser:bdsysQuery><ser:in0>{'method':'queryYEJI','user_card':'0010970203008','month':"
                            "'{Param1}','authcode':'ioj788dds7d887fs9s8d7f8d8s'}</ser:in0></ser:bdsysQuery>"   //Param1参数化表
                            "</soapenv:Body></soapenv:Envelope>",  // post请求的数据
                           LAST);    
        
        lr_end_transaction("bdsysQuery", LR_AUTO);    //结束服务

                return(0);
}