博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Appium + python - 监控appium server start
阅读量:4599 次
发布时间:2019-06-09

本文共 629 字,大约阅读时间需要 2 分钟。

import os import time as t def start_appium(port = 4723,udid="4871660c"):     a = os.popen("netstat -ano | findstr '%s'"%port)     t.sleep(2)     t1 = a.read()     print(t1)     if "LISTENING" in t1:         print("appium服务已经启动%s"%t1)         # s = t1.split(" ")         # s1 = [t for t in s if t != " "]         # pip = s1[-1].replace("\n","")     else:         # 启动appium服务         # appium -a 127.0.0.1 -p 4740 -U emulator-5554 127.0.0.1:62001 --no-reset         os.system("appium -a 127.0.0.1 -p %s -U %s --no-reset" % (port, udid))         print("Error") start_appium()

转载于:https://www.cnblogs.com/Teachertao/p/10990953.html

你可能感兴趣的文章
SCTF 2014 pwn题目分析
查看>>
集合以及特殊集合
查看>>
USACO 2.2 Runaround Numbers
查看>>
利用 force index优化sql语句性能
查看>>
Matlab画图-非常具体,非常全面
查看>>
365. Water and Jug Problem
查看>>
SQL数据库数据检索top和distinct
查看>>
平衡搜索树--红黑树 RBTree
查看>>
sqlite驱动下载
查看>>
让IE6/IE7/IE8浏览器支持CSS3属性
查看>>
队列实现霍夫曼树
查看>>
【Java】图片高质量缩放类
查看>>
Python :类中设置默认属性并修改
查看>>
磁盘管理综合测试
查看>>
Unity3d Shader开发(三)Pass(Pass Tags,Name,BindChannels )
查看>>
UMLet
查看>>
从父控件移除控件
查看>>
calc()制作自适应布局
查看>>
Markdown-写作必备
查看>>
关于在Java中 a!=a 值为真的解释(摘抄)
查看>>