|
我不确定你的问题是不是web_reg_save_param("count2",
"LB=&dmui-cont=",
"RB=\" method=",
"Ord=ALL",
LAST); 放错位置了,试着把这段放在前面,我用mercury tour 做了一个关联。
web_reg_save_param( "WCSParam_Diff1", "LB=userSession value=", "RB=>", "Ord=1", "Search=Body", "RelFrameId=1.2.1", LAST );
web_reg_save_param( "WCSParam_Diff2", "LB=userSession value=", "RB=>", "Ord=1", "Search=Body", "RelFrameId=1.2.1", LAST );
web_url("MercuryWebTours",
"URL=http://localhost/MercuryWebTours",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_data("login.pl",
"Action=http://localhost/MercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff1}", ENDITEM,
"Name=username", "Value=", ENDITEM,
"Name=password", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
web_submit_data("login.pl_2",
"Action=http://localhost/MercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff1}", ENDITEM,
"Name=username", "Value=", ENDITEM,
"Name=password", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=signup.x", "Value=52", ENDITEM,
"Name=signup.y", "Value=14", ENDITEM,
LAST);
lr_think_time(11);
web_submit_form("login.pl_3",
"Snapshot=t4.inf",
ITEMDATA,
"Name=username", "Value=V6", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=passwordConfirm", "Value=123456", ENDITEM,
"Name=firstName", "Value=", ENDITEM,
"Name=lastName", "Value=", ENDITEM,
"Name=address1", "Value=", ENDITEM,
"Name=address2", "Value=", ENDITEM,
"Name=register.x", "Value=55", ENDITEM,
"Name=register.y", "Value=12", ENDITEM,
LAST);
web_image("continue.gif",
"Src=/MercuryWebTours/images/continue.gif",
"Snapshot=t5.inf",
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t6.inf",
LAST);
web_submit_data("login.pl_4",
"Action=http://localhost/MercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/nav.pl?in=home",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff2}", ENDITEM,
"Name=username", "Value=", ENDITEM,
"Name=password", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=signup.x", "Value=51", ENDITEM,
"Name=signup.y", "Value=14", ENDITEM,
LAST);
web_submit_data("login.pl_5",
"Action=http://localhost/MercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/nav.pl?in=home",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff2}", ENDITEM,
"Name=username", "Value=", ENDITEM,
"Name=password", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
web_url("nav.pl",
"URL=http://localhost/MercuryWebTours/nav.pl?in=signup&username=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/login.pl",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
web_url("login.pl_6",
"URL=http://localhost/MercuryWebTours/login.pl?username=&password=&getInfo=true",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/login.pl",
"Snapshot=t10.inf",
"Mode=HTML",
LAST);
lr_think_time(8);
web_submit_form("login.pl_7",
"Snapshot=t11.inf",
ITEMDATA,
"Name=username", "Value=V7", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=passwordConfirm", "Value=123456", ENDITEM,
"Name=firstName", "Value=", ENDITEM,
"Name=lastName", "Value=", ENDITEM,
"Name=address1", "Value=", ENDITEM,
"Name=address2", "Value=", ENDITEM,
"Name=register.x", "Value=44", ENDITEM,
"Name=register.y", "Value=10", ENDITEM,
LAST);
web_url("nav.pl_2",
"URL=http://localhost/MercuryWebTours/nav.pl?page=menu&in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/welcome.pl?page=menus",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
web_url("login.pl_8",
"URL=http://localhost/MercuryWebTours/login.pl?intro=true",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/welcome.pl?page=menus",
"Snapshot=t13.inf",
"Mode=HTML",
LAST);
web_url("nav.pl_3",
"URL=http://localhost/MercuryWebTours/nav.pl?in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/welcome.pl?signOff=1",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
return 0;
你看看和你的类似不? |
|