mengbinhao
3 years agoContributor
Compare function's result of PIcture is not unique
Hi there,
When I test below function, Pict1 and Pict2 are totally different, but sometimes it gets 'Same', sometimes it gets 'not same', Please guide me why the compare result is not unique.
function Test1()
{
Pict1 = Utils.Picture;
Pict1.LoadFromFile("X:\\XXX\\img.png");
if (Pict1.Compare(Pict2))
{
Log.Message("Same");
} else {
Log.Message("Not Same");
}
SmartBear Support got me all straightened out. Turns out the URLs in the Name Mapping folder had to be modified to use wildcards as there is dynamic value in the URLs. I was able to create some tests that work great. Not sure if we will go with this package but at least now I can give it a good evaluation. Thanks everyone.