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

Announcements

No record found.

News and Announcements icon
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.

  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 475 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 399 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 374

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans