项目作者: macaca-sample

项目描述 :
Macaca test sample for Java
高级语言: Java
项目地址: git://github.com/macaca-sample/sample-java.git
创建时间: 2017-03-27T06:34:01Z
项目社区:https://github.com/macaca-sample/sample-java

开源协议:MIT License

下载


sample-java

build status

Macaca test sample for Java

API Doc

more docs 参考文章

https://testerhome.com/junhe

Test

Start macaca server

  1. $ macaca server --verbose

install mvn dependencies:

  1. $ mvn -s settings.xml clean install -Dmaven.test.skip=true

run test

  1. $ mvn -s settings.xml test -Dtest=macaca.client.AndroidSampleTest

App Source Code

RUN CI

when source code changes, run CI Samples

  1. change current version : package.json
  2. npm publish
  3. run CI sample

Problems

  1. when you run iosSampleTest.java,you may meet this problem:
  1. ios_webkit_debug_proxy path: /usr/local/bin/ios_webkit_debug_proxy
  2. Could not connect to lockdownd. Exiting.: Permission denied
  3. Unable to attach f27bc6f301486418d3c81c04165cbd93143ec972 inspector
  4. Invalid message _rpc_reportConnectedDriverList: <dict>
  5. <key>WIRDriverDictionaryKey</key>
  6. <dict>
  7. </dict>
  8. </dict>

that’s because you do not have permission for ios_webkit_debug_proxy, you can solve this problem by this:

  1. refer to: http://stackoverflow.com/questions/39035415/ideviceinstaller-fails-with-could-not-connect-to-lockdownd-exiting

  2. if the problem still exists ,upgrade ios-ios-webkit-debug-proxy(my version is ios-webkit-debug-proxy-1.7.1)

  1. $ brew upgrade ios-webkit-debug-proxy

Contributors


Yinxl


xudafeng


Chan-Chun

This project follows the git-contributor spec, auto upated at Sat Apr 21 2018 17:28:19 GMT+0800.

License

The MIT License (MIT)