>>>>>
- 启动Web Tours服务。。双击启动。
- 输入网址:http://127.0.0.1:1080/WebTours/
功能解说:
脚本源码:
vuser_init脚本:
vuser_init() { web_reg_save_param("session", "LB=name=\"userSession\" value=\"", "RB=\"/>", LAST); web_url("WebTours", "URL=http://localhost:1080/WebTours/", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t77.inf", "Mode=HTML", LAST); lr_think_time(18); lr_start_transaction("1_denglu"); web_submit_data("login.pl", "Action=http://localhost:1080/cgi-bin/login.pl", "Method=POST", "TargetFrame=", "RecContentType=text/html", "Referer=http://localhost:1080/cgi-bin/nav.pl?in=home", "Snapshot=t78.inf", "Mode=HTML", ITEMDATA, "Name=userSession", "Value={session}", ENDITEM, "Name=username", "Value=xhx", ENDITEM, "Name=password", "Value=123", ENDITEM,