org.openqa.selenium.remote.UnreachableBrowserException随机获取

时间:2016-10-17 11:41:39

标签: selenium webdriver selenium-chromedriver remotewebdriver selenium-server

硒2.53.0 和firefox 45

所有测试用例都工作正常,但突然出现随机产生异常,如下所示

有人可以帮忙解决这个问题吗?

org.openqa.selenium.remote.UnreachableBrowserException:与远程浏览器通信时出错。它可能已经死了。 构建信息:版本:' 2.53.0',修订版:' 35ae25b1534ae328c771e0856c93e187490ca824',时间:' 2016-03-15 10:43:46' 系统信息:主机:' USBLRPRPUJAR8',ip:' 172.16.20.43',os.name:' Windows 10',os.arch:' amd64',os.version:' 10.0',java.version:' 1.8.0_72' 驱动程序信息:driver.version:RemoteWebDriver Capabilities [{applicationCacheEnabled = true,rotate = false,handlesAlerts = true,databaseEnabled = true,version = 45.0.2,platform = WINDOWS,nativeEvents = false,acceptSslCerts = true,webStorageEnabled = true,locationContextEnabled = true,browserName = firefox,takesScreenshot = true,javascriptEnabled = true,cssSelectorsEnabled = true}] 会议ID:e5da75ec-52d5-4cba-b8b8-5fd124aaefd3     在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)     在org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)     在org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(RemoteWebDriver.java:428)     在org.openqa.selenium.By $ ByLinkText.findElement(By.java:246)     在org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)     在org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:899)     在org.openqa.selenium.support.ui.ExpectedConditions.access $ 000(ExpectedConditions.java:41)     在org.openqa.selenium.support.ui.ExpectedConditions $ 6.apply(ExpectedConditions.java:181)     在org.openqa.selenium.support.ui.ExpectedConditions $ 6.apply(ExpectedConditions.java:178)     在org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:238)     在com.bersin.bersinone.pages.BersinOnePage.waitforBersinonepageload(BersinOnePage.java:35)     在com.bersin.test.utils.LoginUser.BosucessfullLogin(LoginUser.java:42)     at com.bersin.bersinone.searchtestcases.TC001_Empty_Research_Search.perfromLogin(TC001_Empty_Research_Search.java:39)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)     at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)     在org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)     at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)     at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)     在org.testng.TestRunner.privateRun(TestRunner.java:774)     在org.testng.TestRunner.run(TestRunner.java:624)     在org.testng.SuiteRunner.runTest(SuiteRunner.java:359)     在org.testng.SuiteRunner.run顺序(SuiteRunner.java:354)     在org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)     在org.testng.SuiteRunner.run(SuiteRunner.java:261)     在org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)     在org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1191)     在org.testng.TestNG.runSuitesLocally(TestNG.java:1116)     在org.testng.TestNG.run(TestNG.java:1024)     at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)     在org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137)     在org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58) 引起:org.apache.http.ConnectionClosedException:Content-Length分隔消息体的过早结束(预期:1519;收到:0     at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:180)     at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:200)     at org.apache.http.impl.io.ContentLengthInputStream.close(ContentLengthInputStream.java:103)     在org.apache.http.impl.execchain.ResponseEntityProxy.streamClosed(ResponseEntityProxy.java:140)     在org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:228)     at org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:174)     at org.apache.http.util.EntityUtils.consume(EntityUtils.java:88)     在org.openqa.selenium.remote.internal.ApacheHttpClient.createResponse(ApacheHttpClient.java:113)     在org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:94)     在org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)     在org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:160)     在org.openqa.selenium.firefox.FirefoxDriver $ LazyCommandExecutor.execute(FirefoxDriver.java:380)     在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)     ......还有36个

SKIPPED:perfromEmptySearch java.lang.Throwable:方法TC001_Empty_Research_Search.perfromEmptySearch()[pri:2,instance:com.bersin.bersinone.searchtestcases.TC001_Empty_Research_Search@520a3426]取决于未成功完成的方法     at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1033)     at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)     在org.testng.TestRunner.privateRun(TestRunner.java:774)     在org.testng.TestRunner.run(TestRunner.java:624)     在org.testng.SuiteRunner.runTest(SuiteRunner.java:359)     在org.testng.SuiteRunner.run顺序(SuiteRunner.java:354)     在org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)     在org.testng.SuiteRunner.run(SuiteRunner.java:261)     在org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)     在org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1191)     在org.testng.TestNG.runSuitesLocally(TestNG.java:1116)     在org.testng.TestNG.run(TestNG.java:1024)     at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)     在org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137)     在org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58)

SKIPPED:checkdefaultsortoption java.lang.Throwable:方法TC001_Empty_Research_Search.checkdefaultsortoption()[pri:3,实例:com.bersin.bersinone.searchtestcases.TC001_Empty_Research_Search@520a3426]取决于未成功完成的方法     at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1033)     at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)     在org.testng.TestRunner.privateRun(TestRunner.java:774)     在org.testng.TestRunner.run(TestRunner.java:624)     在org.testng.SuiteRunner.runTest(SuiteRunner.java:359)     在org.testng.SuiteRunner.run顺序(SuiteRunner.java:354)     在org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)     在org.testng.SuiteRunner.run(SuiteRunner.java:261)     在org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)     在org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1191)     在org.testng.TestNG.runSuitesLocally(TestNG.java:1116)     在org.testng.TestNG.run(TestNG.java:1024)     at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)     在org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137)     在org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58)

0 个答案:

没有答案