Telerik Forums
Test Studio Forum
2 answers
96 views
As the title says, my parent test is failing specifically on a FindElementException that the Subtest is catching.  Am I missing something?
My expected outcome would be for my test to carry on if I'm catching the exception that would otherwise fail the test.

Parent Test
->Execute test "SubTest.tsttest"

SubTest
// Click 'OverridelinkLink'
           try{
           Pages.CertificateError.OverridelinkLink.Click(false);
           }catch(FindException e){
           Log.WriteLine("IE Override Link not found");
           }

StackTrace
Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[checkForCertErrorIE] : Click 'OverridelinkLink''.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used: 
[id 'Exact' overridelink] AND [tagname 'Exact' a]
Velin Koychev
Telerik team
 answered on 29 Nov 2013
1 answer
236 views
I am trying to add a reference to the System.Data.MySqlClient.dll file in Test Studio.  So far, it will not even recognize that it is there.  I am needed to connect to a MariaDB database.  Does someone have a suggestion on the best route for this?  The System.Data.SqlClient reference (obviously) will not work.

Thanks!!

Gregory Hargrove
Ivaylo
Telerik team
 answered on 28 Nov 2013
1 answer
296 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
113 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
488 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
122 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
86 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
95 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
159 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
101 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?