|
本帖最后由 dangerxue 于 2011-8-7 22:39 编辑
微软的。net开发的 petshop宠物商城,在录制回放登录部分的时候总是出错,已经建立关联,并且对比过脚本,除了快照编号外无其他差异,还是出错
错误信息如下
vuser_init.c(91): 错误 -26612: 对于“http://www.test.com/SignIn.aspx?ReturnUrl=%2fDefault.aspx”,HTTP 状态代码=500 (Internal Server Error) [MsgId: MERR-26612]
vuser_init.c(91): web_submit_data("SignIn.aspx") 最高严重级别为“ERROR”,8055 个正文字节,240 个标头字节 [MsgId: MMSG-26388]
从操作调用了中止。
回放就停止了,有高人知道怎么处理么。谢谢
下面是最后一步的请求函数
//关联部分
web_reg_save_param("Siebel_Analytic_ViewState4",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
LAST);
web_submit_data("SignIn.aspx",
"Action=http://www.test.com/SignIn.aspx?ReturnUrl=%2fDefault.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://www.test.com/SignIn.aspx?ReturnUrl=%2fDefault.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState4}", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWDQKGosbeDwLE5ML0AgL9n+COAgLIksa1CQLvoZjADwK5z9jNDwKKi56BCwLIuuGJCAKt0a/oBALJoNiuBwK++7mgCwLwv+ORCgKLwZHdC55oNs0s4Q8LYelelktNd/QJkmwj", ENDITEM,
"Name=ctl00$txtSearch", "Value=", ENDITEM,
"Name=ctl00$Categories$repCategories$ctl01$hidCategoryId", "Value=BIRDS", ENDITEM,
"Name=ctl00$Categories$repCategories$ctl02$hidCategoryId", "Value=BUGS", ENDITEM,
"Name=ctl00$Categories$repCategories$ctl03$hidCategoryId", "Value=BYARD", ENDITEM,
"Name=ctl00$Categories$repCategories$ctl04$hidCategoryId", "Value=EDANGER", ENDITEM,
"Name=ctl00$Categories$repCategories$ctl05$hidCategoryId", "Value=FISH", ENDITEM,
"Name=ctl00$cphPage$Login$UserName", "Value=tt01", ENDITEM,
"Name=ctl00$cphPage$Login$Password", "Value=~!@QWEASD", ENDITEM,
"Name=ctl00$cphPage$Login$LoginButton", "Value=Sign In", ENDITEM,
LAST); |
|