有偿 来个大佬帮忙解决个appium的问题
appium吧
全部回复
仅看楼主
level 1
不假装♀ 楼主
有偿 来个大佬帮忙解决个appium的问题
2020年03月20日 03点03分 1
level 1
不假装♀ 楼主
项目总是跑到中途总是断开
2020年03月20日 03点03分 2
level 1
不假装♀ 楼主
报错我贴个图
2020年03月20日 03点03分 3
level 1
不假装♀ 楼主
2020年03月20日 03点03分 4
level 1
不假装♀ 楼主
然后appium运行日志中报
[Logcat] Logcat terminated with code 0, signal null
2020年03月20日 03点03分 5
level 1
不假装♀ 楼主
百度上的方法试了没用
2020年03月20日 03点03分 6
level 1
不假装♀ 楼主
求来个大佬帮忙
2020年03月20日 03点03分 7
level 1
不假装♀ 楼主
错误不清晰不好定位的话可以远程
2020年03月20日 03点03分 8
level 1
不假装♀ 楼主
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8200
2020年03月20日 03点03分 9
level 1
不假装♀ 楼主
截图里面的报错内容
2020年03月20日 03点03分 10
level 8
日志太少,不够详细,环境你也没提供!
请提供appium 版本、测试机版本、node版本。os 版本 xcode版本等等
以及logcat 具体日志信息、
警告这种提问题方式!远程更不可能!
推测:你的这种 *(Error: connect ECONNREFUSED 127.0.0.1:8200)异常
问题原因
1、数据连接线有问题or 网络发生了变化 (建议:稳定交流电源,稳定的wifi网络,IP地址稳定)
2、wda 、ios版本、Appium node 的版本遗留bug导致。(尝试升级Appium 或降级Appium、或尝试更换移动设备)
3、有可能是设备,过热、长时间运行,端口or进程被OS杀掉。
说明:一般错误信息直接报这种的,官方也很无力~
2020年03月21日 02点03分 11
好的 谢谢
2020年03月31日 02点03分
问题还是没有解决 我贴一下日志[泪]
2020年03月31日 02点03分
问题还是没有解决 我贴一下日志[泪]
2020年03月31日 02点03分
我在appium 1.15版本Got an unexpected response with status 500: {"sessionId":null,"status":35,"value":"org.json.JSONException: No value for desiredCapabilities,你遇到过吗
2020年04月09日 08点04分
level 1
不假装♀ 楼主
appium 使用过v1.17 也试过v1.15
测试机版本android8.1
node版本v12.16.1
2020年03月31日 02点03分 12
adb版本1.0.40
2020年03月31日 02点03分
level 1
不假装♀ 楼主
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element
[HTTP] {"using":"id","value":"com.freeme.camera:id/shutter_root"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.findElement() with args: ["id","co
m.freeme.camera:id/shutter_root","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class
name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 20000 ms for condition
[debug] [WD Proxy] Matched '/element' to command name 'findElement'
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hu
b/session/935f3a57-b084-462a-a5dc-54f6311f4b41/element] with body: {"strategy":"
id","selector":"com.freeme.camera:id/shutter_root","context":"","multiple":false
}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":{"ELEMENT":"d469bda9-7f92-46c6-b75c-d10be97c090a","
element-6066-11e4-a52e-4f735466cecf":"d469bda9-7f92-46c6-b75c-d10be97c090a"}}
[debug] [W3C (0f4b13c4)] Responding to client with driver.findElement() result:
{"element-6066-11e4-a52e-4f735466cecf":"d469bda9-7f92-46c6-b75c-d10be97c090a","E
LEMENT":"d469bda9-7f92-46c6-b75c-d10be97c090a"}
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element 200
67 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/d46
9bda9-7f92-46c6-b75c-d10be97c090a/click
[HTTP] {"id":"d469bda9-7f92-46c6-b75c-d10be97c090a"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.click() with args: ["d469bda9-7f92
-46c6-b75c-d10be97c090a","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [WD Proxy] Matched '/element/d469bda9-7f92-46c6-b75c-d10be97c090a/click'
to command name 'click'
[debug] [WD Proxy] Proxying [POST /element/d469bda9-7f92-46c6-b75c-d10be97c090a/
click] to [POST http://127.0.0.1:8200/wd/hub/session/935f3a57-b084-462a-a5dc-54f
6311f4b41/element/d469bda9-7f92-46c6-b75c-d10be97c090a/click] with body: {"eleme
nt":"d469bda9-7f92-46c6-b75c-d10be97c090a"}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":null}
[debug] [W3C (0f4b13c4)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/d46
9bda9-7f92-46c6-b75c-d10be97c090a/click 200 50 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element
[HTTP] {"using":"id","value":"com.freeme.camera:id/shutter_root"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.findElement() with args: ["id","co
m.freeme.camera:id/shutter_root","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class
name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 20000 ms for condition
[debug] [WD Proxy] Matched '/element' to command name 'findElement'
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hu
b/session/935f3a57-b084-462a-a5dc-54f6311f4b41/element] with body: {"strategy":"
id","selector":"com.freeme.camera:id/shutter_root","context":"","multiple":false
}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":{"ELEMENT":"bfdd8239-8202-4465-a261-bab85223e77b","
element-6066-11e4-a52e-4f735466cecf":"bfdd8239-8202-4465-a261-bab85223e77b"}}
[debug] [W3C (0f4b13c4)] Responding to client with driver.findElement() result:
{"element-6066-11e4-a52e-4f735466cecf":"bfdd8239-8202-4465-a261-bab85223e77b","E
LEMENT":"bfdd8239-8202-4465-a261-bab85223e77b"}
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element 200
62 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/bfd
d8239-8202-4465-a261-bab85223e77b/click
[HTTP] {"id":"bfdd8239-8202-4465-a261-bab85223e77b"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.click() with args: ["bfdd8239-8202
-4465-a261-bab85223e77b","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [WD Proxy] Matched '/element/bfdd8239-8202-4465-a261-bab85223e77b/click'
to command name 'click'
[debug] [WD Proxy] Proxying [POST /element/bfdd8239-8202-4465-a261-bab85223e77b/
click] to [POST http://127.0.0.1:8200/wd/hub/session/935f3a57-b084-462a-a5dc-54f
6311f4b41/element/bfdd8239-8202-4465-a261-bab85223e77b/click] with body: {"eleme
nt":"bfdd8239-8202-4465-a261-bab85223e77b"}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":null}
[debug] [W3C (0f4b13c4)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/bfd
d8239-8202-4465-a261-bab85223e77b/click 200 57 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element
[HTTP] {"using":"id","value":"com.freeme.camera:id/shutter_root"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.findElement() with args: ["id","co
m.freeme.camera:id/shutter_root","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class
name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 20000 ms for condition
[debug] [WD Proxy] Matched '/element' to command name 'findElement'
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hu
b/session/935f3a57-b084-462a-a5dc-54f6311f4b41/element] with body: {"strategy":"
id","selector":"com.freeme.camera:id/shutter_root","context":"","multiple":false
}
2020年03月31日 02点03分 13
level 1
不假装♀ 楼主
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":{"ELEMENT":"fc94391b-5b0c-4df6-8dfa-d464e2c12dc7","
element-6066-11e4-a52e-4f735466cecf":"fc94391b-5b0c-4df6-8dfa-d464e2c12dc7"}}
[debug] [W3C (0f4b13c4)] Responding to client with driver.findElement() result:
{"element-6066-11e4-a52e-4f735466cecf":"fc94391b-5b0c-4df6-8dfa-d464e2c12dc7","E
LEMENT":"fc94391b-5b0c-4df6-8dfa-d464e2c12dc7"}
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element 200
68 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/fc9
4391b-5b0c-4df6-8dfa-d464e2c12dc7/click
[HTTP] {"id":"fc94391b-5b0c-4df6-8dfa-d464e2c12dc7"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.click() with args: ["fc94391b-5b0c
-4df6-8dfa-d464e2c12dc7","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [WD Proxy] Matched '/element/fc94391b-5b0c-4df6-8dfa-d464e2c12dc7/click'
to command name 'click'
[debug] [WD Proxy] Proxying [POST /element/fc94391b-5b0c-4df6-8dfa-d464e2c12dc7/
click] to [POST http://127.0.0.1:8200/wd/hub/session/935f3a57-b084-462a-a5dc-54f
6311f4b41/element/fc94391b-5b0c-4df6-8dfa-d464e2c12dc7/click] with body: {"eleme
nt":"fc94391b-5b0c-4df6-8dfa-d464e2c12dc7"}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":null}
[debug] [W3C (0f4b13c4)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/fc9
4391b-5b0c-4df6-8dfa-d464e2c12dc7/click 200 51 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element
[HTTP] {"using":"id","value":"com.freeme.camera:id/shutter_root"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.findElement() with args: ["id","co
m.freeme.camera:id/shutter_root","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class
name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 20000 ms for condition
[debug] [WD Proxy] Matched '/element' to command name 'findElement'
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hu
b/session/935f3a57-b084-462a-a5dc-54f6311f4b41/element] with body: {"strategy":"
id","selector":"com.freeme.camera:id/shutter_root","context":"","multiple":false
}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":{"ELEMENT":"1775eeeb-8d82-49be-9cc5-5fd2690466d0","
element-6066-11e4-a52e-4f735466cecf":"1775eeeb-8d82-49be-9cc5-5fd2690466d0"}}
[debug] [W3C (0f4b13c4)] Responding to client with driver.findElement() result:
{"element-6066-11e4-a52e-4f735466cecf":"1775eeeb-8d82-49be-9cc5-5fd2690466d0","E
LEMENT":"1775eeeb-8d82-49be-9cc5-5fd2690466d0"}
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element 200
66 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/177
5eeeb-8d82-49be-9cc5-5fd2690466d0/click
[HTTP] {"id":"1775eeeb-8d82-49be-9cc5-5fd2690466d0"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.click() with args: ["1775eeeb-8d82
-49be-9cc5-5fd2690466d0","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [WD Proxy] Matched '/element/1775eeeb-8d82-49be-9cc5-5fd2690466d0/click'
to command name 'click'
[debug] [WD Proxy] Proxying [POST /element/1775eeeb-8d82-49be-9cc5-5fd2690466d0/
click] to [POST http://127.0.0.1:8200/wd/hub/session/935f3a57-b084-462a-a5dc-54f
6311f4b41/element/1775eeeb-8d82-49be-9cc5-5fd2690466d0/click] with body: {"eleme
nt":"1775eeeb-8d82-49be-9cc5-5fd2690466d0"}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":null}
[debug] [W3C (0f4b13c4)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/177
5eeeb-8d82-49be-9cc5-5fd2690466d0/click 200 56 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element
[HTTP] {"using":"id","value":"com.freeme.camera:id/shutter_root"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.findElement() with args: ["id","co
m.freeme.camera:id/shutter_root","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class
name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 20000 ms for condition
[debug] [WD Proxy] Matched '/element' to command name 'findElement'
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hu
b/session/935f3a57-b084-462a-a5dc-54f6311f4b41/element] with body: {"strategy":"
id","selector":"com.freeme.camera:id/shutter_root","context":"","multiple":false
}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":{"ELEMENT":"ff0c3684-9e39-4be1-b283-87b22da24bbb","
element-6066-11e4-a52e-4f735466cecf":"ff0c3684-9e39-4be1-b283-87b22da24bbb"}}
[debug] [W3C (0f4b13c4)] Responding to client with driver.findElement() result:
{"element-6066-11e4-a52e-4f735466cecf":"ff0c3684-9e39-4be1-b283-87b22da24bbb","E
LEMENT":"ff0c3684-9e39-4be1-b283-87b22da24bbb"}
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element 200
66 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/ff0
c3684-9e39-4be1-b283-87b22da24bbb/click
[HTTP] {"id":"ff0c3684-9e39-4be1-b283-87b22da24bbb"}
[debug] [W3C (0f4b13c4)] Calling AppiumDriver.click() with args: ["ff0c3684-9e39
-4be1-b283-87b22da24bbb","0f4b13c4-0709-4274-bedc-b780074a1cea"]
[debug] [WD Proxy] Matched '/element/ff0c3684-9e39-4be1-b283-87b22da24bbb/click'
to command name 'click'
[debug] [WD Proxy] Proxying [POST /element/ff0c3684-9e39-4be1-b283-87b22da24bbb/
click] to [POST http://127.0.0.1:8200/wd/hub/session/935f3a57-b084-462a-a5dc-54f
6311f4b41/element/ff0c3684-9e39-4be1-b283-87b22da24bbb/click] with body: {"eleme
nt":"ff0c3684-9e39-4be1-b283-87b22da24bbb"}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"935f3a57-b084-462
a-a5dc-54f6311f4b41","value":null}
[debug] [W3C (0f4b13c4)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/0f4b13c4-0709-4274-bedc-b780074a1cea/element/ff0
c3684-9e39-4be1-b283-87b22da24bbb/click 200 60 ms - 14
2020年03月31日 02点03分 14
level 1
不假装♀ 楼主
日志比较多 麻烦大佬帮忙看一下
2020年03月31日 02点03分 16
1 2 尾页