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