web_reg_find放在web_submit_data()函数前出错
我把 web_reg_find( "Text=OMS4.0", "Search=body", LAST )这句函数放在web_submit_data("login.aspx", ....)函数中,在回放的时候总是出错,但是把web_reg_find( "Text=OMS4.0", "Search=body", LAST )放在web_submit_data之后却可以正常回放,为什么?不是说添加检查点函数web_reg_find要在web_submit_data()函数前吗,怎么我放在该函数前出错了,反而放在该函数之后不会出错我的代码如下
vuser_init()
{
web_add_cookie(".ASPXAUTH=D9AC3CDCA5AB83080847FAE39754F2A146A362130B8942A5B25299E7D5C8BCB803501D5994B554F2021C20015B7F13905BD85F8075063BA577673C3A447BEC6259C1D0BF10779BAE3D4C198E7F1B8BF2; DOMAIN=192.168.1.96");
web_set_max_html_param_len("16400");
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("yzw",
"URL=http://192.168.1.96/yzw",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/yzw/WebResource.axd?d=Sfnjd6t54dOKEmIjzK6dOQ2&t=634027746547968750", "Referer=http://192.168.1.96/yzw/", ENDITEM,
"Url=/yzw/WebResource.axd?d=Zxseq4G2f6hd_s3IYcsmjXjt-sFtHuKkAarVF2xycG81&t=634027746547968750", "Referer=http://192.168.1.96/yzw/", ENDITEM,
LAST);
web_add_cookie("BAIDUID=72AA9D5CAE1DAB5BE8775AD6D9445439:FG=1; DOMAIN=l.baidu.com");
lr_start_transaction("gg");
web_reg_save_param("Siebel_Analytic_ViewState4",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_reg_find( "Text=OMS4.0", "Search=body", LAST );
web_submit_data("login.aspx","Action=http://192.168.1.96/yzw/login.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.96/yzw/",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBQLFrPCIAwLT8dy8BQK1qbSRCwKC3IeGDAKQ9M/rBbg91du/4WubQURx9O5nGCbOaFPF", ENDITEM,
"Name=txtUserID", "Value=admin", ENDITEM,
"Name=txtPassword", "Value=123456", ENDITEM,
"Name=btnLogin", "Value=登陆", ENDITEM,
EXTRARES,
"Url=SecFox/images/group_close.gif", "Referer=http://192.168.1.96/yzw/SecFox/Default.aspx", ENDITEM,
LAST);
web_url("WebPartIndex.aspx",
"URL=http://192.168.1.96/yzw/Index/WebPartIndex.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.96/yzw/SecFox/Default.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=../WebResource.axd?d=pBFoWJfF4zBA74K3YV7h0g2&t=634027746547968750", ENDITEM,
"Url=../App_Themes/GS/Images/Minimize.gif", ENDITEM,
"Url=../App_Themes/GS/Images/PTCLOSE.GIF", ENDITEM,
"Url=../App_Themes/GS/Images/board_title_bg.jpg", ENDITEM,
LAST);
lr_end_transaction("gg",LR_AUTO);
return 0;
} 它提示的错误是
vuser_init.c(94): Error -26366: "Text=OMS4.0" not found for web_reg_find
vuser_init.c(94): web_submit_data("login.aspx") highest severity level was "ERROR", 697476 body bytes, 18192 header bytes
知道为什么会这样的朋友们可否回答一下这个问题?? 明确一下 OMS4.0 到底是在哪一个请求的返回信息里,现在的错误就是没找到
带 reg 的函数都是放前面的, 比如web_reg_find
还有你发错版块了
[ 本帖最后由 skyzhu 于 2010-4-7 12:56 编辑 ]
提交的信息能找到你要的东西么
你可能要在深入分析下,页面会不会不在这里对,发错版块了 呵呵,不好意思,发错版块了,下次会注意的,不过还是想把这个问题解决了,我的OMS4.0就是登陆成功后会一定会显示出来的信息,也就是说web_submit_data()函数中执行成功后就会显示这个信息的 web_submit_data 提交后可能页面是会有跳转的,显示出来的内容很可能已经跳转过了
不能只是去看页面显示,还是需要自己去具体分析一下 原帖由 suqing 于 2010-4-7 15:37 发表 http://bbs.51testing.com/images/common/back.gif
你可能要在深入分析下,页面会不会不在这里
对,发错版块了
~没有发错吧~ 你这文本有吗?就是你提交数据后 我也是其中的问题,想求答案 en ,:handshake
页:
[1]