Telerik Forums
Testing Framework Forum
2 answers
253 views
I'm getting the following error when I attempt to run tests against Chrome, Firefox, or Safari. It does still work with IE. These tests worked prior to upgrading to 2014.2.618.

Test Name: TelerikChromeTest
Test FullName: Telerik.UnitTest1.TelerikChromeTest
Test Source: C:\Files\Visual Studio 2012\Projects\Telerik\Telerik\UnitTest1.vb : line 58
Test Outcome: Failed
Test Duration: 0:00:00.111429

Result Message:
Test method Telerik.UnitTest1.TelerikChromeTest threw exception: 
System.ArgumentNullException: Value cannot be null.
Parameter name: path1
Result StackTrace:
at System.IO.Path.Combine(String path1, String path2)
   at ArtOfTest.WebAii.Messaging.Process.HostsProxy.Start()
   at ArtOfTest.WebAii.Messaging.Process.HostsProxy.RegisterListener(MessageListener listener)
   at ArtOfTest.WebAii.Messaging.Process.ExecutionMediator.RegisterManager(Manager manager)
   at ArtOfTest.WebAii.BrowserSpecialized.Chrome.ChromeActions.LaunchNewBrowserInstance(Manager manager)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
   at Telerik.UnitTest1.TelerikChromeTest() in C:\Files\Visual Studio 2012\Projects\Telerik\Telerik\UnitTest1.vb:line 68

I was able to duplicate using this simple snippet of code:

<TestMethod()> Public Sub TelerikChromeTest()
        Dim Url As String = "http://msn.com"

        Dim s As New Settings
        s.Web.DefaultBrowser = BrowserType.Chrome

        Dim myManager = New Manager(s)

        myManager.Start()

        myManager.LaunchNewBrowser()

        myManager.ActiveBrowser.NavigateTo(Url)

        myManager.ActiveBrowser.Close()
        myManager.Dispose()
    End Sub

I appreciate any suggestions on resolving this issue.

Thank you.
Konstantin Petkov
Telerik team
 answered on 23 Jun 2014
1 answer
120 views
Hi there,

I recently upgraded to version 2014.2.x of the test framework and since then receiving lots of catastrophic errors while testing a Silverlight application. Downgrading back to the last 2013 version made it all work again. But that version doesn't work under Windows 2012.


Any idea what I should do?

Here are two of the exception messages:

Exception 1:

{"Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!\r\nInError set by the client. Client Error:\r\nSystem.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))\r\n   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)\r\n   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)\r\nBrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{\"Method\":null,\"Property\":null,\"Reference\":{\"ObjectName\":\"$root\",\"Path\":\"\\/popup:-1:12977784\\/modaldialog:0:49691197\\/grid:0:48464948\\/grid:1:33531353\\/border:2:33346726\\/grid:0:31685085\\/portal:0:16730309\\/grid:0:13897850\\/header:0:17885218\",\"Properties\":[]},\"Reference2\":null,\"Type\":15,\"Value\":null}',ClientId:'Client_43d5c44f-9127-444b-b121-340e06b43570',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))\r\n   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)\r\n   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')\r\nInnerException: none.\r\n\r\n   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)\r\n   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetVisibility(IAutomationPeer peer)\r\n   at ArtOfTest.WebAii.Silverlight.FrameworkElement.get_Visibility()\r\n   at ArtOfTest.WebAii.Silverlight.FrameworkElement.get_ComputedVisibility()\r\n   at ArtOfTest.WebAii.Silverlight.VisualWait.<ForVisible>b__0(Object obj)\r\n   at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)"}



Exception 2:
{"Visual tree refresh failed during redundant connect call"}



Inner exception

​{BrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{"Method":null,"Property":null,"Reference":null,"Reference2":null,"Type":12,"Value":null}',ClientId:'Client_6903c594-ae0c-4040-95e6-bf90333efdc3',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')}


Regards,
Daan Jonkers
Boyan Boev
Telerik team
 answered on 20 Jun 2014
