Android Automation Setup
This post will help you setup your system with Android Automation with Calabash, please feel free to post comments.
Calabash-android Github: https://github.com/calabash/calabash-android
This post will help you setup your system with Android Automation with Calabash, please feel free to post comments.
Calabash-android Github: https://github.com/calabash/calabash-android
Outline
1. Install Android SDK
2. Install RVM
3. Install Ruby
4. Install Calabash Android
5. Java Home
6. Prepare Calabash Apk
7. Run Calabash Apk on Real Device
Install Android SDK
- Visit Android SDK Website
http://developer.android.com/sdk/index.html - Download the SDK by clicking
DOWNLOAD FOR OTHER PLATFORMS - Under "SDK Tools Only" download the Mac OS X SDK
android-sdk-macosx.zip - Moving the SDK from downloads folder to ~/android-sdk
Please type the following command on terminal
mv ~/Downloads/android-sdk-macosx.zip ~/ Moving the SDK zip file to User Home
unzip ~/android-sdk-macosx.zip Unzipping the SDK files
rm ~/android-sdk-macosx.zip Removing the zip SDK file - Setting Android Home
Please type the following command on terminal
echo 'export ANDROID_HOME=~/android-sdk-macosx' >> ~/.bash_profile
source ~/.bash_profile - Add Android tools to PATH
Please type the following command on terminal
echo 'export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools:$PATH' >> ~/.bash_profile - Verifying Android SDK is setup correctly
Please type the following command on terminal
which android
Output: ~/android-sdk-macosx/tools/android if you don't see this sdk installation was not successful
Install RVM
- Download RVM
Please type the following command on terminal
curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable - Close the terminal and relaunch it
- Verify if the RVM is installed correctly
Please type the following command on terminal
type rvm | head -1
If you do not see the output rvm is a function please do the following steps - (Only if you failed above step)
Please type the following command on terminal
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile will allow you to run all of the rvm features
source ~/.bash_profile This will reload your bash_profile - Verify if the RVM is installed correctly
Please type the following command on terminal
type rvm | head -1
Output should be rvm is a function
Install Ruby
- Make sure you have updated RVM
rvm get stable --autolibs=enable - Installing Ruby
rvm install 2.0.0 - Make Ruby 2.0.0 default
rvm use 2.0.0 --default - Verify if Ruby version
ruby -v
Install Calabash Android
- Install Calabash Android Gem
gem install calabash-android - Verify the calabash android was installed
gem list calabash-android - You should see output:
calabash-android (version)
Java Home
- Make sure Java home is set correctly
echo $JAVA_HOME
Prepare Calabash Apk
- calabash-android resign <apk_file>
- calabash-android build <apk_file>
Run Calabash Apk on Real Device
- calabash-android run <apk_file>
"It is really a great and useful piece of information
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"
I have a similar interest this is my page read everything carefully and let me know what you think
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”.
ReplyDeleteDownload Mod Apk Games and Applications