Invocation did not finish within the timeout of '00:00:10'.

Ask general questions here.
praneet
Posts: 38
Joined: Thu Nov 08, 2018 2:22 am

Invocation did not finish within the timeout of '00:00:10'.

Post by praneet » Fri Oct 04, 2019 10:26 am

Hi,

I am automating the desktop application.The application is getting launched and login page is getting opened.Though Username textbox is visible on the screen,Ranorex is not able to identify the username textbox and is throwing the below error:

Invocation did not finish within the timeout of '00:00:10'.

I have increased the functionexecutiontimeout to 10000ms from 5000ms, in Ranorex.rxsettings file,but still the issue is not yet resolved

<adapter.functionexecutiontimeout>
10000ms
</adapter.functionexecutiontimeout>

Can anyone help me out in fixing this.

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

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by odklizec » Fri Oct 04, 2019 10:37 am

Hi,

Have you tried to increase the timeout even more? Try something like 30000ms or even 60000ms. Also, with what action exactly it fails? Could you please post a screenshot of your recording, with failing action? A Ranorex Snapshot and exact xpath behind the failing element would be nice too.
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

praneet
Posts: 38
Joined: Thu Nov 08, 2018 2:22 am

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by praneet » Fri Oct 04, 2019 11:03 am

Login_20_6cc73f8b_70aa01ce_trace.jpg
Ranorex Log

0:00.000 Warn Data

The following module variables are not bound to a data column:
Username, Password
00:00.000 Info Application

Run application 'C:\Program Files (x86)\land\Unity Client\' in normal mode. Return value bound to $.
00:00.000 Info Wait

Waiting 5s to exist. Associated repository item: 'OpenAnAppEnablerConfigurationFile'
00:00.000 Info Mouse

Mouse Left Click item 'OpenAnAppEnablerConfigurationFile.Close' at Center.
Screenshot
00:00.000 Info Mouse

Mouse Left Click item 'Window.txt_UserName' at Center.
Screenshot
00:00.000 Error Module
Jump to item View Help

