Giter Site home page Giter Site logo

mymonkey's Introduction

项目简介

基于原生google的monkey,增了加一些自定义功能

使用方式一

命令行传参数
python /Run.py 
--apkname=com.xxxx.xxxx 
--runtime=30 
--seed=20 --throttle=500
--simulator=True
--appdebug=False 
--apkpath=xxxxxx.apk
--devices=192.168.56.101:5555 
--whitelist=com.xxxx.xxxx.xxxxx 
--account=18513571170 
--pwd=123321 
--loglevel=DEBUG

使用方式二

配置Config.yml文件
python EasyRun.py 

支持功能

1.自定义运行时长
2.自动隐藏顶部导航栏
3.支持白名单
4.log级别自定义
5.生成性能报告并发送
6.发送崩溃日志邮件
7.monkey运行结果插入数据库
8.跳回app机制
9.自动开启wifi功能

邮件

需要在MailConfig.py中配置邮件邮箱和密码

SQL

需要在SQLConfig.py中配置数据库用户和密码

性能报告

./ReportServer/performanceReport目录下

报告展示如下:

image

生成项目依赖并安装

运行Setup.py

1.pip install pipreqs
2.工程目录下:pipreqs ./
3.pip install -r requirements.txt

mymonkey's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mymonkey's Issues

Config.yml里面simulator写false,devces不填写运行报错

D:\venv_python27\venv27\Scripts\python.exe D:/git有关项目/MyMonkey/EazyRun.py
当前文件路径:D:\git�й���Ŀ\MyMonkey
Traceback (most recent call last):
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd3 in position 55: invalid continuation byte
Logged from file logger.py, line 76
INFO     - 2018-12-04 17:41:11 - 输入的apk路径:dinghuomao.apk
INFO     - 2018-12-04 17:41:11 - apkname is:"com.edujia.dinghuomao
runtime is:10
seed is:20
apkpath is: dinghuomao.apk
throttle is: 500
simulator is: False
appdebug is: False
devices is: None
whitelist is: None
adb: error: connect failed: device 'None' not found

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.