2017-02-08 18 views
1

Я пытаюсь автоматизировать приложение для Android в mac, используя appium (ver.1.5.3). я получаю ниже упомянутой ошибки. Пожалуйста помоги.javax.net.ssl.SSLHandshakeException: удаленное соединение с узлом удаленного доступа во время установления связи Поддержка

WebDriverException: javax.net.ssl.SSLHandshakeException: Удаленный хост закрытого соединения во время рукопожатия Строить информацию: версия: 'неизвестный', пересмотра: '1969d75', время: «2016-10-18 09:43 : 45 -0700 'Системная информация: хост:' AKASHs-MacBook-Pro.local ', ip:' 192.168.1.4 ', os.name:' Mac OS X ', os.arch:' x86_64 ', os. версия: '10 .11.6' , java.version: '1.8.0_121' Информация драйвера: driver.version: AndroidDriver на io.appium.java_client.remote.AppiumCommandExecutor.execute (AppiumCommandExecutor.java:84) в орг .openqa.selenium.remote.RemoteWebDriver.execute (RemoteWebDriver.java:601) в io.appium.java_client.DefaultGenericMobileDriver.execute (DefaultGenericMobileDriver.java:42) в io.appium.java_client.AppiumDriver.execute (AppiumDriver.java:1) в io.appium.java_client.android.AndroidDriver.execute (AndroidDriver.java:1) на org.openqa.selenium.remote.RemoteWebDriver.startSession (RemoteWebDriver.java:241) на org.openqa.selenium.remote.RemoteWebDriver. (RemoteWebDriver.java:128) на org.openqa.selenium.remote.RemoteWebDriver. (RemoteWebDriver.java:141) на io.appium.java_client.DefaultGenericMobileDriver. (DefaultGenericMobileDriver.java:38) в io.appium.java_client.Ap piumDriver. (AppiumDriver.java:90) в io.appium.java_client.AppiumDriver. (AppiumDriver.java:128) в io.appium.java_client.android.AndroidDriver. (AndroidDriver.java:72) в com.test1 .Test1.setUp (Test1.java:33) при sun.reflect.NativeMethodAccessorImpl.invoke0 (метод Native) при sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) на sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) по адресу java.lang.reflect.Method.invoke (Method.java:498) в org.testng.internal.MethodInvocationHelper.invokeMethod (MethodInvocationHelper.java:104) at org.testng.internal .Invoker.invokeMethod (Invoker.java:645) по адресу org.testng.internal.Invoker.invokeTestMethod (Invoker.java:851) в org.testng.internal.Invoker.invokeTestMethods (Invoker.java:1177) в org.testng.internal.TestMethodWorker.invokeTestMethods (TestMethodWorker.java: 129) на org.testng.internal.TestMethodWorker.run (TestMethodWorker.java:112) на org.testng.TestRunner.privateRun (TestRunner.java:756) на org.testng.TestRunner.run (TestRunner.java: 610) в org.testng.SuiteRunner.runTest (SuiteRunner.java:387) в org.testng.SuiteRunner.runSequentially (SuiteRunner.java:382) в org.testng.SuiteRunner.privateRun (SuiteRunner.java:340) на org.testng.SuiteRunner.run (SuiteRunner.java:289) на org.testng.SuiteRunnerWorker.runSuite (SuiteRunnerWo rker.java:52) при org.testng.SuiteRunnerWorker.run (SuiteRunnerWorker.java:86) при org.testng.TestNG.runSuitesSequentially (TestNG.java:1293) в org.testng.TestNG.runSuitesLocally (TestNG. java: 1218) на org.testng.TestNG.runSuites (TestNG.java:1133) на org.testng.TestNG.run (TestNG.java:1104) на org.testng.remote.AbstractRemoteTestNG.run (AbstractRemoteTestNG. java: 132) на org.testng.remote.RemoteTestNG.initAndRun (RemoteTestNG.java:236) на org.testng.remote.RemoteTestNG.main (RemoteTestNG.java:81) Вызванный: javax.net.ssl.SSLHandshakeException: Удаленный хост закрыл соединение во время рукопожатия на sun.security.ssl.SSLSocketImpl.readRecord (SSLSocketImpl.java:992) на солнце .security.ssl.SSLSocketImpl.performInitialHandshake (SSLSocketImpl.java:1375) на sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:1403) на sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java : 1387) на org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket (SSLConnectionSocketFactory.java:394) на org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket (SSLConnectionSocketFactory.java:353) на org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:141) в org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect (PoolingHttpClientConnectionManager.java: 353) на org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:380) на org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236) на org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88) по адресу org.apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110) на org.apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184) на org.apache .http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:71) на org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:55) на org.openqa.selenium.remote .internal.ApacheHttpClient.fallBackExecute (ApacheHttpClient.java:142) на org.openqa.selenium.remote.internal.ApacheHttpClient.execute (ApacheHttpClient.java:88) на org.openqa.selenium.remote.ProtocolHandshake.createSession (ProtocolHands hake.java:108) на org.openqa.selenium.remote.ProtocolHandshake.createSession (ProtocolHandshake.java:64) на org.openqa.selenium.remote.HttpCommandExecutor.execute (HttpCommandExecutor.java:141) на io.appium.java_client.remote.AppiumCommandExecutor.execute (AppiumCommandExecutor.java:69) ... 37 more Причиняется: java.io.EOFException: SSL-сверст отключен неверно на sun.security.ssl.InputRecord.read (InputRecord.java:505) в sun.security.ssl.SSLSocketImpl.readRecord (SSLSocketImpl.java:973) ... 58 более

+0

Любая помощь будет очень признательна –

ответ

3

C heck URL, который вы используете, Он не должен содержать https вместо этого использовать http. Я попробовал, это сработало для меня.

+1

Я пробовал с HTTP, и это сработало. Спасибо всем за помощь –

-1

Не имеет ничего общего с java как таковым. Проверьте свои сертификаты «OpenSSL s_client -connect <> 443»

Убедитесь, что проверить код 0 Если это не ноль, (20) это, вероятно, означает, что (я предполагаю здесь), вы можете иметь самостоятельно подписанный сертификат. Это означает, что вам нужно импортировать этот сертификат в свой магазин доверия java.