Forum Discussion

_Oliver_'s avatar
_Oliver_
Contributor
18 days ago
Solved

How to get the diff image from VisualTest in TestComplete

Hello all,


I’ve started using TestComplete along with VisualTest, but I’m running into a roadblock early in the process.

Here is the scenario I’m trying to implement:

Take two screenshots of two pages that are expected to be visually similar.
Use VisualTest to compare these two images and generate a “diff image” highlighting the visual differences.
Retrieve this result image and send it by email.

With TestComplete, I’m able to perform steps 1 and 2. However, as far as I can tell, the “diff image” generated by VisualTest cannot be accessed or exported programmatically.

From what I understand, the VisualTest web application does allow you to manually view and download the diff image. What I’m looking for is a way to achieve this programmatically from TestComplete - perhaps via a script - by sending the two screenshots to VisualTest and retrieving the diff image file.

Unfortunately, I haven’t been able to find any clear documentation describing how to interact with VisualTest through an API.

If there’s any way to do this via API/script from TestComplete, I’d greatly appreciate any guidance or examples you can share.

Thank you for your help!

5 Replies