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
Validate ContainsImage PTC Creo 4.0 issue
Re: Validate ContainsImage PTC Creo 4.0 issue
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.
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 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
Re: Validate ContainsImage PTC Creo 4.0 issue
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
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
Hi,
To disable EnsureVisible, right-click the element in question in repo, select Properties and there set EnsureVisible to false: Eventually, do this with all parent folders of given repo element.
To disable EnsureVisible, right-click the element in question in repo, select Properties and there set EnsureVisible to false: 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 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
Re: Validate ContainsImage PTC Creo 4.0 issue
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
Problem was in the UserScript which I used earlier. It contains "use hidden screenshots capturing".