web_image_check的问题,搞一下午没搞掂,高手帮忙看下
本帖最后由 shgy984 于 2012-8-1 08:35 编辑在网上试过各种找到的方法,一直是报这个错.
页面源码
<div class="div">
<input type="image" name="i_login" id="i_login" src="images/Login/bt-login.jpg" alt="点击登录" style="border-width:0px;" /></div>
脚本:
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("Login.aspx",
"URL=http://172.26.229.188/Login.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t17.inf",
"Mode=HTML",
EXTRARES,
"Url=/WebResource.axd?d=Xp4I4P-4PpRdVHzMkdaQBQ2&t=634789237554513588", ENDITEM,
"Url=/WebResource.axd?d=pdpGjGyUueJk2mlJgxvufg2&t=634789237554513588", ENDITEM,
"Url=/images/Login/login-logo1.jpg", ENDITEM,
"Url=/images/Login/login-logo2.jpg", ENDITEM,
"Url=/images/Login/login-logo.jpg", ENDITEM,
"Url=/images/Login/login-name.jpg", ENDITEM,
"Url=/images/Login/bt-login.jpg", ENDITEM,
"Url=/images/Login/login-pic.jpg", ENDITEM,
"Url=/images/Login/login-pic2.jpg", ENDITEM,
"Url=/images/Login/login-bg.jpg", ENDITEM,
LAST);
web_image_check("web image check","Src=images/Login/bt-login.jpg","Alt=点击登录",LAST);
日志:
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-logo1.jpg" (specified by argument number 14)
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-logo2.jpg" (specified by argument number 16)
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-logo.jpg" (specified by argument number 18)
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-name.jpg" (specified by argument number 20)
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/bt-login.jpg" (specified by argument number 22)
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-pic.jpg" (specified by argument number 24)
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-pic2.jpg" (specified by argument number 26)
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-bg.jpg" (specified by argument number 28)
Action.c(21): web_url("Login.aspx") was successful, 127710 body bytes, 2903 header bytes
Action.c(42): Error -27191: "" failed (0 occurrence(s) found. Alt="点击登录", Src="images/Login/bt-login.jpg")
Action.c(42): web_image_check highest severity level was "ERROR"
Action.c(42): Notify: Transaction "Open_Url" ended with "Fail" status (Duration: 0.1890 Wasted Time: 0.0003).
Ending action Action.
Ending iteration 1. src赋值缺少"/",应该是src=/images/Login/bt-login.jpg 没事别check_image,这是性能测试不是自动化,干嘛非要去检查一下图片。 总是纠接于这类问题,其实没多大必要
页:
[1]