Validate ContainsImage PTC Creo 4.0 issue

Bug reports.
ChrisN.
Posts: 32
Joined: Wed Jul 25, 2018 11:38 am
Location: Germany

Validate ContainsImage PTC Creo 4.0 issue

Post by ChrisN. » Thu Dec 19, 2019 12:20 pm

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5459
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Validate ContainsImage PTC Creo 4.0 issue

Post by odklizec » Thu Dec 19, 2019 12:36 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ChrisN.
Posts: 32
Joined: Wed Jul 25, 2018 11:38 am
Location: Germany

Re: Validate ContainsImage PTC Creo 4.0 issue

Post by ChrisN. » Fri Dec 20, 2019 11:04 am

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5459
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Validate ContainsImage PTC Creo 4.0 issue

Post by odklizec » Fri Dec 20, 2019 12:19 pm

Hi,

To disable EnsureVisible, right-click the element in question in repo, select Properties and there set EnsureVisible to false:
EnsureVisible.png
EnsureVisible.png (8.59 KiB) Viewed 73 times
Eventually, do this with all parent folders of given repo element.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ChrisN.
Posts: 32
Joined: Wed Jul 25, 2018 11:38 am
Location: Germany

Re: Validate ContainsImage PTC Creo 4.0 issue

Post by ChrisN. » Mon Jan 06, 2020 9:35 am

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.

ChrisN.
Posts: 32
Joined: Wed Jul 25, 2018 11:38 am
Location: Germany

Re: Validate ContainsImage PTC Creo 4.0 issue

Post by ChrisN. » Mon Jan 06, 2020 1:04 pm

Problem was in the UserScript which I used earlier. It contains "use hidden screenshots capturing".