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!
It might be best to post your question on the VisualTest forum Category: VisualTest | SmartBear Community .
I'm not familiar with VisualTest, but you might be able to use the browsers' DevTools and capture the appropriate Requested URL.
And then you can use https://support.smartbear.com/testcomplete/docs/testing-with/advanced/sending-receiving-requests/index.html within TestComplete to GET the HTTP response.