/your_location/monkey_android/performance/config/config.py
class Config:
# 配置 package_name, adb_location, mail_host, mail_user, mail_pass
package_name = "com.testerhome.nativeandroid"
adb_location = '/your_location/sdk/platform-tools/adb'
mail_host = "smtp.163.com" # 设置邮箱服务器
mail_user = "xxxxx@163.com" # 邮箱用户名
mail_pass = "xxxxx" # 邮箱密码
mail_to_list = ['xxxxx@163.com'] # 发送给收件人
执行命令 `
python /your_location/monkey_android/performance/monkey/monkey_server.py`
连接手机
运行 monkey_stop
python /your_location/monkey_android/performance/monkey/monkey_stop.py`
或连接一台没有 monkey_server 的电脑,执行重启手机
adb reboot
https://github.com/wangyunshuai/monkey_android