Appium
joey_fox1
这个作者很懒,什么都没留下…
展开
-
multitest
#coding=utf-8from appium import webdriverimport subprocessfrom config.getDesiredCaps import GetDesiredCapsfrom config.appiumServer import AppiumServerimport timedef testcase(deviceName): ...原创 2019-01-10 18:08:11 · 175 阅读 · 0 评论 -
getDesiredCaps
from appium import webdriverimport timeimport yamlfrom config.appiumServer import AppiumServerimport osclass GetDesiredCaps(): def getDesiredCaps(self,deviceName): configInfo = open...原创 2019-01-10 18:08:43 · 111 阅读 · 0 评论 -
appiumServer
import socketimport subprocessclass AppiumServer(): # host = "127.0.0.1" # port = 4723 def checkPort(self,host,port): s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) ...原创 2019-01-10 18:09:10 · 284 阅读 · 0 评论 -
deviceconfig.yaml
- desc: test1 port: 4730 desired_caps: platformName: Android deviceName: 192.168.207.101:5555 appPackage: com.android.calculator2 noReset: !!bool True udid: 192.168.207.101:5...原创 2019-01-10 18:09:46 · 566 阅读 · 0 评论 -
test
#coding=utf-8from appium import webdriverimport subprocessdesired_caps = {}desired_caps['platformName'] = 'Android'desired_caps['platformVersion'] = '23'desired_caps['deviceName'] = '192.168.20...原创 2019-01-10 18:10:22 · 117 阅读 · 0 评论 -
获取手机配置
转载:http://www.mamicode.com/info-detail-2353176.html yaml管理配置1.运行不同手机时候,desired_caps的参数配置肯定也是需要多个的,如何高效的管理多个desired_caps配置呢?这里我用yaml文件去管理,更方便查看desired_caps = { 'platformName':...转载 2019-01-11 10:21:11 · 279 阅读 · 0 评论 -
[Appium]测试自动化之获取apk信息
一 新下载app1. 获取apk包名 1.下载apk到本地(比如D:\test\xxx.apk) 2.打开cmd,输入指令aapt dump badging D:\test\xxx.apk(APK的全名,如手机淘宝.apk) 3.以手机淘宝.apk为例,如下图 4.这里就可以看到apk的包名:com.taobao.taobao2. 获取launch...原创 2019-01-07 16:33:14 · 709 阅读 · 0 评论 -
uncaughtException: Cannot find module 'internal/util/types'
C:\Users\tianzhaodong>appium -a 127.0.0.1 -p 4723error: uncaughtException: Cannot find module 'internal/util/types' date=Mon Jan 07 2019 16:59:45 GMT+0800 (GMT+08:00), pid=10312, uid=null, gid=nul...原创 2019-01-07 17:10:10 · 1500 阅读 · 0 评论