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

Unexpected Exception: System.OutOfMemoryException

5 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 19 Oct 2017, 09:49 PM

There is a code that clicks left mouse button 500 times on the specific control on the web page, approximately after 300 clicks, out of memory exception is been thrown.

Code is:

 for (int i = 0; i<500; i++ ){
                 Pages.Journey2.ITag.MouseClick(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 0, 0, ArtOfTest.Common.OffsetReference.AbsoluteCenter);
                 CommonUtilities.sleep(100);
                 Assert.IsTrue(ArtOfTest.Common.CompareUtils.StringCompare(Pages.Journey2.WeightValue.Value, ""+(396+(i+1)), ArtOfTest.Common.StringCompareType.Exact));
            }

Getting Telerik.TEstingFramework.Hosts.Manager has stopped working

Unexpected Exception: System.OutOfMemoryException

Unhandled Exception: OutOfMemoryException.

 

Any Ideas? suggestions? 

5 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 24 Oct 2017, 01:48 PM
Hi Alex,

Thank you for reaching us out. 

I reviewed the provided details and here are my comments. First of all I would like to know which is the browser you are executing the test against? 

As far as I could understand after the click is performed there is something changed on the page which value you need to verify. Please let me know if this is not correct. I noticed you have also included a delay before the assert statement - would it be possible to increase that to a second or two and double check what the behavior would be? 

Please find some possible solutions how to deal with a SystemOutOfMemory exception here. You could give a try to the last one in case the above action does not change anything. 

If there is still no change I would like to kindly ask you for a sample test against public accessible page which reproduces the same behavior. I would like to test that scenario on my end and prepared the simplest possible scenario as per the description. Though it ran successfully. 

Thank you in advance for your cooperation! I am looking forward to hearing from you! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Alex
Top achievements
Rank 1
answered on 24 Oct 2017, 03:08 PM

Using Chrome 61.0.3163.100 (Official Build) (64-bit).

There is a spinner and pressing on arrow increasing the value by 1.

I'll try to grant you an access to our application to reproduce on your end

Thanks

Alex

0
Elena
Telerik team
answered on 27 Oct 2017, 09:42 AM
Hi Alex,

Thank you for your cooperation. 

I am looking forward to hearing from you once you could allow us access to the application. Please also let me know if you have tried increasing the execution delay and if this changed the behavior. 

Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Alex
Top achievements
Rank 1
answered on 27 Oct 2017, 05:51 PM

Hi Elena,

can you send me your email address and I'll send you an url to our application

Thanks

Alex

0
Elena
Telerik team
answered on 30 Oct 2017, 03:14 PM
Hi Alex,

Thank you for your cooperation! 

Please note that the official communication channel is the current ticketing system. I double checked your account and noticed you are a licensed user. Though the license is probably not associated to the account you are submitting tickets from. If you use the licensed account the threads will be private in order to share confidential information and the response time will be significantly decreased as well. 

Could I kindly ask you to proceed that way? Of course, if this would be quite time consuming for now we could use an email as a last resort to share internally the webpage. 

I am looking forward to hearing from you! Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Elena
Telerik team
Alex
Top achievements
Rank 1
Share this question
or