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

来源:7-2 持续集成项目配置

慕瓜3274171

2020-07-08

老师,
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

写回答

1回答

Mushishi

2020-07-08

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

0
2
Mushishi
回复
慕瓜3274171
你看一下你进程 是不是什么进程你没有干掉,或者程序挂起了。appium没杀掉
2020-07-09
共2条回复

Python主讲移动端自动化测试框架Appium

APP自动化基础知识、po模型、关键字模型、服务自动化、持续集成

1508 学习 · 1333 问题

查看课程