I have 9 bit map checkpoints to check the results of clicking on a custom VB gui sidebar window with custom buttons. The problem comes when after I have set up the checkpoints: the tests still fail in test director. I used bitmap checkpoint- for object window.
bitmap check points are not very reliable. And thats from Mercury. I used to have the same problem so I stopped using them. You can set the sensitivity of the bitmaps in the options some where. Sorry off the top of my head I do not remember.
The problem lies in the browser not WinRunner(according to Mercury). The browser doesn't always load all the pixels in a picture so when WinRunner compares them, if the number of pixels that are different is beyond the acceptable thershold(sensitivity) then it fails.
I figure if you have the courage to get out of bed in the morning, then how bad can the day be.
My application under test draw a picture on the screen. I want to make sure that the picture gets drawn correctly, so I do a bitmap checkpoint. However, when I run my script, WinRunner tells me all my bitmap checkpoints have failed. I look at the difference bitmap given by WinRunner, and I see white (seems like no difference to me).
Does anyone know what is wrong? I'm not sure if it has to do with the different in maybe some minute number of pixels that's not even visible to the human eye. But I am using the same parameters in my application to draw the picture (including number of dots to draw it, etc), so I don't see how there could be a difference.
Please help! I gotta finish this within a couple of days!
The bitmap image checkpoint usually have the expected results. The expected results will be compared with the Actual results.
So if you think that the image is same & still the checkpoint is failing. In General you need to follow the same screen resolution & colour setting of your system. Run the Checkpoint once in Update mode then execute the same in Verify / Debug mode.
I think the problem will be solved....Let us know if still face problem.