Which version of the “VisualTestingInKatalonStudio” project are you looking at? I presume you are looking at v1.9.2 or earlier. The most up-to-date version is v.1.10.9.
At the version 1.10.0, I made a significant change to this project. I introduced a Gradle plugin visualtestinginks, which makes it very easy to “enable your own Katalon Studio project to perform Visual Testing — twins mode and chronos mode”. I changed completely the method to make your own project to be capable of Visual Testing. Therefore I DELETED the document “Step by step instruction” as its content is no longer valid as of v1.10.x.
Now @rajani.gangadhara showed his interest to this project. I got much pleased, thank you, but a bit frightened. I must confess, the version 1.10.x has some compatibility problem. The users of 1.9.x may encounter problem upgrading to 1.10.0.
To be honest, I thought nobody (except myself) would be looking at this project, so I did not take care about compatibility at all.
@kazurayam Hi can I use this for testing images within larger image? Say I have a full page screenshot, then I take a smaller section of the page and say find image1 inside image 2. I tried to do this a few years ago with but there were too many false positives.
My VisualTestingInKatalonStudio project uses the aShot library.
The aShot library supports taking an image of a specific Web Element in a page, as well as taking a full page screenshot.
WebElement view
aShot takes a screenshot in three simple steps:
Capture a screenshot of the entire page
Find the element’s size and position
Crop the original screenshot
As a result, aShot provides an image of the WebElement
If you are interested in a specific Web Element in a page and if you can locate that element using Katalon’s Web Object (using XPath expression or CSS selector), then I suppose that aShot might be useful for you.
The example VisualTestingInKatalonStudio project demonstrates how to compare pairs of entire page screenshots. But you can compare images of specific Web Elements in pages as well. Full page or not — it doesn’t really matter.
Worked like a charm thanks for this amazing library was pulling hair with Sikuli again.
Basically I run the script once to take screenshot of Element into Baseline Folder (Will Change As UI changes, rarely)
Then change the script to take screenshot of Element into the Current Folder
Then run the comparison
I am not sure if you have already solved your problem, or still asking me some question. If you have any question, could you please reword it a bit more clearly?
As of v1.12.0, the Modal dialog presents 2 panes in a carousel format. The first pane shows Expected image on the left, Actual image on the right. And another pane shows the Diff image. You can switch between the 2 panes by a single mouse click on . This format of index.html makes it easy to locate and see the visual differences in the Expected-Actual images.
there I described how to enable a Katalon Studio project to perform what I call “Visual Testing”. A few steps of preparation makes a Katalon project capable of capturing anonymous Web site you are interested in, analyzing the screenshots and compiling reports.
I wrote this because I wanted to introduce my product to my colleagues in Tokyo. It must be written in Japanese.