Telerik Forums
Test Studio Forum
1 answer
266 views
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
Ivaylo
Telerik team
 answered on 28 Nov 2013
2 answers
93 views
Good day,
While am recording a test case, one of the steps is to connect to HTML popup,, the issue is every time am running the test case the HTML popup will take different delay time to open,, I tried to use "Execution delay" step & "WaitUntilReady" but still can't handle the time,, and there is no estimated time that how long the HTML dialog need time to open.
I would like to ask if there is a way to wait the HTML dialog when open...??


Please advice,,

Thanks,
Mahdi
Velin Koychev
Telerik team
 answered on 28 Nov 2013
1 answer
450 views
We're working on a rather large regression test suite.  We've decided we want to use a dynamic list to run the tests that are completed.  We can use something as simple as adding "ready" to a custom test property.  However, we've already completed a few hundred tests.  Is there some expedient way to edit the properties of multiple tests at the same time?  Or, is there a better way for us to dynamically determine what test are ready to run?

Thanks
Ivaylo
Telerik team
 answered on 28 Nov 2013
6 answers
106 views
I just downloaded the 30 day trial version of Test Studio to determine if we will be able to use this tool with our non-programmer QA staff.  This will be to test our ASP.NET application - which makes thorough use of Telerik's ASP.NET tools (latest 2013 Q3 version)

So I recorded my first test, which is to login, nagivate to an entry form, and then work through the prompts until save.  About 10 or 15 total steps.

It seems to replay the login stuff and anywhere where I am navigating, entering values in RadTextbox controls or clicking on RadButtons. It even seems to pick up the selection of items in a RadGrid.  However when I hit a RadCombobox it stops working.

If it is helpful the RadComboboxes in question use Content Templates to show the options and are loaded via AJAX, one after the other.

I am a complete novice with Test Studio, but very familiar with Telerik's ASP.NET toolset - have spent a couple of hours fussing around and looking through online documentation, but not sure exactly what to try next.   I don't know how to insert a WAIT line in the recorded steps, and my initial attempts to write code into the step to select a specific value have not worked...  

Any pointers or online resources that address this scenario?
Cody
Telerik team
 answered on 27 Nov 2013
1 answer
65 views
I have been unable to find a way to get test studio to recognize and handle IE10 notification bars, specifically for download.  Have I just missed something obvious?

I've tried using the DownloadDialogsHandler with no success.

Thanks for any help!

Drew
Rodney
Telerik team
 answered on 26 Nov 2013
5 answers
78 views
Hello Team,
i am trying to run my run my test case , and when run test case from telerik test explorer it works fine.
but when bind it to TFS its not working. and shows such errors:

Overall Result: Fail------------------------'12-11-2013 14:01:42' - Using .Net Runtime version: '4.0.30319.18052' for test execution. 

'12-11-2013 14:01:42' - Starting execution....
 - Detected a Silverlight Test. Setting EnableSilverlight=True'12-11-2013 14:01:48' 

- Detected custom code in test. Locating test assembly: Test Project.dll.

'12-11-2013 14:01:48' - Assembly Found: C:\Builds\15\AutomatedTesting

Thanks in advance
Ivaylo
Telerik team
 answered on 25 Nov 2013
4 answers
130 views
Hi,

I'm trying to find out how many nodes are in a tree view and for this i'm using the following code:

var myApp= Pages.TelerikTreeViewFor.SilverlightApp;
Telerik.WebAii.Controls.Xaml.RadTreeView tree= myApp.XTreeViewRadtreeview;
tree.InvokeMethod(new AutomationMethod("ExpandAll", typeof(void)));
 
IList<Telerik.WebAii.Controls.Xaml.RadTreeView> items = tree.Find.AllByType<Telerik.WebAii.Controls.Xaml.RadTreeView>();
 
int nrNodes= items.Count();
Log.WriteLine("Number of nodes: "+ nrNodes);

The number of nodes i get in 0.
I'm runnig this code for: http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate
Am i doing something wrong?
Can someone give me another example of how can i know the number of nodes in a treeview?

Thanks !
Andrei
Top achievements
Rank 1
 answered on 25 Nov 2013
1 answer
80 views
I'm looking into an issue for our QA involving Chinese characters not showing up properly in the script that is running. I am pretty sure its just a font install missing on our server. Anyone know what font I could be missing for them to just show up as [] [] 

I attached a screenshot
Cody
Telerik team
 answered on 20 Nov 2013
11 answers
415 views
Hi,

After I've run a script it closes the browser, I am able to stop this?

Thank you,

Paul
Cody
Telerik team
 answered on 20 Nov 2013
1 answer
83 views

Hi Telerik Team,

 

we use Cruise Control to schedule the telerik autommated Testscripts. To schwo the results of the tests in Cruise Control, i use an XML-Schema to parse the XML-Results.

The new Version of Telerik.Test-Studio (Version: 2013.1.911) change the strukture of the XML-File for the testresults (i mean the .trx files). So that we no longer the seceond "WebAiiTestResult" with the "AutomationStepResults" and there "Item" have.

The neu Version ot telerik return the result as a single string (se below)

The old .trx-File have fhe folow XML-Tag:

  • Second “WebAiiTestResult”
  • AutomationStepResults
  • And many item

In the neu .trx-File there is only the XML-Tag:

  • TestStudioResult

 

<TestStudioResult xmlns="">{"__type":"ArtOfTest.WebAii.Design.Execution.TestResult","__value":{"Browser":1,"ExeType":0,"SeparatorLineCharCount":60,"Message":"Overall Result: Fail\r\n------------------------------------------------------------\r\n'14.11.2013 20:17:39' - Using .Net Runtime version: '4.0.30319.1008' for test execution. Build version is-------------……. (etc.)

<TestStudioResult>

 

Would you Please fix this problem. Because otherwise we can’t display the results in CruiseControl

 

I have also uploaded the two .trx-Files (the old one and  the new one) and the XSL-Schema.

 

Best regards

Mostafa

 

Velin Koychev
Telerik team
 answered on 20 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?