|
我在做压力测试的时候遇到了点问题,向大家咨询一下。部分脚本如下:
lr_start_transaction("录入");
web_submit_data("bjsdtazwxbygzdwzSaveAction.dhtml",
"Action=http://192.168.1.7:7071/xy2/bjsdtazwxbygzdwz/bjsdtazwxbygzdwzSaveAction.dhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.7:7071/xy2/bjsdtazwxbygzdwz/bjsdtazwxbygzdwzAction!add.dhtml?dj.reg_bus_ent_id=D1000000000000100000000002691615&dj.credit_categ=&dj.credit_type=",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=struts.token.name", "Value=struts.token", ENDITEM,
"Name=struts.token", "Value=684T6JN76018WE3AXSADV43HO6L2IFIL", ENDITEM,
"Name=dj.chr_id", "Value=6dec3ca74bb74b0f937d595fbec0b180", ENDITEM,
"Name=dj.actionType", "Value=add", ENDITEM,
"Name=dj.reg_bus_ent_id", "Value=D1000000000000100000000002691615", ENDITEM,
"Name=dj.credit_categ", "Value=", ENDITEM,
"Name=dj.credit_type", "Value=", ENDITEM,
。。。。。。
是部分代码
脚本里面出现struts.token问题,为了防止重复提交,而到脚本里面做压力的时候,就会报错,因为是随机的取值,所以Value=684T6JN76018WE3AXSADV43HO6L2IFIL,总是在变,怎么避免这个问题呢?是改脚本呢?还是只能开发人员改下程序呢?
麻烦了,谢谢! |
|