I'm trying to run a desktop test using excel. I have mapped excel via the application path.
When I press record excel opens but I cannot record anything, the recording toolbar does not display.
From my log file;
[09/23 14:10:18,Telerik.TestStudio.exe(19524:16),Recording] RecordViewController.ApplicationLaunched() : Error launching the recorder. Error: Launched desktop application exited.
Can you please advise what the issue may be here.
Thanks
Adrian
Hello Adrian, thank you for contacting us about the encountered issue. I am not sure why the recorder is not launching and I tried to reproduce it on my end. The good news is that I was able to start the application and record several steps. Now, I need to understand what is happening on your end.
Please clear/enable the Test Studio application log and start new recording session against the Excel application. Wait for it to timeout and share the generated log in this thread. If possible, record a short video or gif of the process and attach it here, as well. Thank you!
Hi Plamen,
Here is the log, unfortunately I can't record my screen but basically excel just opens and nothing else happens. No recording toolbar and if you go back to Test Studio the Record button is active again.
[09/27 11:21:32,Telerik.TestStudio.exe(13808:16),Framework] DesktopApplication.Refresh() : EXCEPTION! (see below)Situation: DesktopApplication.Refresh
Outer Exception Type: System.Runtime.InteropServices.COMException
Message: Operation timed out. (Exception from HRESULT: 0x80131505)
HRESULT: 0x80131505 (Official ID (if app.) = COR_E_TIMEOUT, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5381)
Call Stack:
at Interop.UIAutomationClient.IUIAutomationTreeWalker.GetFirstChildElement(IUIAutomationElement element)
at ArtOfTest.WebAii.DesktopAutomation.DesktopElement.<GetChildren>d__44.MoveNext()
at ArtOfTest.WebAii.DesktopAutomation.DesktopFind.<EnumMatches>d__7.MoveNext()
at ArtOfTest.WebAii.DesktopAutomation.DesktopFind.<EnumMatches>d__7.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at ArtOfTest.WebAii.DesktopAutomation.DesktopApplication.Refresh(Int32 depth)
[09/27 11:21:32,Telerik.TestStudio.exe(13808:16),Recording] RecordViewController.ApplicationLaunched() : Error launching the recorder. Error: Launched desktop application exited.
Hi Adrian,
I spent more time to investigate the issue on different machines with no success. After discussing the problem with the rest of our team, we came up with a suggestion that will help us troubleshoot it further. Please create new Desktop test and configure it to record against the built-in Microsoft Calculator app. You can use the Model ID "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" or point to the .exe file. Let me know if the recorder attaches to this application or not.
I am also interested to know what is you exact Windows version and build. It might be relevant to the issue and I will compare it to the different machines I used locally.
Thank you for your update in advance!
Hi Plamen,
Sorry for the long delay on this one.
I used the model ID for the calculator app and it seemed to work ok.
Still cannot record via Excel. Same issue, excel opens but there is no recording toolbar and doesn't record anything I do within excel.
I am on Windows 11 64-bit operating system, x64-based processor
Thanks
Adrian
Hi Adrian,
Thank you for trying with another app and method and letting me know of the outcome. We can get back to the issue with Excel and explore it even further.
My guess is that there is something in the environment, so I tested it on Windows 10 and 11. It was all working as expected, but note that the Excel we have is 32-bit. Although it should not be the cause of the misbehavior, I am interested to know which installation of Excel do you use?
You can try to connect to a running instance of Excel after the test has started. In order for the test to work, you need to do the following:
The above is not a solution, but a workaround, while we continue to explore the underlining issue and gather more details.
Another idea that came to mind is to try to record and execute a Desktop test against Excel on another machine and compare the behavior.
Let me know how it goes and what you observed.
Hi Plamen,
I am having this same issue with my Desktop application testing. I have attempted your suggestions to Adrian.
The recorder will start the Calculator, but no pop-up for recording appears. I've waited 30 seconds, still nothing.
This is the only thing in the log after setting the test to start the Microsoft Calculator:
[11/07 14:15:47,Telerik.TestStudio.exe(22652:19),Recording] RecordViewController.ApplicationLaunched() : Error launching the recorder. Error: Launched desktop application exited.
I attempted to attach a screen recording of it occuring, but attachment type does not allow MP4.
I am on Windows 11 Enterprise / 10.0.22621 Build 22621
Any assistance is greatly appreciated, I just started my 30 day trial today.
Don
Hi Don,
The Windows Calculator application needs to be started with its Application user model id. Thus the desktop test should also be configured using the app id.
I've followed up with additional information for you in the private thread you posted with the same topic. Please, refer to it if you need to continue the conversation.
Thank you in advance for your cooperation!
Regards,
Elena