Finding out whether WPF inialization failed

Class library usage, coding and language questions.
SOsterbrink
Posts: 1
Joined: Wed Oct 10, 2018 1:33 pm

Finding out whether WPF inialization failed

Post by SOsterbrink » Wed Oct 10, 2018 1:53 pm

Hi,

I'm currently working on changing some tests of a WPF application that were formerly run under Ranorex 6 to Ranorex 8.1.2. In that change I want to also change to WpfImproved. Most of the stuff was OK and just required me to change the rxPaths. But sometimes I have found the following problem in the log:
Failed to instrument WPF process. UI element identification capabilities for this window are limited.

Could not set-up managed injection endpoint: Bootstrapping Ranorex Instrumentation failed. The injection timed out. Probably the AUT is blocking the UI thread.

If your application is currently in startup state please try to add a delay action to your Ranorex test application before you execute actions on Ranorex elements to give Ranorex the possibility to load correctly into the AUT.
After this the Element Tree is slightly different than normally and as a result about 2% of my rxPaths don't fit anymore.
Sadly this problem seems to be pretty random and the solution of adding wait times as described here inconsistent-failed-to-instrument-wpf-p ... 11988.html works only sometimes.

I have found no way to check the status of the element tree and whether the WPF process failed. Is there any way to check for this fail so that I can add a "wait" until this was successful?

I'm testing under various Windows versions (Server, 7, various 10s)

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Finding out whether WPF inialization failed

Post by Support Team » Fri Oct 12, 2018 2:50 pm

Hello SOsterbrink,

Thank you for reporting your issue.

This issue seems a bit too specific for the forum. I would suggest that you get in contact with us directly via our support query: Ranorex Support

We are looking forward to your ticket.

Sincerely,
Tomaž