August 8, Saturday
I changed the organization of the error log to look better. Also, I’ve added a checksum error check where the intended checksum is written along with the current checksum on the screen that caused the checksum test to fail.
I’m still trying to solve an issue, in which test some times fail, but mostly not. And another issue is, the test is NOT working on another machine! I have to find out where the problem is.
To diagnose the problem, I tried the tests on 4 different machines and 3 Different Operation systems to see if the problem what from my OS since I’m using Windows 7. But its turned out that it doesn’t matter! I got the same result on all other machines, including another Windows 7 machine. All other machines got the same results except mine, and my machine was the only machine in which the test successfully runs.
To make a further diagnosis, I tried to see the following numbers in all machine (in which I made a specific test for that purpose): Pixel Location, Pixel Color in Hex, Pixel Color in Decimal and Checksum value. My machine would have the same X and Y location, but different Pixel Color both in Hex and in Decimal, and ofcourse, Different checksum.
Later on we found a location which have the same Hex Pixel Color but Different Decimal color! This didn’t make any sense at all! Why would they be different? Later on we noticed that there was a one-letter-different between the two. That means we are back to ground zero!
Then again, we thought that maybe there are differences in color setting in all machines. We tried to look it up, but it no process was made.
As another attempt, I decided to check if X and Y locations are the same. 1st I tried to check the X location. I made the mouse move to be on a vertical line, and run that test on the 2 machines. Both mouse cursors ended up on the line exactly, that means no problem here. I repeated the same test, but now the line will be horizontal. One cursor was on the line, the other one was 2 pixels above it! Aha! This explains alot of things! If there were 2 pixel shift, the color will differ and the checksum willl also differ! Maybe we are getting closer now.
We tried to shift the other one down to see if we will get the same pixel color and check some, and it turned out to be a sucess!
Now another issues arise, now that we know the problem, what is the best way to fix it? There are 2 options:
- Redo ALL pixels and checksums from scratch (Maybe 50 entries needs to be redone)
Things to do:
- Make the test browser’s (0,0) point exactly on the page screen not the window screen. By doing this, tests will be the same in all machines.
- Figure out how much pixel difference there are between the new pixel location and the old one.
- Modify all Pixel locations in the test
- Run tests to get the new checksums from the error log, since I added 2 values there called “checksum value” and “true checksum value” and they turned out to be of great help.
- Get the new checksums and added it to the tests and re-run again and again until everything is working fine.
- Try somehow to shift-up the test browser up by 2 pixels.
Personally I will do Option 1. If i’m going to do something, I want to do it the right was, and since I have time, I can do it! Maybe if I’m short on time I would choose Option 2.