GithubHelp home page GithubHelp logo

cj768025549 / fastmonkey Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhangzhao4444/fastmonkey

0.0 2.0 0.0 85 KB

非插桩 iOS Monkey, 支持控件,每秒4-5 action事件

Makefile 0.30% Swift 74.17% C 0.28% Objective-C 17.23% Shell 0.64% JavaScript 7.38%

fastmonkey's Introduction

FastMonkey

A Swift implementation of Monkey TEST(Non-Stub) for iOS that runs on Simulator/iOS devices.

1.0.0.1002 支持

  1. 非插桩monkey点击事件
  2. app后台或退出检测
  3. 基于控件点击事件
  4. 自定义业务序列事件

1. Requirements

  • XCode version 8.3.0 and above.
  • iOS version 9.0 and above.

2. Starting

FastMonkey can be either started with XCode IDE or via simple xcodebuild command line.

2.1. Using Xcode

Download the project and open the XCode project, checkout the scheme XCTestWDUITests and run the test case XCTextWDRunner

2.2. Using XcodeBuild

Open the terminal, go to the directory where contains XCTestWD.xcodeproj file and execute the following command:

#
#Change the port number to override the default port 
#
$ xcodebuild -project XCTestWD.xcodeproj \
           -scheme XCTestWDUITests \
           -destination 'platform=iOS Simulator,name=iPhone 6' \
           XCTESTWD_PORT=8001 \
           clean test

To execute Monkey for iOS device, run the following command:

#
#Change the port number to override the default port 
#Specify the device name
#
$ iproxy 8001 8001

$ xcodebuild -project XCTestWD.xcodeproj -scheme XCTestWDUITests -destination 'platform=iOS,name=(your device name)' XCTESTWD_PORT=8001 clean test
#
# Now server is started and listening in 8001
# To start Monkey run:

$curl -X POST -H "Content-Type:application/json" -d "{\"desiredCapabilities\":{\"deviceName\":\"xxxx\",\"platformName\":\"iOS\", \"bundleId\":\"com.PandaTV.Live-iPhone\",\"autoAcceptAlerts\":\"false\"}}"  http://127.0.0.1:8001/wd/hub/monkey

fastmonkey's People

Contributors

zhangzhao4444 avatar sydowma avatar

Watchers

James Cloos avatar Tiny Chang 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.