This is a migrated thread and some comments may be shown as answers.

Test Studio crashes on end of test list

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 26 Jun 2013, 08:27 AM
Hi,

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).

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivaylo
Telerik team
answered on 28 Jun 2013, 01:25 PM
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

Regards,
Ivaylo
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
Tags
General Discussions
Asked by
Aaron
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or