簡體   English   中英

編碼的UI跨瀏覽器firefox無法正常工作

[英]Coded UI Cross browser firefox does not work

我的codedUI有問題。 我已經在Internet Explorer中記錄了步驟。 步驟正在午餐一個網站,登錄該網站等等...我按照說明安裝了CodedUITestCrossBrowser,我可以找到http://blogs.msdn.com/b/visualstudioalm/archive/2012/10/30/introducing-cross瀏覽器測試與編碼的ui-tests.aspx

我在每個瀏覽器中運行測試。 對於IE和chrome來說,測試工作正常,但是使用Firefox時,它將不會影響URL。 頁面已打開,但未完成任何操作。 然后我的測試將給我這個錯誤。

測試方法QaAutomatisation.Reseller.DristributorCreation引發異常:Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException:無法在45000范圍內的Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.Utility.MapAndReThrow(Exception exception)處啟動套接字。 Microsoft.VisualStudio.TestTools.UITesting.Browser中的Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.Launch(Uri uri)在Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserFactory.Launch(Uri uri) LaunchPrivate(URI URI)在Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow。<> C_ DisplayClass3d.b _3c()在Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod(Func`1功能,UITestControl控制,布爾firePlaybackErrorEvent,布爾UIMap.Desi上QaAutomatisation.UINewTabWindowsInterneWindow.LaunchUrl(Uri url)上Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Launch(Uri uri)上的logAsAction) gner.cs:UIMap.Designer.cs中QaAutomatisation.UIMap.LoginAdminCP()的第425行:Reseller.cs中QaAutomatisation.Reseller.DristributorCreation()的第71行:第44行

        //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));
    }

我將Visual Studio Premium 2012與更新2,Selenium 2.32.1和跨瀏覽器擴展一起使用。

希望你擁有一切

再次感謝您的幫助 !!

我收到此錯誤的原因是,在執行測試之前,我有一個Firefox實例正在運行。 在Firefox中運行編碼的UI測試之前,請確保關閉所有Firefox瀏覽器窗口。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM