Saturday, May 18, 2013

Setup for Calabash-android

The First and foremost things is to have all the prerequisites tools installed in your system. The below are the step by step explanation of how to quickly setup your development environment for functional testing of mobile apps (android) using Cucumber and Calabash-android.

Pre-Requisites:

1. You need to have Ruby installed. Verify your installation by running ruby -v in a terminal - it should print "ruby 1.8.7" (or higher).



***If you are on Windows you can get Ruby from RubyInstaller.org ***
http://rubyinstaller.org/downloads/

2. You should have the Android SDK installed and the environment variable ANDROID_HOME should be pointing to it.


Note :  Make Sure Following Environment variables should be set properly
====================================================
Set the Android path to the directory where you have the android sdk installed :
ANDROID_HOME=C:\Android-SDK\adt-bundle-windows-x86_64-20130219\sdk

STEP 1 : Install Cucumber
Navigate to Command Prompt and type "gem install cucumber"



*** In case you face any problem refer Tips Section***

STEP 2 : Install Calabash-android
Navigate to Command Prompt and type "gem install calabash-android"




***You might have to run sudo gem install calabash-android if you do not have the right permissions.***

*** In case you face any problem refer Tips Section***


That's all ....
YOU are now set to write your First Functional Test - Refer "JumpStart Android Testing using Calabash"

6 comments:

  1. Thanks Very Helpfull

    ReplyDelete
  2. Thank you very much. You have done greatness to the whole humanity!

    ReplyDelete
  3. I agree. lifesaver for people like me using Windows.

    ReplyDelete
  4. thanks a lot !! i was looking for articles for weeks to do this.

    ReplyDelete
  5. Your blog is highly interesting. Thanks for sharing it.If you are looking for getting best services for mobile app testing, then visit here - http://salvusappsolutions.com

    ReplyDelete
  6. Reach on any Keyword, by getting Real users to android installs apps. We offer a Free $25 promotion; you'll receive when registering.

    ReplyDelete