Code Monkey home page Code Monkey logo

monkey_android's Introduction

Auto Monkey For Android

版本 1.1

功能简介

  1. 完全自动:只需要负责连接设备
  2. 支持多个设备
  3. 支持随时断开设备、插入新设备,每5s定时检测设备自动运行
  4. 崩溃后,发送邮件,邮件内容:执行时长、crash log
  5. 支持Windows、Mac系统
  6. 支持配置文件

系统及环境、依赖

  1. 测试环境:Mac OS、Windows 10、Python 2.7.10
  2. 配置 adb

配置修改

user_config/default.conf

```
[config]
package_name = com.testerhome.nativeandroid
adb_location = /your_location/android/sdk/platform-tools/adb

# 设置邮箱服务器
mail_host = smtp.xxxx.com
# 邮箱账号
mail_user = [email protected]
# 邮箱密码
mail_pass = ******

[mail_to_list]
# 设置发送给收件人, 格式如下,等号右侧留空
[email protected] =
[email protected] =

[monkey_parameters]
# monkey 相关的参数,需要哪些,直接在下面按格式添加去掉前面的 # 符号即可. 不需要赋值的参数等号后面留空就可以
-v =
--throttle = 300
--pct-trackball = 0
--pct-syskeys = 5
--pct-nav = 0
--pct-anyevent = 0
# --pct-majornav = 0
# --pct-appswitch = 0
# --pct-flip = 0
# --pct-pinchzoom = 0
# --pct-permission = 0
# --pct-touch = 0
# --pct-motion = 0

# COUNT 参数需要放最后面
4000000 =
```

运行

  1. 执行命令 执行默认配置文件: user_config/default.conf

    python /your_location/monkey_android/performance/monkey/monkey_server.py`

    执行自定义配置文件(monkey_android/user_config 路径下):user_config/custom.conf

    python /your_location/monkey_android/performance/monkey/monkey_server.py user_config/custom.conf

    或者使用配置文件的全路径

    python /your_location/monkey_android/performance/monkey/monkey_server.py /your_dir/custom.conf
  2. 连接手机

关闭monkey

  1. 停掉monkey_server或当前电脑没有正在运行的 monkey_server

  2. 运行monkey_stop

    python /your_location/monkey_android/performance/monkey/monkey_stop.py
  3. 或连接一台没有monkey_server 的电脑,执行重启手机

    adb reboot

邮件截图

summary

monkey_android's People

Contributors

wangyunshuai avatar yaming116 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.