|
7#
楼主 |
发表于 2006-7-25 12:09:02
|
只看该作者
用户注册脚本如下:(为简化阅读,脚本中一些无关的代码(主要是WEB_URL)我已删除,没有贴上来)
Action()
{
int step_N;
for(step_N=1;step_N<=3;step_N++)
{
lr_think_time(17);
web_url("Select.jsp",
"URL=http://10.1.35.8:7001/AddMember/Select.jsp?role=B",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.35.8:7001/",
"Snapshot=t46.inf",
"Mode=HTML",
EXTRARES,
"Url=../Js/share.js", "Referer=http://10.1.35.8:7001/AddMember/Select.jsp?role=B", ENDITEM,
LAST);
web_submit_data("SaveInformation",
"Action=http://10.1.35.8:7001/SaveInformation",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.1.35.8:7001/AddMember/information.jsp?mycheckbox2=B",
"Snapshot=t56.inf",
"Mode=HTML",
ITEMDATA,
"Name=user_name", "Value={user_id}", ENDITEM, //user_id为用户名参数化
"Name=user_password1", "Value=12345678", ENDITEM,
"Name=user_password2", "Value=12345678", ENDITEM,
"Name=real_name", "Value=员姓名", ENDITEM,
"Name=reg_id", "Value=1234567812345678", ENDITEM,
"Name=em_password", "Value=12345678", ENDITEM,
"Name=em_password1", "Value=12345678", ENDITEM,
"Name=em_priv_key", "Value=12345678", ENDITEM,
"Name=em_priv_key1", "Value=12345678", ENDITEM,
"Name=owner_id", "Value=3", ENDITEM,
"Name=FINANCE_CODE", "Value=12345678", ENDITEM,
"Name=FINANCE_CODE2", "Value=12345678", ENDITEM,
"Name=ORG_CODE", "Value=123456", ENDITEM,
"Name=FOUD_CODE", "Value=5678", ENDITEM,
"Name=FOUD_CODE1", "Value=4567812345", ENDITEM,
"Name=NAME", "Value={org_name}", ENDITEM, //org_name为用户机构名参数化
"Name=ORG_LEVEL", "Value=2", ENDITEM,
"Name=TRADE_TYPE", "Value=003", ENDITEM,
"Name=DEPT_TYPE", "Value=1", ENDITEM,
"Name=POSTCODE", "Value=123456", ENDITEM,
"Name=UNIT_QUALITY", "Value=1", ENDITEM,
"Name=LINKMAN", "Value=单位联系人", ENDITEM,
"Name=CONTACT_TEL", "Value=12345678", ENDITEM,
"Name=EMAIL", "Value=LELE@SOHU.COM", ENDITEM,
"Name=MANAGE_DEPART_NAME", "Value=财政局", ENDITEM,
"Name=MANAGE_DEPART", "Value=3078", ENDITEM,
"Name=ADDR", "Value={adr_name}", ENDITEM, //地址参数化
"Name=REMARKS", "Value={memo_name}", ENDITEM,
"Name=b_org_type", "Value=B", ENDITEM,
"Name=submitsave", "Value= 提 交 ", ENDITEM, */
LAST);
}
return 0;
} //数设置如下:1.select next row选项选Sequential
// 2.Update value on选项选:Each occurrence
此脚本运行,参数化值却会改变.
[ 本帖最后由 lelebachelor 于 2006-7-25 12:10 编辑 ] |
|