51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2950|回复: 3
打印 上一主题 下一主题

bitmap checkpoint 问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-10-24 11:35:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我在插入bitmap checkpoint后,运行脚本,结果有时匹配有时不匹配,不匹配在运行结果里看到的预期图,实际图,比较结果如附件.重新录制预期图,可以匹配,可是重启winrunner后又出现该问题,好像比较的太精确了,请大家看看怎么解决这个问题,谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    无聊
    2016-9-26 12:37
  • 签到天数: 14 天

    连续签到: 1 天

    [LV.3]测试连长

    2#
    发表于 2006-10-24 11:39:34 | 只看该作者
    是不是你环境配置的问题,把分辩率改小点试试看,或许比较的就不是那么精确了sdlkfj2
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2006-10-24 11:42:12 | 只看该作者

    补充一下:上面的预期图和实际图在运行的时候有时可以匹配有时不行

    今天打开winrunner第一次运行就是上面的结果,又做了一遍匹配成功了,昨天测试的时候也是这样,我重新录制了预期图,结果今天又这样了.sdlkfj9
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2006-10-30 15:45:42 | 只看该作者
    A bitmap checkpoint on identical bitmaps could fail if different display drivers are
    used when you create the checkpoint and when you run the test, because
    different display drivers may draw the same bitmap using slightly different color
    definitions. For example, white can be displayed as RGB (255,255,255) with one
    display driver and as RGB (231,231,231) with another.
    To set the ignorable color difference level:
    1 Open wrun.ini from the <WinRunner installation folder>\dat folder.
    2 Adding the XR_COLOR_DIFF_PRCNT= parameter to the [WrCfg] section.
    3 Enter the value indicating the maximum percentage difference to ignore.
    In the example described above the difference between each RGB component
    (255:231) is about 9.4%, so setting the XR_COLOR_DIFF_PRCNT parameter
    to 10 forces WinRunner to treat the bitmaps as equal:
    [WrCfg]
    XR_COLOR_DIFF_PRCNT=10

    ANY ISSUES,PLE LET ME KONW!
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-10-6 16:30 , Processed in 0.074082 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表