zoukankan      html  css  js  c++  java
  • mac 下的monkey测试

    1、有androidstudio开发环境,配置好环境变量

    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
    CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    PATH=$JAVA_HOME/bin:$PATH:
    export JAVA_HOME
    export CLASSPATH
    export PATH
    export M2_HOME=/Users/houzhibin/Documents/software/apache-maven-3.5.2
    export PATH=$PATH:$M2_HOME/bin
    
    # Setting PATH for Python 3.7
    # The original version is saved in .bash_profile.pysave
    PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
    export PATH
    
    export ANDROID_HOME=/Users/houzhibin/Library/Android/sdk 
    export PATH=${PATH}:${ANDROID_HOME}/tools
    export PATH=${PATH}:${ANDROID_HOME}/platform-tools
    
    export MONO_HOME=/Library/Frameworks/Mono.framework/Versions/6.0.0
    export PATH=$PATH:$MONO_HOME/bin
    

      

    2、adb shell  到这个命令行中执行命令 monkey ;

    3、正确的语句:monkey -p com.wbh.mall.spgapp -v 10000

    4、导出log语句:

    二、使用步骤:

    1.清空log:adb logcat -c

    2.运行monkey:adb shell monkey -p com.baidu.browser.apps -v 10000

    3.导出log:adb logcat > ~/Desktop/monkey_04.log

    -----------adb shell monkey -p com.wbh.mall.spgapp -v 10000 >/Users/houzhibin/Downloads/monkey001.txt

    www.beicaiduo.com
  • 相关阅读:
    C语言寒假大作战01
    C语言I作业12—学期总结
    C语言I博客作业11
    C语言I博客作业10
    非数值数据的编码方式
    定点数
    C语言||作业01
    C语言寒假大作战04
    C语言寒假大作战03
    C语言寒假大作战02
  • 原文地址:https://www.cnblogs.com/hoge66/p/11683911.html
Copyright © 2011-2022 走看看