INSTRUMENTATION_RESULT: shortMsg=Process crashed.有时会出现
来源:6-10 关键字模型逻辑梳理之代码调错
慕盖茨3546819
2020-12-17
[HTTP] <-- POST /wd/hub/session 200 20489 ms - 1233
[HTTP]
[debug] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[debug] [Instrumentation] INSTRUMENTATION_CODE: 0
[debug] [Instrumentation] The process has exited with code 0
this is setup
Test Case 里面的参数 0
[HTTP] --> POST /wd/hub/session/29687f70-8065-4032-ba91-73fe76391d51/element
[HTTP] {“using”:“id”,“value”:“com.greenline.yihuantong:id/iv_tab_contact”}
[debug] [W3C (29687f70)] Calling AppiumDriver.findElement() with args: [“id”,“com.greenline.yihuantong:id/iv_tab_contact”,“29687f70-8065-4032-ba91-73fe76391d51”]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/d6398312-e06e-4aae-9d47-4654455c0bae/element] with body: {“strategy”:“id”,“selector”:“com.greenline.yihuantong:id/iv_tab_contact”,“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status undefined: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [W3C (29687f70)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET
[debug] [W3C (29687f70)] at JWProxy.command (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[HTTP] <-- POST /wd/hub/session/29687f70-8065-4032-ba91-73fe76391d51/element 500 78 ms - 599
[HTTP]
this is teardown
Ethis is class teardown
======================================================================
ERROR: test_01 (mp_main.CaseTest)
Traceback (most recent call last):
File “C:\Users\Administrator\PycharmProjects\AppiumPython\case\testcase1.py”, line 43, in test_01
self.login_business.changtab()
File “C:\Users\Administrator\PycharmProjects\AppiumPython\business\login_business.py”, line 37, in changtab
self.login_handle.click_AddressTab()
File “C:\Users\Administrator\PycharmProjects\AppiumPython\handle\login_handle.py”, line 59, in click_AddressTab
self.login_page.get_AddressTab_element().click()
AttributeError: ‘NoneType’ object has no attribute ‘click’
Ran 1 test in 45.618s
FAILED (errors=1)
启动App到首页后,会出现INSTRUMENTATION_RESULT: shortMsg=Process crashed.有时会出现,然后脚本就失败了,这个遇到过吗?
1回答
-
Mushishi
2020-12-17
uiautomator的问题,遇见这样 只能杀掉uiautomator 重启就好了
00
相似问题