51Testing软件测试论坛
标题:
注册回放脚本报错
[打印本页]
作者:
琉璃苣_欢
时间:
2017-2-15 14:56
标题:
注册回放脚本报错
回放报错信息:
Action.c(32): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.1.0.47:8080/rest/supplierInfo/register;JSESSIONID={JSESSIONID3}" [MsgId: MERR-26612]
Action.c(32): web_submit_data("register;JSESSIONID=ebf5894c-bb4f-4234-ae99-e38419cc15da") highest severity level was "ERROR", 973 body bytes, 281 header bytes [MsgId: MMSG-26388]
脚本:
Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 5
// {JSESSIONID3} = "ebf5894c-bb4f-4234-ae99-e38419cc15da"
// */
/* web_reg_save_param("JSESSIONID3",
"LB/IC=JSESSIONID=",
"RB/IC=\"",
"Ord=1",
"Search=body",
"RelFrameId=1",
LAST);
*/
web_url("toRegister",
"URL=http://10.1.0.47:8080/rest/supplierInfo/toRegister",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
LAST);
lr_start_transaction("Submit");
web_submit_data("register;JSESSIONID=ebf5894c-bb4f-4234-ae99-e38419cc15da",
"Action=http://10.1.0.47:8080/rest/supplierInfo/register;JSESSIONID={JSESSIONID3}",
"Method=POST",
"RecContentType=application/json",
"Referer=http://10.1.0.47:8080/rest/supplierInfo/toRegister",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=validateInnerSupplierUrl", "Value=/rest/common/isNotExistPurchase;JSESSIONID={JSESSIONID3}", ENDITEM,
"Name=country", "Value=100", ENDITEM,
"Name=accountName", "Value={account_Name}", ENDITEM,
"Name=name", "Value=meng00001", ENDITEM,
"Name=accountMobile", "Value=13611040845", ENDITEM,
"Name=validateCode", "Value=", ENDITEM,
"Name=accountSmsCode", "Value=", ENDITEM,
"Name=accountEmail", "Value=", ENDITEM,
"Name=accountPassword", "Value=123456abc", ENDITEM,
"Name=accountPasswordConfirm", "Value=123456abc", ENDITEM,
"Name=supplierName", "Value=beijingtianyuandikegufenyouxiangongsi", ENDITEM,
"Name=supplierNameEn", "Value=", ENDITEM,
"Name=certificateType", "Value=1", ENDITEM,
"Name=creditNoType", "Value=652458795632589667", ENDITEM,
"Name=creditNoUrl", "Value=qualification/uploadtemp/20170214/63e9b2c9-69d0-440a-a888-5174d6aef44e.jpg", ENDITEM,
"Name=businessLicenseEffectDate", "Value=2017-02-14", ENDITEM,
"Name=businessLicenseEffectEndDate", "Value=2017-03-11", ENDITEM,
"Name=corporation", "Value=meng00001", ENDITEM,
"Name=capital", "Value=1000", ENDITEM,
"Name=currency", "Value=1", ENDITEM,
"Name=businessScope", "Value=Global", ENDITEM,
"Name=createDate", "Value=2017-02-14", ENDITEM,
"Name=industry", "Value=11", ENDITEM,
"Name=intro", "Value=dsfsfsdffffffffffffffffffffffffffffffffffffffafsaffffffffffffffffffffffffff", ENDITEM,
"Name=province", "Value=110000", ENDITEM,
"Name=city", "Value=110100", ENDITEM,
"Name=county", "Value=110108", ENDITEM,
"Name=detailAddress", "Value=beisihuanxilu", ENDITEM,
"Name=contactName", "Value=meng00001", ENDITEM,
"Name=contactMobile", "Value=13611040845", ENDITEM,
"Name=contactTelphone", "Value=", ENDITEM,
"Name=contactEmail", "Value=", ENDITEM,
"Name=contactAddress", "Value=", ENDITEM,
"Name=contactPostcode", "Value=", ENDITEM,
LAST);
lr_end_transaction("Submit",LR_AUTO);
return 0;
}
作者:
琉璃苣_欢
时间:
2017-2-15 14:58
上面的问题是
注册脚本
,注册业务中有短信验证码,在录制脚本之前,开发已经注掉验证码代码
作者:
jingzizx
时间:
2017-2-16 08:28
关联取值对不?
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2