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
Hi,
> Does partial mapping work even if the object may be located in different places of the page?
Yes it does. Via the Extended Find functionality (http://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/managing/modifying/extended-search-criteria.html). (Note, that for the performance reasons the more close to the expected location of the sought for object the search is started the better.)
https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/ from the https://support.smartbear.com/screencasts/testcomplete/ page might be useful as well.