|
代码如下:
Action()
{
web_reg_find("Search=Body",
"SaveCount=a_count",
"Text=星期一",LAST);
web_submit_data("login!login.action",
"Action=http://172.17.192.1:8080/test/login!login.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.17.192.1:8080/test/login1024.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=screenSize", "Value=1024", ENDITEM,
"Name=loginId", "Value=liujf", ENDITEM,
"Name=password", "Value=liujf", ENDITEM,
"Name=imageField.x", "Value=35", ENDITEM,
"Name=imageField.y", "Value=0", ENDITEM,
EXTRARES,
"Url=images/dtree/base.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/plus.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/joinbottom.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/line.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/folder.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/join.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/page.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/empty.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/folderopen.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/plusbottom.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/dtree/minus.gif", "Referer=http://172.17.192.1:8080/test/frame/left.jsp", ENDITEM,
"Url=images/table/tblbg.gif", "Referer=http://172.17.192.1:8080/test/jsp/Submit_record/Submit_recordAction!querySubmit_record_first.action", ENDITEM,
"Url=components/calendar/datetime.js", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/plugins.js", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/datetime.css", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/arrowl.gif", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/arrowr.gif", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/plus.gif", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/minus.gif", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/bb.JPG", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
"Url=components/calendar/agenda.js?1330927440484", "Referer=http://172.17.192.1:8080/test/components/calendar/ipopeng.htm", ENDITEM,
LAST);
if(atoi(lr_eval_string("{a_count}"))>0)
lr_output_message("found");
else
lr_error_message("nofound");
return 0;
}
这是一个登录系统,登录后页面会有显示文本“星期一”,但是为何我跑完脚本后,返回值是NOFOUND,count计数为0啊?
还有我选中UTF-8和没选中UTF-8都是一个样啊 |
|