Out of memory

12 posts, 0 answers
  1. Nicolas
    Nicolas avatar
    60 posts
    Member since:
    Nov 2010

    Posted 05 Jul 2011 Link to this post

    hello,

    I have run a test that contains 15 steps on a 4000 categories that I recovered from a binding to my database,
    The test
    runs, but after a while it stops and sends me a message error "out of memory"
    is this problem  related to the number of categories?

    Samir
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 06 Jul 2011 Link to this post

    Hi Nicolas,

    Sorry for the late response. It took a lot of time but I've been able to reproduce your problem. I understand this is causing much trouble for you. Test Studio is a little heavy on memory usage and it can cause memory problems.

    In my scenario I'm using Excel datasheet with over 4000 categories and making a google search for every one of them. Meanwhile I'm keeping an eye on the processes in the windows task manager to see the memory used by each one of them. When the count of the iterations have reached about 300, my internet explorer was using over 1GB of RAM. To handle that I added a coded step to recycle the browser after 100 iterations(see the code below).

    static int i=0;
      
            [CodedStep(@"New Coded Step")]
            public void WebTest1_CodedStep()
            {            
                i++;
      
                if (i == 100)
                {
                    this.ActiveBrowser.Close();  
                    this.Manager.LaunchNewBrowser();  
                    this.Manager.ActiveBrowser.WaitUntilReady();  
                    i = 0;
                }
            }

    This scenario is working fine with me, but you have to let me know what is yours and I'll try to figured out a workaround for you.

    Please also check that you have enough space available on the PC you are using to run the test.

    Regards,
    Plamen
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  3. Nicolas
    Nicolas avatar
    60 posts
    Member since:
    Nov 2010

    Posted 06 Jul 2011 Link to this post

    Hello,
    Thank you for your reply
    My test consists of 15 steps,
    I would like to know where I should add this step code that you sent me on my test,
    at the beginning or end of the test
    If you want I can send you my test
    Best Regards
    Samir
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 06 Jul 2011 Link to this post

    Hi Nicolas,

    You can set that coded step as either the very first step or the very last step. it does not matter. Obviously don't put it in the middle of your test.

    All the best,
    Cody
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  5. Nicolas
    Nicolas avatar
    60 posts
    Member since:
    Nov 2010

    Posted 08 Jul 2011 Link to this post

    Hello,
    I think that the problem is not there, because my test is finished runing, but it can not generate a log file results, so the problem is on that.
    I noticed this problem occurs when I turned my test on a large volume of data
    What is the solution for this, please?
    Attached , the  zipped  log file that contains the error message !
    Kinds Regards
    Samir
  6. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 08 Jul 2011 Link to this post

    Hi Nicolas,

    Sorry that this problem still persist. To be able to assist you diagnose this problem I need the following additional pieces of information:
    1. How do you run your test? Are you running the test from test list or quick execution? We strongly recommend tests with large amount of data to be executed from test list.
    2.What version of .Net framework are you using? Test Studio is build against .NET Framework 3,5(try with this version).
    3. Are there many failing tests in your execution? 

    Best wishes,
    Plamen
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  7. Nicolas
    Nicolas avatar
    60 posts
    Member since:
    Nov 2010

    Posted 08 Jul 2011 Link to this post

    Hello,

    1 - my test is run on a remote server, using the  execution scheduling server ,
        And it is run from a list of tests
    2 - the version of. Net framwork used is 3.5
    3 - The number of test failures, I do not know by what my test since I get an error on the test execution log file on the results
    and not
    test results
    Best regards

    Samir
  8. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 12 Jul 2011 Link to this post

    Hi Nicolas,

    I wasn't aware of the fact that you are using a remote execution. Finally I've been able to make the exact reproduction of your problem and confirmed it is a bug. You can track the PITS issue here.

    Meanwhile you can use a workaround for this problem. You have to take your result file from the server and load it locally. To do that navigate to the test execution folder on the server(see screenshot1) and copy the .aiiresult file, than return back to your local machine and paste the .aiiresult file in your project's "Results" folder. Go ahead and open the project with Test Studio select "Results" from the main menu and click "Reload" button (see screenshot2). Now you should be able to see your results.

    Please let me know if you have any further questions.

    Kind regards,
    Plamen
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  9. Nicolas
    Nicolas avatar
    60 posts
    Member since:
    Nov 2010

    Posted 27 Jul 2011 Link to this post

    hello,

    I received this errors after the end of execution of my test :

    ------------------------------------------------------------
    '7/27/2011 9:52:30 AM' - Starting execution....
    '7/27/2011 9:52:36 AM' - Detected custom code in test. Locating test assembly: TestProjectReferencementsPrioritaires.dll.
    '7/27/2011 9:52:36 AM' - Assembly Found: C:\Temp\Results\Testreferencementprioritaire - 129562267473413088\bin\TestProjectReferencementsPrioritaires.dll
    '7/27/2011 9:52:36 AM' - Loading code class: 'TestProjectReferencementsPrioritaires.WebTest_RefPrio'.
    '7/27/2011 12:25:46 PM' - Failure detected during execution. Details:
    ------------------------------------------------------------
    '7/27/2011 12:25:46 PM' - System.ArgumentException: Parameter is not valid.
       at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
       at System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height)
       at System.Drawing.Bitmap..ctor(Image original)
       at ArtOfTest.Common.Win32.Window.GetBitmap()
       at ArtOfTest.WebAii.Design.AutomationHostState.FromBrowser(Browser browser, BrowserStateCaptureMode mode)
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHostState(IAutomationHost host, BrowserStateCaptureMode captureMode)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance, Boolean& stopExecution)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteDataDrivenTest(Test test, BaseWebAiiTest codeInstance)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
       at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
    ------------------------------------------------------------
    '7/27/2011 12:25:46 PM' - Test completed!

     Best Regards

  10. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 27 Jul 2011 Link to this post

    Hi Nicolas,

    The problem here is that your screen is probably locked or the UI session is missing at all.

    For example if you have a "Capture Desktop" step and the screen is locked, the image of the desktop might not exist anywhere! The way drawing traditionally works in the Windows operating system is that the operating system asks each window to paint itself when needed. 

    Hope this helps! 

    Kind regards,
    Plamen
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  11. Nicolas
    Nicolas avatar
    60 posts
    Member since:
    Nov 2010

    Posted 03 Aug 2011 Link to this post

    Hello,

    thank you very much for your solution,, but I see it not solve my problem,
    Can you  investigate more about this problem , it is very important to me, I work on these important tests volumetries

    tohank's
  12. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 04 Aug 2011 Link to this post

    Hi Nicolas,

    Do you always get this error when executing test lists? If you execute your test list locally is it failing? Try to create one simple test (against google for instance), create a test list with this test in it, and execute it on the server. Do you get the same error? Please attach the result!

    Also make sure that at the time of the execution, your machine is in a totally unlocked/interactive state.(no screen saver, not locked, not in a sleep mode, etc. ) Most tests need to be run in interactive mode so that they can get to use the mouse actions and keyboard actions and read images from the screen.

    I look forward for your response.

    Greetings,
    Plamen
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
Back to Top