Giter VIP home page Giter VIP logo

automonkey's Introduction

1.安装python3.6
  设置python环境变量
  path 增加 C:\Users\zhangzhao\AppData\Local\Programs\Python\Python36
            C:\Users\zhangzhao\AppData\Local\Programs\Python\Python36\Scripts
2.安装pycharm(用于开发 调试,仅使用可略过)
  填pycharm激活码(google)

3.安装py库
  1)pip install lxml
  2)pip install requests
  3)pip install selenium
  4)pip install appium-python-client
  5)pip install pyyaml
  6)pip install xlsxwriter
  7)pip install wheel
down http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
scipy-0.18.1-cp34-cp34m-win_amd64.whl
numpy-1.11.3+mkl-cp34-cp34m-win_amd64.whl
pyparsing-2.1.10-py2.py3-none-any.whl
python_dateutil-2.6.0-py2.py3-none-any.whl
pytz-2016.10-py2.py3-none-any.whl
matplotlib-2.0.0rc2-cp34-cp34m-win_amd64.whl
pip install xxx.whl
   8)easy_install Pillow

4.下载androidsdk 
  设置$ANDROID_HOME 环境变量
  ANDROID_HOME 设为 D:\android-sdk

5.下载最新的automonkey

6.下载安装nodejs

7.下载安装appium
  修正appiumdriver.py中startappiumdriver安装目录
如 cmd = 'c:\\program files xxx'

8.安装jdk,配置环境变量
JAVA_HOME C:\Program Files\Java\jdk1.8.0_121
CLASSPATH C:\Program Files\Java\jdk1.8.0_121\lib\dt.jar;C:\Program Files\Java\jdk1.8.0_121\lib\tools.jar
PATH 增加 C:\Program Files\Java\jdk1.8.0_121\bin

9.运行appium-doctor检测appium运行环境
C:\Users\zhangzhao>appium-doctor
Running Android Checks
? ANDROID_HOME is set to "D:\android-sdk"
? JAVA_HOME is set to "C:\Program Files\Java\jdk1.8.0_121."
? ADB exists at D:\android-sdk\platform-tools\adb.exe
? Android exists at D:\android-sdk\tools\android.bat
? Emulator exists at D:\android-sdk\tools\emulator.exe
? Android Checks were successful.
? All Checks were successful

运行:
执行adb devices 获取uuid
进度automonkey目录
python monkey.py -a conf\pandalive.apk -c conf\panda.yml -p android -i X2P0215518002631 -u 4723
-a apk路径
-c 遍历规则文件
-p 平台android/ios
-i 设备uuid
-u appium起始端口号

automonkey's People

Contributors

zhangzhao4444 avatar

Watchers

James Cloos 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.