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

OutOfMemory Issues when running test with relatively large data set

1 Answer 272 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 25 Nov 2013, 05:22 PM
Hello,

I'm new to this product and these forums so please bare with me :)  I have been consistently experiencing OutOfMemoryException issues when I run my script...I don't believe I have done anything out of the ordinary so I'm a little frustrated as this is my trial run and it's not going so well.

Notes
Executing Script from TestStudio standalone
roughly 720 rows are binded to MainTest
While Script is running, ArtOfTest.Runner.exe is exceeding 1,200,000 K in Memory...
Script is ran against IE 10
I have also used the 'Reuse App Window' property (changed from 0 to 50 and even tried 10 and still does not help memory leak)

Version
Build version is '2013.1.911.0'


Stacktrace
 ------------------------------------------------------------
'11/25/2013 12:05:19 PM' - Using .Net Runtime version: '4.0.30319.1008' for test execution. Build version is '2013.1.911.0'.
'11/25/2013 12:05:19 PM' - Starting execution....
'11/25/2013 12:05:22 PM' - Detected custom code in test. Locating test assembly: TestProject3.dll.
'11/25/2013 12:05:22 PM' - Assembly Found: C:\Users\mmanderachia\Documents\Test Studio Projects\HDUS\bin\TestProject3.dll
'11/25/2013 12:05:22 PM' - Loading code class: 'TestProject3.Main'.
'11/25/2013 12:21:26 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'11/25/2013 12:21:26 PM' - System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Text.StringBuilder.ExpandByABlock(Int32 minBlockCharCount)
   at System.Text.StringBuilder.Append(Char* value, Int32 valueCount)
   at System.Text.StringBuilder.AppendHelper(String value)
   at System.Text.StringBuilder.Append(String value)
   at ArtOfTest.WebAii.Design.Execution.TestResult.AddDataIterationResult(DataIterationResult result)
   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(ExecuteTestCommand command)
------------------------------------------------------------
'11/25/2013 12:21:29 PM' - Test completed!


Script
Here is how the script is structured...
Main Test (binded to Database) 
-> calls subTest
SubTest
->navigates to Url
->check if an element exists
->assert true/false


MainTest
// Execute test 'Verification'
           try{
           ExecuteTest("C:\\pathhToTest");
           }catch(NullReferenceException e){
           Log.WriteLine("NullRef");
           }catch(TimeoutException t){
           Log.WriteLine("Timeout exception....");
           }

SubTest
[CodedStep(@"Navigate to vanity url]")]
       public void SubTest_CodedStep()
       {
           // Navigate to : 'http://- DataDriven: [$(Vanity)].com/' - DataDriven: [$(test)]
           String vanity = ((string)(System.Convert.ChangeType(Data["Vanity"], typeof(string))));
           String fullUrl = "http://" + vanity + ".qasb5.com";
           Log.WriteLine("NAVIGATING TO: " + fullUrl);
           ActiveBrowser.NavigateTo(fullUrl, false);
 
       }
 
       [CodedStep(@"Verify element 'DealerLogoPanelDiv' 'is' visible.")]
       public void Verification_CodedStep()
       {
           // Verify element 'DealerLogoPanelDiv' 'is' visible.
           Log.WriteLine("starting test findDealerLogo");
           HtmlFindExpression expr = new HtmlFindExpression("id=~DealerLogoPanel");
 
           ActiveBrowser.WaitForElement(expr, 4000, false);
           Element e1 = ActiveBrowser.Find.ByExpression(expr);
           HtmlControl ctrl = new HtmlControl(e1);
           Assert.IsTrue(ctrl.IsVisible());
 
       }




I hope I provided enough information and would appreciate any help!
Mario

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 28 Nov 2013, 04:00 PM
Hello Mario,

I am sorry to hear for the problem you are experiencing.
Since this is a memory issue the best course of actions here is to have this reproduced on our side. This way we can investigate this in our debugging environment.
Is there a way you can provide us with the project so we can proceed? If you decide to do so please make sure you open  a support ticket instead of forum thread where all the information provided remains confidential.

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