Calabash-Android tutorial for habrahabr
-
Install JDK7 SE http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
-
Download Android SDK http://developer.android.com/sdk/index.html?hl=sk
-
After installing JDK add JAVA_HOME system enviroment and add %JAVA_HOME%\jre\bin to system PATH
-
Download Ant http://ant.apache.org/bindownload.cgi
-
Add ANT_HOME system enviroment and add %ANT_HOME%\bin to system PATH
-
Download Ruby 1.9.3 (not 2.0!!! ) http://rubyinstaller.org/downloads/
-
Install Ruby (Set "Add ruby executables to your PATH" option during installation)
-
Download and install Ruby Development Kit http://rubyinstaller.org/downloads/
-
Install Calabash from Ruby gems:
gem install calabash-android
-
Clone this project:
git clone https://github.com/amazpyel/calabash_habr.git
-
Generate debug.keystore iif missing, it be recreated in ANDROID_HOME with the following command:
keytool -genkey -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
-
Resign apk:
calabash-android resign 'Clean Master_3.8.1.apk'
-
Connect Android device or Emulator with active USB debugging
-
Run test
calabash-android run 'Clean Master_3.8.1.apk'