|
初学者对webserver进行朱测测试,录制脚本回放脚本时运行正常,在controller中运行时总是报错,不知道哪里问题
Action()
{
lr_rendezvous("同时登陆");
lr_start_transaction("登陆注册事件");
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_link("sign up now",
"Text=sign up now",
"Snapshot=t2.inf",
LAST);
lr_think_time(44);
web_reg_find("Search=Body",
"Text=Thank you",
LAST);
web_submit_form("login.pl",
"Snapshot=t3.inf",
ITEMDATA,
"Name=username", "Value={user}", ENDITEM,
"Name=password", "Value={pwd}", ENDITEM,
"Name=passwordConfirm", "Value={pwd}", ENDITEM,
"Name=firstName", "Value=1", ENDITEM,
"Name=lastName", "Value=1", ENDITEM,
"Name=address1", "Value=1", ENDITEM,
"Name=address2", "Value=1", ENDITEM,
"Name=register.x", "Value=48", ENDITEM,
"Name=register.y", "Value=10", ENDITEM,
LAST);
lr_end_transaction("登陆注册事件",LR_AUTO);
return 0;
}
|
|