|
LR socket接口该如何参数化
脚本内容如下:
Action()
{
//建立到服务端的连接
lrs_create_socket("socket1","TCP","RemoteHost=127.0.0.1:19000",LrsLastArg);
lr_rendezvous("查询");
lr_start_transaction("查询");
//发送报文
lrs_send("socket1", "buf0", LrsLastArg);
lr_think_time(1);
//接收报文
lrs_receive("socket1", "buf1", LrsLastArg);
//关闭连接
lrs_close_socket("socket1");
lr_end_transaction("查询", LR_AUTO);
return 0;
}
;WSRData 2 1
send buf0 111
"0110 2001 01 5720020090710161306000016 00 1 134.96.41.13 9021 QUERY CALLER_INFO: CALLER_NBR=15305711040;"
recv buf1 209
"0209 5720020090710161306000016 ACK: QUERY CALLER_INFO: RETN=0"," DESC=查询成功"," CALLER_NAME=杭州879"," AREA_CODE=杭州市"," PART_TYPE=移动电话"," BILL_TYPE=预付费","BILL_NBR=2711028619340","RELATE_PHONE=null","ADD_INFO=null;"
-1 |
|