appium+mumu

安装好appium环境后用虚拟机验证一下是否配置正常 

from appium import webdriver
desired_caps={}
desired_caps['platformName']='Android'  #使用虚拟机填写Android即可
desired_caps['platformVersion']='6.0.1'  #通过设置查看虚拟机的安卓版本  
desired_caps['deviceName']='127.0.0.1:7555' #D:\Program Files (x86)\MuMu\emulator\nemu\vms\myandrovm_vbox86  --  myandrovm_vbox86.nemu --<Forwarding name="ADB_PORT" proto="1" hostip="127.0.0.1" hostport="7555" guestport="5555"/>
desired_caps['appPackage']='com.android.settings' #可以通过安卓的sdk目录下:android-sdk\build-tools\28.0.3\ 的aapt.exe aapt dump badging xxx.apk
desired_caps['appActivity']='com.android.settings.Settings'
driver=webdriver.Remote('http://localhost:4723/wd/hub',desired_caps)
driver.quit()

  

引用

https://www.jianshu.com/p/7df814557c96

posted @ 2020-08-22 21:53  KellyWu  阅读(180)  评论(1编辑  收藏  举报