|
我新录制的注册页面的脚本,做了关联,检查点,参数化,回放显示成功,但是跑场景的时候数据库中实际没有数据进去,有哪位大神可以帮忙看一下的,刚新手上路~~~~
Action()
{
web_url("register.html",
"URL=http://192.168.1.90:8100/emall/public/register.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_url("ValidateCode",
"URL=http://192.168.1.90:8100/site/Account/ValidateCode",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t21.inf",
LAST);
web_concurrent_end(NULL);
web_custom_request("AreaList",
"URL=http://192.168.1.90:8100/site/Area/AreaList",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t22.inf",
"Mode=HTTP",
"EncType=",
LAST);
lr_start_transaction("register");
lr_think_time(21);
web_submit_data("AreaList_2",
"Action=http://192.168.1.90:8100/site/Area/AreaList",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t23.inf",
"Mode=HTTP",
ITEMDATA,
"Name=parentId", "Value=110000", ENDITEM,
LAST);
web_submit_data("AreaList_3",
"Action=http://192.168.1.90:8100/site/Area/AreaList",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t24.inf",
"Mode=HTTP",
ITEMDATA,
"Name=parentId", "Value=110100", ENDITEM,
LAST);
web_submit_data("AreaList_4",
"Action=http://192.168.1.90:8100/site/Area/AreaList",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t25.inf",
"Mode=HTTP",
ITEMDATA,
"Name=parentId", "Value=110101001", ENDITEM,
LAST);
lr_think_time(8);
web_url("CheckLoginName",
"URL=http://192.168.1.90:8100/site/Account/CheckLoginName?LoginName={name}&_=1468377426994",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t26.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("CheckMobileForReg",
"URL=http://192.168.1.90:8100/site/Account/CheckMobileForReg?cellPhone={phone}&_=1468377426995",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t27.inf",
LAST);
web_url("CheckMobileForReg_2",
"URL=http://192.168.1.90:8100/site/Account/CheckMobileForReg?cellPhone={phone}&_=1468377426996",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t28.inf",
LAST);
web_url("ValidateCode_2",
"URL=http://192.168.1.90:8100/site/Account/ValidateCode?shuiji=0.18276340869018254",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t29.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(13);
web_reg_save_param("errorinfo",
"LB={",
"RB=,\"Proposal\"",
LAST);
web_reg_save_param("check",
"LB=\"Code\":",
"RB=,",
LAST);
web_submit_data("GenSmsCode",
"Action=http://192.168.1.90:8100/site/Account/GenSmsCode",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t30.inf",
"Mode=HTTP",
ITEMDATA,
"Name=cellPhone", "Value={phone}", ENDITEM,
"Name=ImageCheckCode", "Value=aaaa", ENDITEM,
LAST);
web_submit_data("RegisterEnterprise",
"Action=http://192.168.1.90:8100/site/Account/RegisterEnterprise",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/register.html",
"Snapshot=t31.inf",
"Mode=HTTP",
ITEMDATA,
"Name=Enterprise", "Value={name}", ENDITEM,
"Name=Province", "Value=110000", ENDITEM,
"Name=City", "Value=110100", ENDITEM,
"Name=County", "Value=110101", ENDITEM,
"Name=AreaCode", "Value=110101001", ENDITEM,
"Name=LoginName", "Value={name}", ENDITEM,
"Name=Password", "Value=a123123", ENDITEM,
"Name=ConfirmPassword", "Value=a123123", ENDITEM,
"Name=SmsCode", "Value=123123", ENDITEM,
"Name=CellPhone", "Value={phone}", ENDITEM,
"Name=CompanyProperty", "Value=1", ENDITEM,
"Name=ImageCheckCode", "Value=aaaa", ENDITEM,
"Name=InvitationCode", "Value=", ENDITEM,
LAST);
web_reg_find("Fail=NotFound",
"SaveCount=count",
"Text=您已完成注册!",
LAST);
web_url("regSuccess.html",
"URL=http://192.168.1.90:8100/emall/public/regSuccess.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t32.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("icon.png",
"URL=http://192.168.1.90:8100/emall/images/icon.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://192.168.1.90:8100/emall/public/regSuccess.html",
"Snapshot=t33.inf",
LAST);
web_url("GetUserBasicInfo_2",
"URL=http://192.168.1.90:8100/site/Account/GetUserBasicInfo?_=1468377478812",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/regSuccess.html",
"Snapshot=t34.inf",
LAST);
web_url("List_2",
"URL=http://192.168.1.90:8100/site/Links/List?_=1468377478813",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.1.90:8100/emall/public/regSuccess.html",
"Snapshot=t35.inf",
LAST);
web_concurrent_end(NULL);
if(atoi(lr_eval_string("{check}"))==0)
lr_end_transaction("register", LR_PASS);
else
{
lr_end_transaction("register", LR_FAIL);
lr_error_message(lr_eval_string("{errorinfo}"));
}
return 0;
} |
|