kazurayam / materialstore

A domain-specific file system to store "materials" (screenshots, HTML, JSON, XML) collected during End-to-End testings using Selenium WebDriver etc. Features to make "diff" and compiling HTML reports are also included. This is written in pure Java8
Apache License 2.0
0 stars 0 forks source link

MaterialstoreException: the left material is not an image ... #362

Closed kazurayam closed 1 year ago

kazurayam commented 1 year ago

derived from the post of VisualInspectionInkatalonStudio_Reborn project

Reason:
com.kazurayam.materialstore.core.filesystem.MaterialstoreException: the left material is not an image: {"jobName":"_","jobTimestamp":"_","id":"0000000000000000000000000000000000000000","fileType":"","metadata":{},"identification":"{}","relativeUrl":"_/_/objects/0000000000000000000000000000000000000000.","diffability":"UNABLE"}
    at com.kazurayam.materialstore.base.reduce.differ.ImageDifferToPNG.stuffDiff(ImageDifferToPNG.java:40)
    at com.kazurayam.materialstore.base.reduce.DiffingMPGProcessor.stuffDiffByDiffer(DiffingMPGProcessor.java:68)
...

How can I manage a case where the right MaterialList had a screenshot taken from the URL http://demoaut-mimic.kazurayam.com/ and the program can not find a screenshot of a URL with path / in the left MaterialList: in fact the left MaterialList had a screenshot taken from the URL http://demoaut-mimic.katalon.com/index.html. These 2 URLs are slightly differnet. Man can think of these 2 URLs make a pair; but my program can not.

kazurayam commented 1 year ago

My program should not throw the Exception to stop the processing entirely.

My program should show a WANING message, but continue the processing.

When "the left material is not an image", then my program can substitute the left material a blank image and create a diff, which will be very read. This would tell us that there is a problem here. That's OK.

kazurayam commented 1 year ago

resolved at 0.12.5-SNAPSHOT

スクリーンショット 2022-11-18 11 07 12 スクリーンショット 2022-11-18 11 06 54 スクリーンショット 2022-11-18 11 07 03
kazurayam commented 1 year ago

fixed at the 0.12.5