Invocation did not finish within the timeout of '00:00:10'.
Show/Hide Stacktrace
at Ranorex.Core.FunctionExecuteWithTimeout.TryExecute[T](Func`1 func, TimeSpan timeout) at Ranorex.Core.FunctionExecuteWithTimeout.WithTimeout[T](Func`1 func, Nullable`1 timeout) at Ranorex.Plugin.WpfRootRule.TryAddWpfRootToElementEngine(WpfAutomationWrapper proxy, Win32FlavorElement candidate, GlueRuleExecutionState state) at Ranorex.Plugin.WpfRootRule.AddWpfNative(GlueRuleExecutionState state) at Ranorex.Plugin.WpfRootRule.Execute(GlueRuleExecutionState state) at Ranorex.Core.ElementEngine.ApplyGlueRules(Element element, GlueRuleExecutionStateImpl state, Boolean includeRemotes) at Ranorex.Core.ElementEngine.ApplyReplaceGlueRulesOnSingleRecentlyInsertedElement(Element parentElement, GlueRuleExecutionStateImpl state, GlueRuleExecutionStateImpl replaceState, Element recentlyInsertedElement) at Ranorex.Core.ElementEngine.ApplyReplaceGlueRulesOnRecentlyInserted(Element element, GlueRuleExecutionStateImpl state) at Ranorex.Core.ElementEngine.ApplyGlueRules(Element element, GlueRuleExecutionStateImpl state, Boolean includeRemotes) at Ranorex.Core.ElementEngine.ApplyGlueRules(Element element, Boolean includeRemotes) at Ranorex.Core.Element.GetChildren(CacheSession session) at Ranorex.Core.Element.get_Children() at Ranorex.Core.RxPath.collectAxis(LocationStep step, Axis optimizedAxis, Element self, IList`1 elements, Boolean quitOnFirstGoodNode) at Ranorex.Core.RxPath.ApplyInternal(RxPath path, Element startElement, Duration timeout, Boolean findSingle, CacheSession& usedCacheSession, PathDiagnostics& pathDiagnostics) at Ranorex.Core.RxPath.Apply(Element startElement, Duration timeout, Boolean findSingle, CacheSession& usedCacheSession, PathDiagnostics& pathDiagnostics) at Ranorex.Core.Element.TryFindInternal(RxPath path, Duration timeout, Boolean findSingle, IList`1& foundElements, CacheSession& usedCacheSession, Duration& elementSearchTime, Int32& iterations) at Ranorex.Core.Repository.RepoItemInfo.FindInternal[T](Boolean findSingle, Boolean throwException, Duration effectiveTimeoutOverride) at Ranorex.Core.Repository.RepoItemInfo.<>c__DisplayClass75_0`1.<Find>b__0() at Ranorex.Core.Testing.Services.NoMaintenanceModeService.HandleElementNotFound[T](Func`1 action, RepoItemInfo entry) at Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException, Duration effectiveTimeoutOverride) at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException, Duration waitTimeout) at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException) at OnClient.OnUnityClientRepositoryFolders.WindowAppFolder.get_txt_UserName()
You do not have the required permissions to view the files attached to this post.

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

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by odklizec » Fri Oct 04, 2019 11:42 am

Hi,

Thanks for the screenshot. Unfortunately, the app covers the action table, so it's impossible to see the actions inside. Also, have you tried to increase the execution timeout to 30 or 60s? And please post also the snapshot. Thanks.
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

praneet
Posts: 38
Joined: Thu Nov 08, 2018 2:22 am

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by praneet » Wed Oct 09, 2019 5:09 am

Hi,
PFA .The issue is as my desktop application is a WPF application Ranorex is unable to identify the elements.
I tried troubleshooting it but no luck.
WPFIssue.png
Can anyone please let me know how to track the elements in a WPF application.
When I am trying to track the elements ,ranorex studio is getting hanged and is not responding.
I am running my ranorex studio and AUT as administrator. :(
You do not have the required permissions to view the files attached to this post.

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

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by odklizec » Wed Oct 09, 2019 7:25 am

Hi,

I'm afraid, that this kind of issue could not be solved without Ranorex support assistance and without examining your app under test. I would suggest to contact Ranorex support via support form, available here:
https://www.ranorex.com/support-query/
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

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

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by Support Team » Fri Oct 11, 2019 10:08 am

Hello praneet,

May I ask which Ranorex version are you currently using? If you don't use the newest version please upgrade Ranorex. Also, please start Ranroex and your application with the same user (for example as administrator). If this doesn't help I please create a support ticket (as odklizec suggested), so that we can analyze the issue in more detail.

Online Support ticked: https://www.ranorex.com/support-query/

Regards,
Bernhard

praneet
Posts: 38
Joined: Thu Nov 08, 2018 2:22 am

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by praneet » Fri Oct 11, 2019 11:45 am

Hi,

I am using 9.1 version until my client insists i cant upgrade to newer version.

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

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by Support Team » Mon Oct 14, 2019 11:09 am

Hello praneet,

did you try if starting Ranroex and your application as administrator helps?

Regards,
Bernhard

praneet
Posts: 38
Joined: Thu Nov 08, 2018 2:22 am

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by praneet » Fri Oct 25, 2019 4:07 am

Yes I have tried running my application and Ranorex "Run as administrator" mode.

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

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by Support Team » Thu Oct 31, 2019 8:20 am

Hello praneet,

would you mind creating a support ticket?
Online Support ticked: https://www.ranorex.com/support-query/

Regards,
Bernhard

Rishikesh11
Posts: 1
Joined: Thu Jun 11, 2020 9:54 am

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by Rishikesh11 » Thu Jun 11, 2020 10:01 am

Hi Praneet,

I was facing same issue previously. I am also working on desktop application.
getting this issue while selecting the tab on application.
i resolved this issue by increasing the <functionexecutiontimeout>..
old timeout - 5000
new timeout - 30000

It has worked fine for me.

Regards,
Rishi

ssanthipriya
Posts: 1
Joined: Fri Jul 16, 2021 4:12 pm

Re: Invocation did not finish within the timeout of '00:00:10'.

Post by ssanthipriya » Fri Jul 16, 2021 4:27 pm

Hi Rishi,

I am also facing the same issue with desktop application. I am planning to implement your solution by increasing the <functionexecutiontimeout>. It would be great and helpful if you could elaborate me how to do the settings-either at solution level or in xml?

Thanks
Santhipriya