zoukankan      html  css  js  c++  java
  • 【uiautomator】运行命令

    1、在cmd中运行如下命令,生成build.xml文件,位于 E:UsersAdministratorworkspaceeixunUiautomatorTest目录下

    android create uitest-project -n beixunUiautomatorTest -t 31 -p E:UsersAdministratorworkspaceeixunUiautomatorTest

    2、修改build文件,将<project name="beixunUiautomatorTest" default="help">修改为<project name="beixunUiautomatorTest" default="build">,接下来build.xml文件执行ant,执行默认目标

    ant -buildfile E:UsersAdministratorworkspaceeixunUiautomatorTestuild.xml

    3、连接手机,将生成的beixunUiautomatorTest.jar push到手机/data/local/tmp目录下

    adb push E:UsersAdministratorworkspaceeixunUiautomatorTestineixunUiautomatorTest.jar /data/local/tmp

    4、执行指定测试用例adb shell uiautomator runtest beixunUiautomatorTest.jar -c com.beixun.test.inputTest

    备注:文字红字加粗字体可替换成实际操作名称

  • 相关阅读:
    私有IP地址
    Python随手记
    Selenium+Python环境搭建
    FTP- Download, upload, Delete & find files
    初学Selenium遇上的问题
    automate sap遇上的一些问题
    LR常见问题
    服务器资源监控指标
    QTP场景恢复函数
    导出excel用例
  • 原文地址:https://www.cnblogs.com/wonderful0714/p/4572156.html
Copyright © 2011-2022 走看看