Only able to run tests IE after upgrading to Testing Framework 2014.2.618

3 posts, 0 answers
  1. Nathan
    Nathan avatar
    1 posts
    Member since:
    Oct 2013

    Posted 19 Jun 2014 Link to this post

    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.
  2. Marco
    Marco avatar
    1 posts
    Member since:
    Oct 2010

    Posted 20 Jun 2014 Link to this post

    Hello Nathan,
    just to share that I'm facing the same weird issue.

    My test suite was working (rather) fine with FireFox on 2014.1.410.
    After upgrading to 2014.2.618, all test fails when launching a new FireFox or Chrome instance. Seems working on IE.

    Here my stack trace:

    Error: RegistryHelper.PerformActionOnCurrentKey() : Cannot locate SOFTWARE\Mozilla\Mozilla Firefox\extensions
    Error: RegistryHelper.PerformActionOnCurrentKey() : Cannot locate SOFTWARE\Mozilla\Mozilla Firefox\extensions
    Framework: FireFoxInstallation.EnumFireFoxInstallations() : Valid Firefox 30.0.0.0 installation found at "C:\Program Files (x86)\Mozilla Firefox\firefox.exe".
    System.ArgumentNullException: Value cannot be null.
    Parameter name: path1
       in System.IO.Path.Combine(String path1, String path2)
       in ArtOfTest.WebAii.Messaging.Process.HostsProxy.Start()
       in ArtOfTest.WebAii.Messaging.Process.HostsProxy.RegisterListener(MessageListener listener)
       in ArtOfTest.WebAii.Messaging.Process.ExecutionMediator.RegisterManager(Manager manager)
       in ArtOfTest.WebAii.BrowserSpecialized.Firefox.FireFoxActions.LaunchNewBrowserInstance(ProcessWindowStyle windowStyle, Manager manager)
       in ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
       in ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()









  3. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 23 Jun 2014 Link to this post

    Hello,

    I was able to replicate the problem with the Testing Framework and also found a work-around until we fix it. You can manually add the following key in the registry, find attached.

    Please excuse us for the caused inconvenience!

    Regards,
    Konstantin Petkov
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top