Hello,
Is there any way to handle by validate or exist methods a WPF desktop app window which is not responding?
I have tried to use both exist and validate methods, but it seems that Ranorex is trying to find elements in loop and it does not continue to next step or fail the test(timeouts are set).
Is there any possible workaround for this kind of issue?
Handling a not responding WPF app
- RobinHood42
- Posts: 324
- Joined: Fri Jan 09, 2015 3:24 pm
Re: Handling a not responding WPF app
Hi,
I'm not exactly sure what you want to achieve, but primarily I'd concentrate on the fact that your AUT is not responding.
Additionally, please add more information to your posting, so people can get a short overview what exactly your plan is and add also details which might be also related to the problem.
Cheers
I'm not exactly sure what you want to achieve, but primarily I'd concentrate on the fact that your AUT is not responding.
Additionally, please add more information to your posting, so people can get a short overview what exactly your plan is and add also details which might be also related to the problem.
Cheers
Re: Handling a not responding WPF app
While my automation test is in progress, in some cases the application which is being tested is not responding.
This problem occurs only while Ranorex is executing the test and this error never happend when test was executed manually.
CloseRegistrationWizard is a button[@visible='true' and @enabled='true' and index()=4]
While the application is hang Ranorex is stuck at the current action and cannot proceed further.
I have tried many ways to solve this problem but could not find any workaround.
This problem occurs only while Ranorex is executing the test and this error never happend when test was executed manually.
CloseRegistrationWizard is a button[@visible='true' and @enabled='true' and index()=4]
While the application is hang Ranorex is stuck at the current action and cannot proceed further.
I have tried many ways to solve this problem but could not find any workaround.
Re: Handling a not responding WPF app
Hi,
Could you please check in repo properties what's the "Effective Timeout" of given element? Also, have you try to use Shift-Pause shortcut to skip the Search timeout?
My guess is that one of the attributes (@visible='true' and @enabled='true' and index()=4) is not fulfilled and therefore, Ranorex keeps searching for the element. However, it should definitely end searching and throw an error once the element is not found during "Effective Timeout".
Could you please check in repo properties what's the "Effective Timeout" of given element? Also, have you try to use Shift-Pause shortcut to skip the Search timeout?
My guess is that one of the attributes (@visible='true' and @enabled='true' and index()=4) is not fulfilled and therefore, Ranorex keeps searching for the element. However, it should definitely end searching and throw an error once the element is not found during "Effective Timeout".
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: Handling a not responding WPF app
Efective timeout for the given element is set to 1m.
Also the Shift-Pause does not work when this situation occur (tested from keyboard and on-screen keyboard).
Also the Shift-Pause does not work when this situation occur (tested from keyboard and on-screen keyboard).
- RobinHood42
- Posts: 324
- Joined: Fri Jan 09, 2015 3:24 pm
Re: Handling a not responding WPF app
Hi,
Since this problem seems to be only occuring when automating your application with Ranorex, I'd suggest getting in touch with their support team. I'm sure on of the guys there will arrange a remote session with you.
Cheers,
Robin
Since this problem seems to be only occuring when automating your application with Ranorex, I'd suggest getting in touch with their support team. I'm sure on of the guys there will arrange a remote session with you.
Cheers,
Robin