1)loadrunner:Error – memory violation : Exception ACCESS_VIOLATION received的解决办法
报错原因:因为获取到的数据是单一的,使用lr_output_message()函数查看其值确定该问题
web_reg_save_param(“RoleID”,
“LB=<option value=”",
“RB=”>",
"Ord=All",//这样获取的值是一个数组
“NotFound=ERROR”,
LAST);
web_url(“BaseUserInfo”,
“URL=http://Back/BaseUserInfo?cmd=add”,
“TargetFrame=”,
“Resource=0”,
“RecContentType=text/html”,
“Referer=http:///Back/BaseUserList”,
“Snapshot=t90.inf”,
“Mode=HTML”,
LAST);
lr_output_message(lr_eval_string("{RoleID}"));
lr_output_message("value=%s", lr_paramarr_random("RoleID"));//查看输出值是不是null
lr_save_string(lr_paramarr_random("RoleID"), "