Desktop Test - Excel

0 Answers 133 Views
Test Recording
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
Adrian asked on 23 Sep 2022, 05:34 AM

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

Plamen Mitrev
Telerik team
commented on 26 Sep 2022, 09:08 AM

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!

Adrian
Top achievements
Rank 2
Iron
Iron
Iron
commented on 27 Sep 2022, 01:55 AM

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.
Plamen Mitrev
Telerik team
commented on 28 Sep 2022, 01:06 PM

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!

Adrian
Top achievements
Rank 2
Iron
Iron
Iron
commented on 22 Mar 2023, 04:39 AM

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

Plamen Mitrev
Telerik team
commented on 24 Mar 2023, 01:17 PM

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:

  1. Configure your test to start a dummy application, like the Microsoft Calculator
  2. Add a coded step to launch Excel -> Manager.LaunchNewApplication(@"fullPathToApplicationExecutable");
  3. Connect to that application with the built-in step from the Step Builder

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.

Don
Top achievements
Rank 1
commented on 07 Nov 2023, 08:19 PM

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

Elena
Telerik team
commented on 09 Nov 2023, 09:53 AM

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

No answers yet. Maybe you can help?

Tags
Test Recording
Asked by
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or