|
使用原来的用户名和密码(jojo,bean),刚开始登陆没有问题,录制了创建机票和删除创建的机票操作,创建机票为a事务删除操作为B事务。用controller跑了7分钟后提示出错(10个用户并发),提示密码错误,用手工在IE里面登陆也登陆不进去。a事务没有出错,b事务与登陆失败数一致(提示:27979),单独跑一个用户也失败。
现在有以下几个疑问:
1.刚开始登陆时没有问题,运行一段时间以后就出现登陆不进去了,重启webtours也是登进去,这是什么原因导致的?
2.如果密码错误,正常来说a,b事务都错误才对,为什么只有b数据出错,a事务不出错呢。
代码:
登陆和注销在init和end的里面
Action()
{
lr_start_transaction("11111");
web_url("welcome.pl",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?page=search",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=06/12/2012", ENDITEM,
"Name=arrive", "Value=San Francisco", ENDITEM,
"Name=returnDate", "Value=06/13/2012", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=on", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=First", ENDITEM,
"Name=findFlights.x", "Value=59", ENDITEM,
"Name=findFlights.y", "Value=5", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=060;379;06/12/2012", ENDITEM,
"Name=returnFlight", "Value=601;338;06/13/2012", ENDITEM,
"Name=reserveFlights.x", "Value=64", ENDITEM,
"Name=reserveFlights.y", "Value=12", ENDITEM,
LAST);
web_submit_form("reservations.pl_3",
"Snapshot=t6.inf",
ITEMDATA,
"Name=firstName", "Value=Joseph", ENDITEM,
"Name=lastName", "Value=Marshall", ENDITEM,
"Name=address1", "Value=234 Willow Drive", ENDITEM,
"Name=address2", "Value=San Jose/CA/94085", ENDITEM,
"Name=pass1", "Value=Joseph Marshall", ENDITEM,
"Name=creditCard", "Value=88888", ENDITEM,
"Name=expDate", "Value=", ENDITEM,
"Name=saveCC", "Value=on", ENDITEM,
"Name=buyFlights.x", "Value=50", ENDITEM,
"Name=buyFlights.y", "Value=12", ENDITEM,
LAST);
web_submit_form("reservations.pl_4",
"Snapshot=t7.inf",
ITEMDATA,
"Name=Book Another.x", "Value=22", ENDITEM,
"Name=Book Another.y", "Value=9", ENDITEM,
LAST);
lr_end_transaction("11111",LR_AUTO);
lr_start_transaction("22222");
web_image("Itinerary Button",
"Alt=Itinerary Button",
"Snapshot=t8.inf",
LAST);
web_submit_form("itinerary.pl",
"Snapshot=t9.inf",
ITEMDATA,
"Name=1", "Value=on", ENDITEM,
"Name=2", "Value=<OFF>", ENDITEM,
"Name=3", "Value=<OFF>", ENDITEM,
"Name=4", "Value=<OFF>", ENDITEM,
"Name=5", "Value=<OFF>", ENDITEM,
"Name=6", "Value=<OFF>", ENDITEM,
"Name=7", "Value=<OFF>", ENDITEM,
"Name=8", "Value=<OFF>", ENDITEM,
"Name=9", "Value=<OFF>", ENDITEM,
"Name=removeFlights.x", "Value=38", ENDITEM,
"Name=removeFlights.y", "Value=8", ENDITEM,
LAST);
lr_end_transaction("22222",LR_AUTO);
return 0;
} |
|