Test Studio crashes on end of test list

2 posts, 1 answers
  1. Aaron
    Aaron avatar
    28 posts
    Member since:
    May 2012

    Posted 26 Jun 2013 Link to this post


    we encounter problems with tests executed in a test list. For some unknown reason the application crashes sometimes when the execution of a test list ends. A window to "Save/Restart", "Save" or "Exit" Test Studio is displayed. I attached the exception from the log file. Maybe the issue is related with our high result count (which is 851).
  2. Answer
    Ivaylo avatar
    782 posts

    Posted 28 Jun 2013 Link to this post

    Hello Aaron,

    Yes it seems that you are experiencing this issue due to the large number of results you have, as it can be seen from the log provided:

    [06.26 10:18:31,Telerik.TestStudio.exe(356:1),Uncategorized] MainWindow.LogMessage() : Loading '851' results..
    [06.26 10:18:52,Telerik.TestStudio.exe(356:1),Error] App.LogUnhandledException() : EXCEPTION! (see below)
         Situation: Unhandled exception!
         Outer Exception Type: System.ArgumentException
         Message: Parameter is not valid.
         HRESULT: 0x80070057 (Official ID (if app.) = E_INVALIDARG, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = ERROR_INVALID_PARAMETER)
         Call Stack:
              at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
              at System.Drawing.Image.Save(Stream stream, ImageFormat format)
              at ArtOfTest.WebAii.Design.Utils.BitmapToBinary(Bitmap bitmap)
              at ArtOfTest.WebAii.Design.ProjectModel.RunResultNode..ctor(FileBasedNodeCollection parent, String path, RunResult result)
              at ArtOfTest.WebAii.Design.ProjectModel.ResultsFolderNode.Refresh(Boolean partialLoad)
              at ArtOfTest.WebAii.Design.ProjectModel.ResultsFolderNode.Refresh()
              at ArtOfTest.WebAii.Design.ProjectModel.ResultsFolderNode.get_LatestResults()
              at ArtOfTest.WebAii.Design.UI.ResultsViewerControl.AddLatestResults(Int32 count, String listName)
              at ArtOfTest.WebAii.Design.UI.ResultsViewerControl.<>c__DisplayClass2c.<host_TestListExecutionCompleted>b__2a()
              at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
              at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    In order to overcome this issue please move the results in another folder and empty the current one, this way you will have your old results for further references and most probably you will not experience the problem

    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
Back to Top