|
使用mercury tour网站进行关联学习时,执行下列步骤:
1、录制了用户veta登陆网站,并订票的过程。保存为scrip1;
2、再次录制用户veta登陆网站,并订票的过程。保存为scrip2;
3、使用WDIFF对比两者。发现usersession值不相同,且从Recording log中的
*** [tid=7a0 Action 7] Receiving response from host localhost:80 ( 12/10/2006 15:37:36 )
"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">\n"
"<HTML><HEAD><TITLE>Mercury Tours Navigation Bar</TITLE>\n"
"</HEAD><BODY BGCOLOR=\"#66CCFF\"><img src=/MercuryWebTours/images/sun_swede.gif alt=Sun width="
"125 height=120> <br clear>\n"
"<form method=post action=login.pl target=body>\n"
"<input type=hidden name=userSession value=94016.9019846092tiDfQQtpDQfiDDDDcQAVfpQzzDHf>\n"
判定是由服务器所产生的动态数据。
4、通过excuting log定位到了在脚本需要修改的位置。添加web_reg_save_param("myuser","LB=input type=hidden name=userSession value=","RB=>",Ord="ALL",LAST)
但是此时我发现在脚本中没有找到和log中一致的数值,唯一一个相似的是
web_submit_data("login.pl",
"Action=http://localhost/MercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/nav.pl?in=home",
"Snapshot=t6.inf",
"Mode=HTTP",
ITEMDATA,
"Name=userSession", "Value=94016.9019846092tiDfQQtpDQfiDDDDcQAVfpQzzDHf", ENDITEM,
请问这个需要被关联么?另外,即使我将其关联,也会报错
Action.c(105): Error -26377: No match found for the requested parameter "us". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(105): web_concurrent_end highest severity level was "ERROR", 9024 body bytes, 736 header bytes [MsgId: MMSG-26388] |
|