Hi TestComplete Community!
Dare to take the challenge?🙂
By completing the tasks, you can practice your skills of working with TestComplete features and also get into the TechCorner Leaderboard!
Task: Compare the two images below using TC Region Checkpoint ...and reveal a secret message! Post the message and the script to the comments.
Steps to do this:
1. Add the images below to the Regions collection.
2. Perform a pixel-by-pixel comparison using the Check method.
3. Click the “View Comparison Result” button in the log to reveal the secret message and post it along with your script to the comments!
Images to compare:
Have fun and good luck😊
Go to Solution.
This is a solution created for [TechCorner Challenge #12]
var pic2 = Utils.Picture;
Regions.img1_png.Check(pic2, false, false, 1, 1);
Click here to show or modify data of the checkpoint "img1_png". The images are not equal.The pixel difference is 1 %.The color difference is 20 %.There is a slight difference between the compared images. If you want the checkpoint to report them as equal, set its Pixel Tolerance parameter to 277.Update the "img1_png" checkpoint data.
View solution in original post
if Not Regions.img1_png.Check('img2_png') then
@anupamchampati glad to see you participating in our challenge🙂
Did you manage to read the secret message? Check out the highlighted changes on the picture tab (like shown in this topic) and post the text you find 🙂
Great, nice to see this secret message :😀
Good job @elanto ! Now we have a Delphi solution as well🙂