51Testing软件测试论坛

标题: bitmap checkpoint 问题 [打印本页]

作者: jjqyyf    时间: 2006-10-24 11:35
标题: bitmap checkpoint 问题
我在插入bitmap checkpoint后,运行脚本,结果有时匹配有时不匹配,不匹配在运行结果里看到的预期图,实际图,比较结果如附件.重新录制预期图,可以匹配,可是重启winrunner后又出现该问题,好像比较的太精确了,请大家看看怎么解决这个问题,谢谢!
作者: shirleywong    时间: 2006-10-24 11:39
是不是你环境配置的问题,把分辩率改小点试试看,或许比较的就不是那么精确了sdlkfj2
作者: jjqyyf    时间: 2006-10-24 11:42
标题: 补充一下:上面的预期图和实际图在运行的时候有时可以匹配有时不行
今天打开winrunner第一次运行就是上面的结果,又做了一遍匹配成功了,昨天测试的时候也是这样,我重新录制了预期图,结果今天又这样了.sdlkfj9
作者: jasiond120    时间: 2006-10-30 15:45
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!




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