Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

RSAT test cases failing due to exception

(0) ShareShare
ReportReport
Posted on by 15

Hi everyone,

We are using RSAT to execute our daily tests for our solution in d365 f&o. From time to time, some test cases fail due to this error:

DEBUG INFO: System.TimeoutException: The operation has timed out. at Microsoft.Dynamics.RegressionSuite.TestRunner.PlaybackFromExcel(Paths testCasePaths, Int32 playbackIndex, TimeSpan timeout, Boolean reuseParameterXml)

Checking the trace logs, I can find this error:

An exception happened while attempting to take a screenshot. This usually indicates that there was not an active console session. Exception: System.ComponentModel.Win32Exception (0x80004005): The handle is invalid
at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
at MS.Dynamics.TestTools.TestLogging.ScreenshotHelper.TakeScreenshot(String filename, String message)"

Checking the screenshot taken during failed test, this is the image that appears:
pastedimage1675332503035v1.png

Has anyone else encountered this exception before? What could be root cause for this? This doesn't seem to affect the same tests, every time it's different.

  • hamaro Profile Picture
    hamaro 15 on at
    RE: RSAT test cases failing due to exception

    Rerunning the test cases usually solves the ones that are failing on this exception. Anyone with a experience similar to this error?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans