This is a migrated thread and some comments may be shown as answers.

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

2 Answers 160 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 19 Jun 2014, 05:11 PM
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 Answers, 1 is accepted

Sort by
0
Marco
Top achievements
Rank 1
answered on 20 Jun 2014, 10:12 AM
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()









0
Konstantin Petkov
Telerik team
answered on 23 Jun 2014, 07:14 AM
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
 
Tags
General Discussions
Asked by
Nathan
Top achievements
Rank 1
Answers by
Marco
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or