|
本帖最后由 ls1218 于 2011-1-17 12:13 编辑
Error: Parameter 'NewParam': No more unique values for this parameter in table 'no10000.txt' [unique range is 1593-1791]. The Vuser is aborted according to "When Out Of Values" policy.
是这样:
我设置了10000个号码(no10000.txt)用于登录web系统,然后用登录的当前号码去查询交易页面(功能需要这样),结果运行场景时,前面一直很顺畅但到快完的时候就显示这错误,号码不够?其实应该我只用了50个号码而已。。
请帮帮忙,谢谢!
设置如下:
脚本如下:
vuser_init()
{
//输出参数
lr_output_message("Init参数:%s",lr_eval_string("{NewParam}"));
lr_vuser_status_message("Init参数: %s",lr_eval_string("{NewParam}"));
//参数转变量再转为参数callerno
lr_save_string(lr_eval_string("{NewParam}"), "callerno" );
//输出参数
lr_vuser_status_message("Init参数callerno: %s",lr_eval_string("{callerno}"));
lr_output_message("Init参数callerno:%s",lr_eval_string("{callerno}"));
web_url("192.1.2.100:8013",
"URL=http://192.1.2.100:8013/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"Url=/Content/images/logoL.gif", ENDITEM,
"Url=/Home/RandomImg?", ENDITEM,
LAST);
web_submit_form("login.aspx",
"Snapshot=t10.inf",
ITEMDATA,
"Name=UserName", "Value={callerno}", ENDITEM,
"Name=Password", "Value=123", ENDITEM,
"Name=RandomKey", "Value=1234", ENDITEM,
"Name=login", "Value=鐧\xBB 褰\x95", ENDITEM,
LAST);
web_submit_form("LogOnConfirm",
"Snapshot=t11.inf",
ITEMDATA,
"Name=UserName", "Value={callerno}", ENDITEM,
"Name=Password", "Value=123", ENDITEM,
"Name=ConfirmKey", "Value=123456", ENDITEM,
"Name=login", "Value=杩\x9B 鍏\xA5", ENDITEM,
EXTRARES,
"Url=http://192.1.2.100/CSS/Classic/Content/images/bg_1.png", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/logo.gif", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/tabpanel.gif", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/icon.png", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=../Content/images/icon.png", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/tab/tab2.gif", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/tab/tab1.gif", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/tab/close.gif", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/tab/tab3.gif", "Referer=http://192.1.2.100:8013/Home/MainFrame", ENDITEM,
LAST);
web_url("Index",
"URL=http://192.1.2.100:8013/Home/Index",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.1.2.100:8013/Home/MainFrame",
"Snapshot=t12.inf",
"Mode=HTML",
EXTRARES,
"Url=http://192.1.2.100/CSS/Classic/Content/images/JQuery/ui-icons_0078ae_256x240.png", ENDITEM,
"Url=http://192.1.2.100/CSS/Classic/Content/images/JQuery/ui-icons_f7a50d_256x240.png", ENDITEM,
LAST);
return 0;
}
Action()
{
lr_think_time(1);
web_url("CZJFMX",
"URL=http://localhost:8013/UserAccount/QueryData/CZJFMX",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8013/Home/MainFrame",
"Snapshot=t15.inf",
"Mode=HTML",
EXTRARES,
"Url=http://localhost/CSS/Classic/Content/images/JQuery/ui-bg_inset-hard_100_fcfdfd_1x100.png", ENDITEM,
"Url=http://localhost/CSS/Classic/Content/images/JQuery/ui-icons_d8e7f3_256x240.png", ENDITEM,
"Url=http://localhost/CSS/Classic/Content/images/JQuery/ui-bg_glass_45_0078ae_1x400.png", ENDITEM,
"Url=http://localhost/CSS/Classic/Content/images/JQuery/ui-bg_gloss-wave_75_2191c0_500x100.png", ENDITEM,
"Url=http://localhost/CSS/Classic/Content/images/JQuery/ui-bg_gloss-wave_50_6eac2c_500x100.png", ENDITEM,
LAST);
lr_think_time(1);
web_submit_form("CZJFMX_2",
"Snapshot=t16.inf",
ITEMDATA,
"Name=queryType", "Value=1", ENDITEM,
"Name=caller", "Value={callerno}", ENDITEM,
"Name=callee", "Value=", ENDITEM,
LAST);
lr_think_time(1);
web_submit_form("CZJFMX_3",
"Snapshot=t18.inf",
ITEMDATA,
"Name=queryType", "Value=2", ENDITEM,
"Name=caller", "Value={callerno}", ENDITEM,
"Name=callee", "Value=", ENDITEM,
LAST);
lr_vuser_status_message("action参数callerno: %s",lr_eval_string("{callerno}"));
lr_output_message("action参数callerno:%s",lr_eval_string("{callerno}"));
return 0;
} |
|