Forum Discussion

arybalka's avatar
arybalka
Occasional Contributor
8 years ago

Is it possible to make a region checkpoint without mapping an object?

Hi every one, I am new in TestComplete testing, please advise how to solve my problem or a workaround.

 

I prepare a bench of tests with region checkpoints using Object Spy. It is mapping my objects with related images in Regions and compare it with found images during the execution. It is working perfectly in env A(http://A.mysite.com/...), but when I am changing the env to B(http://B.mysite.com/...) all my test are failed since the url is not any more the same and mapping is failed. In addition the html of env A and B some times is different and the path panel three is different too. (Regions.MySite.Check(Aliases.browser...........................form.panel.panel.panel.panel.panel.panel, false, false, 2090, 8);

 

My desired solution: I would like to find myObject on the page using html tags(page.NativeWebObject.Find(propertyName, propertyValue, tag)), save the image of that object and compare it with retrieved image during the execution.

I don't undurstand how to do that.

Brief:

I need the script for three functions

1) How to get the image of myObject

2) How to save the image of myobject somewhere for the future checkpoint?

3) How to compare saved image with newly retrieved during the execution.

I am using JavaScript

 

Thank you