3 answers
102 views
When I try and FrameworkElement.Capture() on 2 different machines i get different results. On 1 of them there is a shift (see shifted1 image) where as on my dev machine it is correct (see Correct1 image).

Screen resolution is the same which is what I thought could be the cause but i have tried all different resolutions with same result.

Please help!

Boyan Boev
Telerik team
 answered on 18 Jun 2014
3 answers
76 views
Chrome released version 35 over the weekend I believe. After doing so, it automatically disables the Telerik Testing Framework extension with no way to enable it.

Google says that in order to enable the extension, Telerik needs to migrate it to the Chrome Web store.

More information: Protecting Windows users from malicious extensions

Just in case anyone else had the misfortune of updating Chrome.
Konstantin Petkov
Telerik team
 answered on 16 Jun 2014
1 answer
97 views
Hi ,

I am trying to resize a chrome browser instance using Browser.ResizeContent() , but it doesn't seem to be working. Any idea why?

Thanks!
Boyan Boev
Telerik team
 answered on 16 Jun 2014
1 answer
93 views
I am writing some auto test codes to my Silverlight application. I am testing the "save as file" function. Before prompts the save as dialog, Browser (I am using IE) will prompts a "File download - security warning" dialog due to security concern. After I click the "ok" button, the save as dialog present and I can choose the location to save the file. How can Testing Framework deal with this security warning dialog? I have tried the GenericDialog, but I cannot simulate the action of clicking "ok" button so that the save as dialog never appears. Could anyone give me some hints to solve this problem? Thank you!
Ivaylo
Telerik team
 answered on 13 Jun 2014
4 answers
83 views
Hi, I'm evaluating the Testing Framework, and am looking for a specific feature I'm hoping can be supported.
I think I see that to grab a bitmap of the page, I would use Browser.Window.GetBitmap(), which is awesome.
However, I would like to do the same thing, but from a page that is rendered with HTML source that is provided, not navigated to.  For example, I take some existing HTML source, do some manipulation, give it to the Browser to render somehow, then grab Bitmap.  Hopefully in some straightforward manner leveraging the Testing Framework.

Will Testing Framework allow me to do this?  Or is there a better way?

Thanks!

Boyan Boev
Telerik team
 answered on 11 Jun 2014
3 answers
91 views
Hi,

the following code returns different results when running on IE11 and IE9:

String test = Find.ByXPath("//tr/td[contains(text(), 'Education')]").As<HtmlControl>().BaseElement.OuterMarkup;
Manager.Log.WriteLine("OuterMarkup is: " + test);

IE11 (and FireFox):
[Trace] : OuterMarkup is: <td scope="row">Education</td>

IE9:
[Trace] : OuterMarkup is: <TD scope=row>Education</TD>

So assert on OuterMarkup fails when running on different machines.
Page itself has "<td scope="row">Education</td>" value - test is a modified one from the test suite that comes together with the framework.

You can download this sample project here.
Latest framework version is used (2014.1.410.0).

Can you please comment on this issue ?
Ivaylo
Telerik team
 answered on 03 Jun 2014
3 answers
138 views
Hello,

Is there any way to do automated test for a mobile website whose content is created dynamically, depending on if site is running on desktop or mobile device? There is a JSP code that recognize device type that is based on browsers User-Agent (code is available on http://detectmobilebrowsers.com/ ). 

So basically, If I run test on Test Studio Express it will only run desktop version of the site because User-Agent is desktops one.
Is there any way to manually inject User-Agent string from a mobile device into Teleriks test scenario?

Best regards,
Michael
Ivaylo
Telerik team
 answered on 29 May 2014
3 answers
90 views
When I try to install TestingFrameworkFree.2013.2.1327, it complains that there is a "shiny new installer" and points to TestingFrameworkFree.2014.1.410
The issue is that I do not want to install the newest version.

How can I get past the message?
Boyan Boev
Telerik team
 answered on 22 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?