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:
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.
Rerunning the test cases usually solves the ones that are failing on this exception. Anyone with a experience similar to this error?
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156