|
- Action()
- {
- web_url("WebTours",
- "URL=http://localhost:1080/WebTours/",
- "TargetFrame=",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t1.inf",
- "Mode=HTML",
- LAST);
- lr_think_time(11);
- web_submit_data("login.pl",
- "Action=http://localhost:1080/WebTours/login.pl",
- "Method=POST",
- "TargetFrame=",
- "RecContentType=text/html",
- "Referer=http://localhost:1080/WebTours/nav.pl?in=home",
- "Snapshot=t2.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=userSession", "Value=118637.251113811zVActADpzAtVzzzHDzzVtptcVzcf", ENDITEM,
- "Name=username", "Value=jojo", ENDITEM,
- "Name=password", "Value=bean", ENDITEM,
- "Name=JSFormSubmit", "Value=on", ENDITEM,
- "Name=login.x", "Value=83", ENDITEM,
- "Name=login.y", "Value=0", ENDITEM,
- LAST);
- web_submit_data("login.pl_2",
- "Action=http://localhost:1080/WebTours/login.pl",
- "Method=POST",
- "TargetFrame=",
- "RecContentType=text/html",
- "Referer=http://localhost:1080/WebTours/nav.pl?in=home",
- "Snapshot=t3.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=userSession", "Value=118637.251113811zVActADpzAtVzzzHDzzVtptcVzcf", ENDITEM,
- "Name=username", "Value=jojo", ENDITEM,
- "Name=password", "Value=bean", ENDITEM,
- "Name=JSFormSubmit", "Value=on", ENDITEM,
- LAST);
- web_url("SignOff Button",
- "URL=http://localhost:1080/WebTours/welcome.pl?signOff=1",
- "TargetFrame=body",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=http://localhost:1080/WebTours/nav.pl?page=menu&in=home",
- "Snapshot=t4.inf",
- "Mode=HTML",
- LAST);
- return 0;
- }
复制代码 |
|