zoukankan      html  css  js  c++  java
  • Monkey记录

    1.查找包名方法

    方法一:

    sdk里面的appt

    以ES文件浏览器为例,命令行中切换到aapt.exe目录执行:aapt dump badging E:apkes3.apk

    方法二:

    查看data/data文件夹下的应用程序包。注:我们能测试的应用程序包都在这个目录下面

    C:Documents and SettingsAdministrator>adb shell

    ls data/data

    2.查看手机连接状态

    adb devices

    2-1 指定机器执行

    在多个device的时候,执行adb命令一般都需要用参数-s指定device。

    例如卸载emulator-5554(机器名)上的包com.soft.camera,命令如下
    adb -s emulator-5554 uninstall com.soft.camera

    例如通过monkey测试
    adb -s emulator-5554 shell monkey -v -p your.www.com 500

    指定机型

    adb connect emulator-5554

    2、指定device来执行adb shell

    命令:adb -s devicename shell

    常用操作命令:

    (注意命令位置,放错了预期也是效果达不到的)

    结果输出txt

    adb shell monkey -v -p com.ibroker.iBerHK 100 >D:/calendar_1.txt 

    操作时间间隔时间:

    adb shell monkey --throttle 500  -v -p  com.ibroker.iBerHK  1000 >/Users/kaibinliu/Desktop/monkey_log.txt

     

    重复seed用户事件:

    adb shell monkey  --pct-touch 80 -v -p  com.ibroker.iBerHK  -s 1529518718852  500  >/Users/kaibinliu/Desktop/monkey_log2.txt

     

    如果写了个没有的seed值 那么就是指定seed值的功效

    https://blog.csdn.net/lebang08/article/details/70858532

  • 相关阅读:
    Vsphere日记01.ESXi5.5.install
    Linux快速计算MD5和Sha1命令
    在linux虚机中装vmtools
    BT下载原理分析
    虚拟防火墙实验
    简单介绍一下vue2.0
    小白编程系列(一):编程语言选择
    html几种美丽的分割线
    利用:header匹配所有标题做目录
    markdown编辑器的小建议
  • 原文地址:https://www.cnblogs.com/kaibindirver/p/8676763.html
Copyright © 2011-2022 走看看