请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

脚本执行完Python Terminal一直停在The process has exited with code 0

老师,
appium脚本运行正常,但结束的时候,Python Terminal一直停在The process has exited with code 0,没有退出到工程路径,请问这个如何解决?谢谢!

[HTTP]
[BaseDriver] Shutting down because we waited 60 seconds for a command
[Appium] Closing session, cause was ‘New Command Timeout of 60 seconds expired. Try customizing the timeout using the ‘newCommandTimeout’ desired capability’
[Appium] Removing session ‘5651ab15-c835-407d-9d3a-7e927caa5fdf’ from our master session list
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [WD Proxy] Matched ‘/’ to command name ‘deleteSession’
[debug] [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8202/wd/hub/session/d198d9af-701f-44ac-a8bf-12ab274d573c] with no body
[debug] [WD Proxy] Got response with status 200: {“sessionId”:“d198d9af-701f-44ac-a8bf-12ab274d573c”,“value”:null}
[debug] [ADB] Running ‘D:\Program Files\AndroidSDK\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21513 shell am force-stop com.tcs.bigw’
[debug] [Instrumentation] .
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8202
[debug] [ADB] Running ‘D:\Program Files\AndroidSDK\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21513 forward --remove tcp:8202’
[debug] [Instrumentation] Time: 104.093
[debug] [Instrumentation]
[debug] [Instrumentation] OK (1 test)
[debug] [Instrumentation] The process has exited with code 0

正在回答 回答被采纳积分+3

1回答

Mushishi 2020-07-08 20:38:11

你这个程序在哪里运行得,提示已经运行完了呀。

0 回复 有任何疑惑可以回复我~
  • 提问者 慕瓜3274171 #1
    在VS CODE, CMD, Jenkins都运行过,一样的结果,我发现只能手动输入Ctrl+C,才会出现下面的提示,然后输入Y才能终止程序。老师请问这个如何处理法?
    
    Terminate batch job (Y/N)? y
    回复 有任何疑惑可以回复我~ 2020-07-09 09:54:36
  • Mushishi 回复 提问者 慕瓜3274171 #2
    你看一下你进程 是不是什么进程你没有干掉,或者程序挂起了。appium没杀掉
    回复 有任何疑惑可以回复我~ 2020-07-09 10:51:51
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信