如何使用 Python 以编程方式启动和停止 Appium Server [英] How to Start and Stop Appium Server programmatically using Python

查看:41
本文介绍了如何使用 Python 以编程方式启动和停止 Appium Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Python 的新手,并为 Android 移动应用创建了简单的 Appium 自动化测试用例.

I am a newbie to Python and have created simple Appium Automation Test case for Android mobile app.

我已经设置了 Jenkins 服务器并想在它上面运行 Appium,所以有两种方法:

I have setup Jenkins server and want to run Appium on it so there are 2 ways:

  1. 通过 Jenkins 运行 appium 服务器(我们可以使用 appium 命令运行它,但是当我运行 appium 命令时它只是挂断"并持续显示服务器控制台)
  2. 使用 Python 以编程方式启动 Appium Server
  1. 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)
  2. 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 的答案:

I have found the answer for 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