| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Here Initially we will take one ScreenShot and store into the file and then at any time again we can take one more ScreenShot and compares both to know is there any changes happened.
To run the project, clone the repo, and simply run.
Go to the EatinProgramUITests.swift file
There is a compare method written in EatinProgramUITests.swift which takes tolerance and
two image data and checks whether two images are equal or not.
Make Sure if you are setting tolerance == 0.0 , means images should exactly be equal. See on the top, time should also be same. if you don't want full screen shot then you can define frame for which you want to take screen shot. tolerance == 0.1 means if two images are not matching 10% then also compare method will say that both images are equal.
Amar Prakash Mishra - Initial work - UIScreenShot-Testing
Created by Amar Prakash Mishra, on 23/05/19.
Share feedback if you feel anything needs to be improved, I would be happy to hear.
| Back | FazBrowse Home | New Git URL |