Page 1 of 1

Validate ContainsImage PTC Creo 4.0 issue

Posted: Thu Dec 19, 2019 12:20 pm
by ChrisN.
Hello, I have some issue in the Ranorex image validation. I try to validate the Image in PTC Creo 4.0. Its a simple 2D draw. I can take a screenshot of the Workspace without problems. If i try to validate a picture, the drawing disapere for milliseconds. The Workspace is on updating in this time an I get just a background without drawing.
In Ranorex version 8.0 or 9.0 I deactivated the option "Use hidden screenshot capturing" to solve this problem. In version 9.2, 9.21 this works not every time.


Thank you

Ranore Version 9.2.1
Windows 10

Re: Validate ContainsImage PTC Creo 4.0 issue

Posted: Thu Dec 19, 2019 12:36 pm
by odklizec
Hi,

I'm afraid, this kind of issue is not solvable without actually seeing the problem. The only thing I can recommend is to try to add a short delay, before validating image. Just to avoid element redrawing issue.

Also, have you tried to reproduce the problem on another PC? And does the issue (element redrawing) happen as a result of a Ranorex action or does the element redraw periodically?

One more thing you can try is to disable "Ensure Visible" parameter of given repo element (in repo element parameters). This should disable potential element redraws caused by Ensure Visible action invoked on given element.

Re: Validate ContainsImage PTC Creo 4.0 issue

Posted: Fri Dec 20, 2019 11:04 am
by ChrisN.
Thank you very much for the fast answer. Unfortunately I have no possibility to test it on other PC because of strict security limitation.
The new drawing of the Image hapens if Ranorex try Validate the screenshot, just in this part. Delay dont solve this issue. If I make a screenshot or some other actions in Usercode I no have problems.
Can you please post the method to deactivate the "Ensure Visible" in the settings.
I will try to test it in the next year :)

Thanks a lot
Chris

Re: Validate ContainsImage PTC Creo 4.0 issue

Posted: Fri Dec 20, 2019 12:19 pm
by odklizec
Hi,

To disable EnsureVisible, right-click the element in question in repo, select Properties and there set EnsureVisible to false:
EnsureVisible.png
Eventually, do this with all parent folders of given repo element.

Re: Validate ContainsImage PTC Creo 4.0 issue

Posted: Mon Jan 06, 2020 9:35 am
by ChrisN.
Hello, unfortunately it does not work for me. The problem lies in the combination of Creo 4.0, SAP and another application that uses the connection. It is strange because the simple screenshot works well. I tried to disable the connection but it doesn't work.

Re: Validate ContainsImage PTC Creo 4.0 issue

Posted: Mon Jan 06, 2020 1:04 pm
by ChrisN.
Problem was in the UserScript which I used earlier. It contains "use hidden screenshots capturing".