Unexpected Exception: System.OutOfMemoryException

6 posts, 0 answers
  1. Alex
    Alex avatar
    4 posts
    Member since:
    Jun 2017

    Posted 19 Oct 2017 Link to this post

    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? 

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    939 posts

    Posted 24 Oct 2017 Link to this post

    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!
  3. Alex
    Alex avatar
    4 posts
    Member since:
    Jun 2017

    Posted 24 Oct 2017 in reply to Elena Tsvetkova Link to this post

    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

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    939 posts

    Posted 27 Oct 2017 Link to this post

    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!
  5. Alex
    Alex avatar
    4 posts
    Member since:
    Jun 2017

    Posted 27 Oct 2017 in reply to Elena Tsvetkova Link to this post

    Hi Elena,

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

    Thanks

    Alex

  6. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    939 posts

    Posted 30 Oct 2017 Link to this post

    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!
Back to Top