如何使用Python以编程方式启动和停止Appium Server [英] How to Start and Stop Appium Server programmatically using Python
本文介绍了如何使用Python以编程方式启动和停止Appium Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Python的新手,并且为Android移动应用程序创建了简单的Appium Automation测试用例.
I am a newbie to Python and have created simple Appium Automation Test case for Android mobile app.
我已经设置了Jenkins服务器,并希望在其上运行Appium,所以有2种方法:
I have setup Jenkins server and want to run Appium on it so there are 2 ways:
- 通过Jenkins运行appium服务器(我们可以使用
appium
命令运行它,但是当我运行appium命令时,它只是挂断"并连续显示服务器控制台) - 使用Python以编程方式启动Appium Server
- Run appium server via Jenkins (We can run it using
appium
command but when I run appium command it just "hangs up" and showing server console continiously) - Start Appium Server programmatically using Python
我知道我们可以运行Appium Server以编程方式使用Java ,但不了解python.
I know we can run Appium Server programmatically using Java but don't know about python.
因此,如果您对以上两种方式中的任何一种有任何想法,请发布答案.
So, if you have any idea about either of above 2 ways, please post the answer.
谢谢
推荐答案
我找到了答案1:
使用appium &
命令.
在命令末尾使用& ,该命令将在后台运行它并且不会冻结终端.
Use & at the end of the command that will run it in background and didn't freeze the terminal.
请参考此
这篇关于如何使用Python以编程方式启动和停止Appium Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文