Position Command Offsets 7 Pixels to the Right
Some of the checks I need to perform in TestComplete keyword tests are image comparisons. In order to ensure image comparison consistency between machines I specify the same screen resolution, application window size and position before I begin the rest of my scripts. The command I use is described here:
and what I use to push the app to the top left corner of my screen is this:
Position 0,0,1300,1050
I noticed a number of my image comparisons were failing and upon closer inspection found that the above command was actually setting my main application window 7 pixels to the right, thus causing image differential comparison failures.
The workaround is to use this command:
Position -7,0,1300,1050
which actually sets the top left pixel of the main app window to 0,0
Notes:
- This seems to have started with the V12.3 release.
- Occurs on a physical and virtual machine, with TestComplete and TestExecute.
- I also have the patch installed to correct the Auto-wait timeout randomly resetting to 50mS, which is discussed here:
The Maximize command does not suffer from this. I choose not to use this command because I like having my app and TestComplete onscreen and non-overlapping for debugging reasons.
Has anyone else run into this?