Macaca test sample for Java
Java Makefile
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits behind macaca-sample:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/test/java/macaca/client
.gitignore
.npmignore
.travis.yml
LICENSE
Makefile
README.md
checkstyle.xml
macacatestsample.iml
package.json
pom.xml
settings.xml

README.md

sample-java

build status

Macaca test sample for Java

API Doc

more docs 参考文章

https://testerhome.com/junhe

Test

Start macaca server

$ macaca server --verbose

install mvn dependencies:

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

run test

$ 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:
ios_webkit_debug_proxy path: /usr/local/bin/ios_webkit_debug_proxy
Could not connect to lockdownd. Exiting.: Permission denied
Unable to attach f27bc6f301486418d3c81c04165cbd93143ec972 inspector
Invalid message _rpc_reportConnectedDriverList: <dict>
	<key>WIRDriverDictionaryKey</key>
	<dict>
	</dict>
</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)

$ brew upgrade ios-webkit-debug-proxy

License

The MIT License (MIT)