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

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

  • 相关阅读:
    自定义 mapper
    solr 服务搭建
    jedis 连接redis
    jedis 整合 Spring
    Redis 安装
    HttpClient 工具类
    springMvc 中返回字符串 乱码解决
    linux常用命令解析
    压缩jar包
    控制反转
  • 原文地址:https://www.cnblogs.com/wonderful0714/p/4572156.html
Copyright © 2011-2022 走看看