I am using SilkTest 5.3, IE 5.5 for web testing on NT. I record window image as bitmap and play back. Every time test fails as bitmap failed to stabilize . Is there any method to test dynamic window image. Help me with any suggestion....?
Two things I would advise you to check if your window doesn't appear to contain any animated features:
- the mouse may be changing, flickering, or may be of a type that is constantly changing (e.g. hourglass). To resolve this, you may need to shift the cursor to a different area of the desktop (using Desktop.MoveMouse) before grabbing the bitmap.
- if you are trying to take a bitmap of the entire screen, stuff outside your app may be changing. A typical culprit is the CPU monitor in the system try, if you are running NT or W2K. The way to resolve this is to make sure that you are just taking a bitmap of your app.
If this doesn't solve your problem, try messing around with the Bitmap options (under Options->Agent) to see if that helps.
May be it helps.
I had problem with 'report regression' - running browser based application with a lot of reports pages.
When I used bmp screen shots it took >1Mb for every window (not big deal) but many times couldn't compare the images which were 'almost' the same (one pixel up/down, left/right). It happened not every time andI was not able to manage it.
Now I use html files (give me text, numbers, fonts, colors) by 'View source' and save.
Also I had to parse html files to remove some time sensitive data (java script and table columns like I did with bmp masks)