51Testing软件测试论坛

标题: web_image_check一直报Error -27191 [打印本页]

作者: gml0619    时间: 2011-3-10 15:24
标题: web_image_check一直报Error -27191
代码如下:
web_submit_data("reservations.pl_2",
  "Action=http://127.0.0.1:1080/WebTours/reservations.pl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/WebTours/reservations.pl?page=welcome",
  "Snapshot=t22.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=advanceDiscount", "Value=0", ENDITEM,
  "Name=depart", "Value={origin}", ENDITEM,
  "Name=departDate", "Value=03/09/2011", ENDITEM,
  "Name=arrive", "Value=Los Angeles", ENDITEM,
  "Name=returnDate", "Value=03/10/2011", ENDITEM,
  "Name=numPassengers", "Value=1", ENDITEM,
  "Name=seatPref", "Value=None", ENDITEM,
  "Name=seatType", "Value=Coach", ENDITEM,
  "Name=.cgifields", "Value=roundtrip", ENDITEM,
  "Name=.cgifields", "Value=seatType", ENDITEM,
  "Name=.cgifields", "Value=seatPref", ENDITEM,
  "Name=findFlights.x", "Value=33", ENDITEM,
  "Name=findFlights.y", "Value=11", ENDITEM,
  LAST);


web_image_check("web_image_check",
        "expect=Found",
        "Alt=",
        "Src=/WebTours/images/button_next.gif",
        "matchcase=no",
        "repeat=no",
        "report=failure",
        "Onfailure=abort",
  LAST);
日志如下:
Action.c(252): Fatal Error -27191: "web_image_check" failed (0 occurrence(s) found. Alt="", Src="/WebTours/images/button_next.gif")   [MsgId: MERR-27191]
Action.c(252): web_image_check highest severity level was "FATAL ERROR"   [MsgId: MMSG-26391]

页面的源文件如下:
<input type="image" name="reserveFlights" src="/WebTours/images/button_next.gif" border="0" />
实在不知道该怎么改了,请各位帮忙,在线等

作者: gml0619    时间: 2011-3-10 15:33
为啥子没人咧,版主,帮帮忙啦
作者: gml0619    时间: 2011-3-10 16:54
为什么。。。为什么没人搭理我捏
作者: gml0619    时间: 2011-3-11 10:09
等滴花儿都谢了,也没个人
作者: zylbsplx2008    时间: 2011-3-21 22:25
你有没有开那个设置,”允许检查图像和文本“复选框……




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2