Code Monkey home page Code Monkey logo

iosmonkey's Introduction

iosMonkey

1、准备macaca环境

##安装命令行工具和驱动模块 $ npm i -g macaca-cli macaca-ios ##安装成功后命令行显示类似于: /Users/xxxxx/.nvm/versions/node/v6.0.0/lib ├── [email protected] └── [email protected] 记录一下macaca-ios地址:/Users/xxxxx/.nvm/versions/node/v6.0.0/lib/macaca-ios

##安装usbmuxd $ brew install usbmuxd

##安装ios_webkit_debug_proxy $ brew install ios_webkit_debug_proxy

##安装ios-deploy $ brew install ios-deploy

##安装ideviceinstaller $ brew install ideviceinstaller

##安装carthage $ brew install carthage

##检测macaca环境 $ macaca doctor

2、打包WDA

重新签名后打包WDA

3、执行iosMonkey

$ macaca server --verbose $ java -jar [iosMonkey.jar Path] -u [设备的UDID] -b [测试App的BundleID]

iosmonkey's People

Contributors

hujiachun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar liyu.info avatar Kai Li avatar Hemin Won avatar dengrong avatar michealian avatar Danny Ho avatar 鲍志达 avatar

Watchers

鲍志达 avatar dengrong avatar  avatar

iosmonkey's Issues

测试中断后重新调起App,bundleID判断失败

随手拿微信测试了一下,到30多步的时候崩溃了

Response content:{"sessionId":"1eef6943-0a51-422d-9d9f-976cc8f7715e","status":10,"value":{"message":"An element command failed because the referenced element is no longer attached to the DOM."}}
An element command failed because the referenced element is no longer attached to the DOM.
请确认参数配置,需要帮助请输入 java -jar iosMonkey.jar -h
ERROR信息java.lang.Exception: An element command failed because the referenced element is no longer attached to the DOM.
==当前启动的APP bundleid是<(null)>,非测试APP,重新呼起测试APP====
==当前启动的APP bundleid是<com.apple.springboard>,非测试APP,重新呼起测试APP====
==当前启动的APP bundleid是<com.tencent.xin>,非测试APP,重新呼起测试APP====
==当前启动的APP bundleid是<(null)>,非测试APP,重新呼起测试APP====
==当前启动的APP bundleid是<com.apple.springboard>,非测试APP,重新呼起测试APP====
>> proxy.js:84:20 [master] pid:53474 Got response with status 200: {"value":"Application is not running, possibly crashed","sessionId":"temp","status":10}
>> responseHandler.js:54:12 [master] pid:53474 Send Error Respone to Client: StaleElementReference: An element command failed because the referenced element is no longer attached to the DOM.
>> responseHandler.js:60:14 [master] pid:53474 StaleElementReference: An element command failed because the referenced element is no longer attached to the DOM.
    at actionDelegate.call.then.result (/usr/local/lib/node_modules/.macaca-ios_npminstall/node_modules/.1.0.59@macaca-ios/lib/actions.js:121:15)
    at process._tickCallback (internal/process/next_tick.js:103:7)
>> responseHandler.js:76:14 [master] pid:53474 Send Bad HTTP Respone to Client: {"sessionId":"1eef6943-0a51-422d-9d9f-976cc8f7715e","status":10,"value":{"message":"An element command failed because the referenced element is no longer attached to the DOM."}}

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.