51Testing软件测试论坛
标题:
web_image_check的问题,搞一下午没搞掂,高手帮忙看下
[打印本页]
作者:
shgy984
时间:
2012-7-31 16:13
标题:
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) [MsgId: MMSG-26577]
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-logo2.jpg" (specified by argument number 16) [MsgId: MMSG-26577]
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-logo.jpg" (specified by argument number 18) [MsgId: MMSG-26577]
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-name.jpg" (specified by argument number 20) [MsgId: MMSG-26577]
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/bt-login.jpg" (specified by argument number 22) [MsgId: MMSG-26577]
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-pic.jpg" (specified by argument number 24) [MsgId: MMSG-26577]
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-pic2.jpg" (specified by argument number 26) [MsgId: MMSG-26577]
Action.c(21): Downloading resource "http://172.26.229.188/images/Login/login-bg.jpg" (specified by argument number 28) [MsgId: MMSG-26577]
Action.c(21): web_url("Login.aspx") was successful, 127710 body bytes, 2903 header bytes [MsgId: MMSG-26386]
Action.c(42): Error -27191: "" failed (0 occurrence(s) found. Alt="点击登录", Src="images/Login/bt-login.jpg") [MsgId: MERR-27191]
Action.c(42): web_image_check highest severity level was "ERROR" [MsgId: MMSG-26391]
Action.c(42): Notify: Transaction "Open_Url" ended with "Fail" status (Duration: 0.1890 Wasted Time: 0.0003).
Ending action Action.
Ending iteration 1.
作者:
ice_lily
时间:
2012-8-16 15:40
src赋值缺少"/",应该是src=/images/Login/bt-login.jpg
作者:
云层
时间:
2012-8-16 15:49
没事别check_image,这是性能测试不是自动化,干嘛非要去检查一下图片。
作者:
msnshow
时间:
2012-8-17 08:34
总是纠接于这类问题,其实没多大必要
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2