Telerik Forums
Testing Framework Forum
11 answers
148 views
Hi,

in the last days the framework couldn't manage to open a browser and navigate to any site. Like nearly every of my problems in the last time this occured although I hadn't modified any of the code.
It isn't always the same Exception, but always gets thrown at LaunchNewBrowser.

This is today's Exception:

System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   at ActaNova.TWebTest.Core.Utilities.ApplicationUtility.GetManager(String url, HtmlFindExpression waitForElementExistsFindEx) in c:\Development\AN\webaii\WebTest\TWebTest.Core\Utilities\ApplicationUtility.cs:line 632


And this is the other:

System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Int32 timeout)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   at ActaNova.TWebTest.Core.Utilities.ApplicationUtility.GetManager(String url, HtmlFindExpression waitForElementExistsFindEx) in c:\Development\AN\webaii\WebTest\TWebTest.Core\Utilities\ApplicationUtility.cs:line 632


I give it 10 tries and one second timeout between, but from time to time it doesn't work anyway.
What can be the reason for this and what could be the reason for all these problems occuring over night?

Thanks in advance!
Velin Koychev
Telerik team
 answered on 26 Jul 2013
14 answers
258 views
Hello!
I've got the following question about how to correctly license the Testing Framework:
When downloading the Testing Framework, it says it's free, also I don't have to enter any payment information. Now, in the EULA (http://www.telerik.com/community/license-agreement.aspx?pId=691) it says

2. Support and Updates
2.1 Support.  
[...]
2.1.2 If You have ten (10) or more Framework Users, You are obligated to purchase dedicated technical support for the Software as provided in http://www.telerik.com/automated-testing-tools/purchase/faqs/free-testing-framework.aspx.

Does this mean, we are obligated to purchase the support package once we have ten users of the Testing Framework, or once we have have ten users *and* require support via the regular support channels?

Thanks, Michael
Yurii
Top achievements
Rank 1
 answered on 25 Jul 2013
3 answers
86 views
Hi Guys,

I just installed the Testing Framework plugin and I was trying to figure out how to use it. However Firefox (22.0) is reporting the extension isn't supported.



Is there a new version available? The version number looks a little old.

Thanks!
-Craig
Cody
Telerik team
 answered on 24 Jul 2013
2 answers
208 views
I have written a Windows WPF application which I am using Testing Framework to test. This works fine.

The application sends data through a serial port to a Windows Forms application, and I would like to be able to test the complete system.

Is there any way to use Testing Framework to extract the contents of text boxs from a Windows Forms application?
David
Top achievements
Rank 1
 answered on 24 Jul 2013
1 answer
108 views
Hello,

I have RadSlider control with minimum and maximum values, and i'm trying to use DragToTick method but Test Studio returns me an error:


ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' HorizontalRangeEndThumb]



Also, i tried to to execute the following coded steps against your demo page with RadSlider control but got the same error as for mine coded step.

Site link: http://demos.telerik.com/silverlight/#Slider/Ticks

Coded Steps:

Telerik.WebAii.Controls.Xaml.RadSlider mySlider = Pages.TelerikSliderForSilverlight.SilverlightApp.Find.ByAutomationId<Telerik.WebAii.Controls.Xaml.RadSlider>("rangeSlider");

mySlider.User.HoverOver();
//Thumb RangeMidle = severitySlider.Find.ByAutomationId<Thumb>("RangeMidleThumb");


mySlider.DragToTick (ThumbName.EndThumb, 2);


Error:

Exception thrown executing coded step: '[Performance_Categories_CodedStep8] : DragToTick - Telerik Demo'.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' HorizontalRangeEndThumb]

   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition)
   at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)
   at ArtOfTest.WebAii.Silverlight.VisualFind.ReturnOrThrow(FrameworkElement e, String throwMessage)
   at ArtOfTest.WebAii.Silverlight.VisualFind.ByName(String name)
   at Telerik.WebAii.Controls.Xaml.RadSlider.get_HorizontalRangeEndThumb()
   at Telerik.WebAii.Controls.Xaml.RadSlider.DragToTick(ThumbName thumbName, Int32 tickIndex)

Could you help me please to fix that issue?


Thanks,
Max
Boyan Boev
Telerik team
 answered on 24 Jul 2013
1 answer
116 views
I installed the testing tool but only says its partially installed am I missing something????
Cody
Telerik team
 answered on 22 Jul 2013
1 answer
204 views
Does the Telrik test tool suite support test automation of functional/regression testing of BPM product suite from Pegasystems? pl share the details and experience.
Regards, RVR
Boyan Boev
Telerik team
 answered on 22 Jul 2013
1 answer
134 views
Greetings, Telerik Team!

Is there any way to simulate click on element with modifier key pressed, i.e. Ctrl + Click?

I'm trying to do this so:

var fieldDiv = label.Parent.Parent.Parent.As<HtmlDiv>();
_testHelperBase.CurrentFrame.OwnerBrowser.Desktop.KeyBoard.KeyDown(Keys.Control);
fieldDiv.Click();
_testHelperBase.CurrentFrame.OwnerBrowser.Desktop.KeyBoard.KeyUp(Keys.Control);

with no result.
Velin Koychev
Telerik team
 answered on 22 Jul 2013
9 answers
453 views
I've got a page that opens up a HTML popup window (not modal) containing a cancel button that closes it. If I set:

Manager.SetNewBrowserTracking(true)

before the popup is called then, as documented, I get a new Browser in the Browsers collection and the Manager.ActiveBrowser is set to the popup. However, when I call the cancel button to close the window (remembering to pass true to the HtmlInputButton.Click(true) so that it knows I'm closing the window) the Browsers collection remains the same (2) and the ActiveBrowser is still set to the closed popup. Subsequently the next command, in this case ActiveBrowser.RefreshDomTree() causes failure below.

The documentation states that when a popup window is closed the Browsers collection will be reduced and the ActiveBrowser will be set to the last browser, but this doesn't appear to happen. Is there something I'm missing here?

Cheers,
Matt


ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_ad8cae06-40c6-448e-8654-f431fd539687',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.InvalidOperationException: This client 'Client_ad8cae06-40c6-448e-8654-f431fd539687' is not connected to remote to be able to process command.
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
Cody
Telerik team
 answered on 18 Jul 2013
1 answer
114 views
I am trying through code to close my browser (ie10) but it just wont work.

int count1 = manager.Browsers.Count;
 
browser.Close();
 
int count2 = manager.Browsers.Count;
 
//Shut-down the manager and do all clean-up
manager.Dispose();

when this code runs count1 contains a count of 1, I then call close on the browser, count2 then contains a count 0, then I call dispose.
but the browser window never closes.

any idea?











Mario
Telerik team
 answered on 18 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?