The following picture shows how Test Suites/CURA/Execute_twins
goes.
The file name of ImageDiff will be in the format as follows
- An ImageDiff file has a name for example:
CURA_Homepage.20180920_165543_product-20180920_165544_develop.(6.30)FAILED.png
- prefix part
CURA_Homepage
is equal to the file name prefix of the source image fileCURA_Homepage.png
- middle part
yyyyMMdd_hhmmss_PPPPPPP
is equal to the timestamp when test suiteMain/TS
was executed, andPPPPPPP
is the Katalon Execution Profile applied to the test suite execution. (6.30)
is called diff% = number of read pixcels(differences) / (width * hight of page) * 100FAILED
is marked by the test suiteImageDiff
in case that the 2 source images are too different.- What does "too different" means? The Test Case
ImageDiff
has the following code:
CustomKeywords.'com.kazurayam.ksbackyard.ScreenshotDriver.makeDiffs'(
'product', 'develop', 'Main/TS1', 3.68)
The 4th argument is called criteria%. If the difference is larger than the criteria% specified, then the generated ImageDiff file will be marked FAILED
. This mark enables CSS in ./Materials/index.html to show the line highlighted.