|
录制的脚本如下,为什么感觉每个页面都被录制了两遍,回放提示 ”You've reached this page incorrectly (probably a bad user session value). Please use this link.“- Action()
- {
- web_url("WebTours",
- "URL=http://127.0.0.1:1080/WebTours/",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t1.inf",
- "Mode=HTML",
- LAST);
- web_url("WebTours_2",
- "URL=http://127.0.0.1:1080/WebTours/",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t2.inf",
- "Mode=HTML",
- EXTRARES,
- "Url=../favicon.ico", "Referer=", ENDITEM,
- LAST);
- web_submit_data("login.pl",
- "Action=http://127.0.0.1:1080/WebTours/login.pl",
- "Method=POST",
- "Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
- "Mode=HTML",
- ITEMDATA,
- "Name=userSession", "Value=113587.546780073fitczfQptDHfDfAffpQfzzcf", ENDITEM,
- "Name=username", "Value=user01", ENDITEM,
- "Name=password", "Value=123", ENDITEM,
- "Name=JSFormSubmit", "Value=on", ENDITEM,
- LAST);
- lr_think_time(6);
- web_submit_data("login.pl_2",
- "Action=http://127.0.0.1:1080/WebTours/login.pl",
- "Method=POST",
- "RecContentType=text/html",
- "Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
- "Snapshot=t3.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=userSession", "Value=113587.546780073fitczfQptDHfDfAffpQfzzcf", ENDITEM,
- "Name=username", "Value=user01", ENDITEM,
- "Name=password", "Value=123", ENDITEM,
- "Name=JSFormSubmit", "Value=on", ENDITEM,
- "Name=login.x", "Value=56", ENDITEM,
- "Name=login.y", "Value=11", ENDITEM,
- LAST);
- web_submit_data("login.pl_3",
- "Action=http://127.0.0.1:1080/WebTours/login.pl",
- "Method=POST",
- "RecContentType=text/html",
- "Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
- "Snapshot=t4.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=userSession", "Value=113587.546780073fitczfQptDHfDfAffpQfzzcf", ENDITEM,
- "Name=username", "Value=user01", ENDITEM,
- "Name=password", "Value=123", ENDITEM,
- "Name=JSFormSubmit", "Value=on", ENDITEM,
- "Name=login.x", "Value=56", ENDITEM,
- "Name=login.y", "Value=11", ENDITEM,
- LAST);
- web_image("SignOff Button",
- "Alt=SignOff Button",
- "Snapshot=t5.inf",
- LAST);
- web_add_cookie("MSO=SID&1402238265&MSO_JSFormSubmit1&on&MSO_ServerErrorsProb&50&MSO_ServerLoadProb&50; DOMAIN=127.0.0.1");
- web_add_cookie("MTUserInfo=firstName&&address2&&username&user01&hash&49&lastName&%0A&address1&&creditCard&&expDate&%0A; DOMAIN=127.0.0.1");
- web_image("SignOff Button_2",
- "Alt=SignOff Button",
- "Snapshot=t6.inf",
- LAST);
- return 0;
- }
复制代码 |
|