Telerik Forums
Test Studio Forum
10 answers
858 views
Hello,

Is the Scroll To Visible command supposed to work with horizontal scroll bars (scrolling from left to right and vice-versa)?  If so, what option should we use? (neither seems to be appropriate for horizontal scroll bars).

If Scroll to Visible does not support horizontal scroll bars, are there any other commands available for horizontal scrolling?
NOTE:  Recording a scroll action produces a drag command on BackgroundGradientRectangle object - problem with this is that it is very sensitive to screen resolution, browser window size, etc.

The above is both with our current version (TS 2012.1.411.0) and the version we are evaluating (for possible upgrade) - 2012.2.1420.0.  AUT is a Silverlight web application.

Any help would be much appreciated.

Thanks,
Shashi
Ivaylo
Telerik team
 answered on 29 Nov 2013
1 answer
91 views
There is an issue which annoys me every now and then is, in my project when I run the test live the steps do not work as recorded. The feature is a normal button which i tried walking over using the option of Desktop Cmmand(left click) and the Normal Click each. But the results indicate a test failure.
Find the logs using
a) Desktop Command
b) Normal Click
respectively

'11/28/2013 2:25:50 PM' - 'Fail' : 46. Desktop command: LeftClick on PerformImage
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'11/28/2013 2:25:50 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'11/28/2013 2:25:50 PM' - Overall Result: Fail
'11/28/2013 2:25:50 PM' - Duration: [4 min: 23 sec: 636 msec]
------------------------------------------------------------
'11/28/2013 2:25:51 PM' - Test completed!s

********************************************************************************************************************************************************************


'11/28/2013 2:40:03 PM' - 'Fail' : 47. Click 'PerformImage'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'11/28/2013 2:40:03 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'11/28/2013 2:40:03 PM' - Overall Result: Fail
'11/28/2013 2:40:03 PM' - Duration: [4 min: 11 sec: 945 msec]
------------------------------------------------------------
'11/28/2013 2:40:05 PM' - Test completed!
Velin Koychev
Telerik team
 answered on 29 Nov 2013
2 answers
105 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
251 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
315 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
122 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
511 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
131 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
99 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
106 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?