C# 编码的UI跨浏览器firefox不工作

C# 编码的UI跨浏览器firefox不工作,c#,cross-browser,coded-ui-tests,C#,Cross Browser,Coded Ui Tests,我对codedUI有意见。我已在Internet explorer中录制步骤。步骤是午餐一个网站,登录到该网站和更多。。。我按照我能找到的指令安装了CodedUITestCrossBrowser 我在每个浏览器中运行测试。对于IE和chrome来说,测试是可行的,但对于Firefox来说,它不会占用URL。页面打开了,但什么也没做。然后,我的测试将给出这个错误 测试方法QaAutomatization.Reller.DristributorCreation引发异常: Microsoft.Visu

我对codedUI有意见。我已在Internet explorer中录制步骤。步骤是午餐一个网站,登录到该网站和更多。。。我按照我能找到的指令安装了CodedUITestCrossBrowser

我在每个浏览器中运行测试。对于IE和chrome来说,测试是可行的,但对于Firefox来说,它不会占用URL。页面打开了,但什么也没做。然后,我的测试将给出这个错误

测试方法QaAutomatization.Reller.DristributorCreation引发异常: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException:未能在45000内启动套接字 位于Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.Utility.MapAndretrow(异常) 位于Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.Launch(Uri) 位于Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserFactory.Launch(Uri) 位于Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.LaunchPrivate(Uri) 在Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.c_DisplayClass3d.b_3c()上 位于Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod(Func`1函数、UITestControl控件、布尔firePlaybackErrorEvent、布尔LogaAction) 位于Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Launch(Uri) 在UIMap.Designer.cs中的qaautomatization.uinewtabwindowsnternewindow.LaunchUrl(Uri url):第425行 在UIMap.Designer.cs中的qaautomatization.UIMap.LoginAdminCP()处:第71行 在Reseller.cs:第44行中的qautomatization.Reseller.DristributorCreation()处

我正在使用visual studio premium 2012及其更新2、Selenium 2.32.1和crossbrowser扩展

希望你拥有一切


再次感谢你的帮助

我得到这个错误是因为在执行测试之前,我运行了一个Firefox实例。在Firefox中运行编码的UI测试之前,请确保关闭所有Firefox浏览器窗口。

在Firefox 21-20和19上尝试。同样的结果。
        //The code that have been generated is 
        // Go to web page 'http://master.controlpanel3.test.mail.dev.sherweb.com/' using new browser instance
        this.UINewTabWindowsInterneWindow.LaunchUrl(new System.Uri(this.LoginAdminCPParams.UINewTabWindowsInterneWindowUrl));

        // Type 'xyz' in 'Username' text box
        uIUsernameEdit.Text = this.LoginAdminCPParams.UIUsernameEditText;

         public void LaunchUrl(System.Uri url)
    {
        this.CopyFrom(BrowserWindow.Launch(url));
    }