我目前也遇到类似问题,报错如下
Server 端:
info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command. (Original error: read ECONNRESET)","code":"ECONNRESET","errno":"ECONNRESET","syscall":"read","origValue":"read ECONNRESET"},"sessionId":null}
info: <-- DELETE /wd/hub/session/70bb307a-dc0d-ca4c-54e1-8cdfe25a0a60 500 18.661 ms - 242
info: [debug] [SELENDROID ERR] No address associated with hostname
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.m.a(NetUtilsProcessor.java:500)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.m.a(NetUtilsProcessor.java:698)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.c.b.b(SecureOpenUrlWithParams.java:26)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.c.b.a(SecureOpenUrlWithParams.java:21)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.c.a.a(NetSecure.java:71)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.l.a(NetUtils.java:509)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.l.a(NetUtils.java:470)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.l.a(NetUtils.java:455)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.l.a(NetUtils.java:450)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.l.a(NetUtils.java:445)
info: [debug] [SELENDROID ERR] at com.sina.weibo.net.f.a(NetEngine.java:6715)
info: [debug] [SELENDROID ERR] at com.sina.weibo.localpush.c$a.a(LocalPushService.java:304)
info: [debug] [SELENDROID ERR] at com.sina.weibo.localpush.c$a.doInBackground(LocalPushService.java:274)
info: [debug] [SELENDROID ERR] at android.os.AsyncTask$2.call(AsyncTask.java:288)
info: [debug] [SELENDROID ERR] at java.util.concurrent.FutureTask.run(FutureTask.java:237)
info: [debug] [SELENDROID ERR] at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
info: [debug] [SELENDROID ERR] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
info: [debug] [SELENDROID ERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
info: [debug] [SELENDROID ERR] at java.lang.Thread.run(Thread.java:841)
info: [debug] [SELENDROID ERR] No address associated with hostname
client 的 log:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (Original error: read ECONNRESET) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 31 milliseconds
Build info: version: '2.46.0', revision: '61506a4624b13675f24581e453592342b7485d71', time: '2015-06-04 10:22:50'
System info: host: 'CN00200670', ip: '150.236.223.180', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_25'
Session ID: ecc0a543-7f96-93c8-e28d-5e2f354d7d47
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{automationName=selendroid, platform=ANDROID, app=C:\Jackie\Work\MultiClient\Codes\appnium\apps\com.customer.brand.tvclient-1.0.apk, acceptSslCerts=true, javascriptEnabled=true, browserName=selendroid, networkConnectionEnabled=true, rotatable=true, desired={automationName=Selendroid, app=C:\Jackie\Work\MultiClient\Codes\appnium\apps\com.customer.brand.tvclient-1.0.apk, platformVersion=4.1.2, platformName=Android, deviceName=GT-I9300}, version=0.15.0, platformVersion=19, deviceName=GT-I9300, platformName=android, handlesAlerts=true, warnings={}, takesScreenshot=true}]
我试了一下 driver.context("NATIVE_APP");是可以执行的
driver.context("WEB_VIEW0");就执行不了
各位有遇到这个问题的吗