web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

RSAT test cases failing due to exception

(0) ShareShare
ReportReport
Posted on by 16

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.

I have the same question (0)
  • hamaro Profile Picture
    16 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans