bitmap checkpoint 问题
我在插入bitmap checkpoint后,运行脚本,结果有时匹配有时不匹配,不匹配在运行结果里看到的预期图,实际图,比较结果如附件.重新录制预期图,可以匹配,可是重启winrunner后又出现该问题,好像比较的太精确了,请大家看看怎么解决这个问题,谢谢! 是不是你环境配置的问题,把分辩率改小点试试看,或许比较的就不是那么精确了sdlkfj2补充一下:上面的预期图和实际图在运行的时候有时可以匹配有时不行
今天打开winrunner第一次运行就是上面的结果,又做了一遍匹配成功了,昨天测试的时候也是这样,我重新录制了预期图,结果今天又这样了.sdlkfj9 A bitmap checkpoint on identical bitmaps could fail if different display drivers areused 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 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:
XR_COLOR_DIFF_PRCNT=10
ANY ISSUES,PLE LET ME KONW!
页:
[1]