loadrunner中插入图像检查点问题
我录制了脚本,插入图像检查后,运行出错,我是在tree环境中插入的。错误如下;"web_image_check" failed (0 occurrence(s) found. Alt="", Src="http://img1.cache.netease.com/cnews/2008/9/3/20080903075012a231f.jpg")
Action.c(254): web_image_check highest severity level was "ERROR"
我查看图片的源文件,是这样的:<a href="http://news.163.com/08/0903/04/4KSV6HL500011229.html"><img src="http://img1.cache.netease.com/cnews/2008/9/3/20080903075012a231f.jpg" alt="宝马造“最牛三轮车”" width="145" height="90" border="0" />
请高手们 帮我解决下,谢谢! run-time setting里的Enable image and text check复选框你选上了吗?检查一下 我查看了 选上了的,谢谢! web_image_check()函数里应该这样写"Src=20080903075012a231f.jpg",再试试 不对,这样,我最开始就这样写的?谢谢你的2次回答,呵呵 估计是你的web_image_check()函数放错位置了,要放在被检查的URL的后面 web_image_check()函数位置你放对了吗?要放在被请求的URL的后面,再检查一下.另外加检查点,不要手工做,在TREE树中点击鼠标右键,利用检查点向导来做,那样能减少出错的机会. web_image_check("web_image_check",
"20080903075012a231f.jpg",
LAST);
函数是这样的,是放在被检查的URL后面的哟,我在tree树中和手工都做了,还是通过,仍然是那个错误!我录制脚本中加入文本检查,运行正确! web_image_check("web_image_check",
"Src=20080903075012a231f.jpg",
LAST);
这样写才对,你再确认一下请求的URL返回的RESPONSE中有20080903075012a231f.jpg文件。 web_url("126mailnews.html",
"URL=http://news.163.com/special/0001127H/126mailnews.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://tg1a87.mail.126.com/a/f/dm3/0806191236/index_v19.htm",
"Snapshot=t50.inf",
"Mode=HTML",
EXTRARES,
"URL=http://img1.cache.netease.com/cnews/2008/8/28/20080903075012a231f.jpg", ENDITEM,
"URL=http://cimg2.163.com/cnews/newimg/mail/i2.gif", ENDITEM,
"URL=http://cimg2.163.com/cnews/img07/mail/i1.gif", ENDITEM,
"URL=http://cimg2.163.com/cnews/img07/mail/ii1.gif", ENDITEM,
LAST);
web_image_check("web_image_check",
"Src=20080903075012a231f.jpg",
LAST);
是这样写的,上一个回复写错了,非常感谢aks5201314,呵呵!还是一样的错误:
Action.c(372): Error -27191: "web_image_check" failed (0 occurrence(s) found. Alt="", Src="20080828075202b514c.jpg")
Action.c(372): web_image_check highest severity level was "ERROR"
晕
你们搞什么,问题解决了吗? 还没有啊,等待高手给予解答呢,谢谢!回复 10# 的帖子
LZ在 设置web_image_check()函数时,有没有勾选 Alt="" 属性。如有的话,去掉试试 楼主问题解决了吗?
页:
[1]