TA的每日心情 | 开心 2015-5-3 23:41 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]测试小兵
|
lr_start_transaction("mylogin");
web_reg_save_param("mlogin",
"LB=resultcode",
"RB=resultinfo",
"SaveOffset=4",
"SaveLen=3",
"NotFound=ERROR",
"Search=All",
LAST);
web_custom_request("Mylogin",
"URL=http://192.168.1.123:8086/user/userlogin",
"Method=POST",
"TargetFrame=",
"Resource=0",
"Referer=",
"Mode=HTTP",
"EncType=application/json",
"Body={\"userName\" : \"7571@qq.com\","
"\"passWord\" : \"111111\","
"\"width\" : \"50\","
"\"height\" : \"50\"}",
LAST);
if(strcmp(lr_eval_string("{mlogin}"),"200")==0)
{
lr_end_transaction("mylogin",LR_PASS);
return 0;
}
else
{
lr_end_transaction("mylogin", LR_FAIL);
return -1;
}
return 0; |
|