Mobile Software Test Automation: Setting up dependencies (Part 1)

Download the IDE's

Android Studio

You will need the Android IDE to compile the app to be tested so that an apk file is generated.  If your company already has a build server that does this for you, that's fine as well.  The other reason the Android IDE is helpful, is that it is much faster to comb through the code to determine page objects you will be interacting with than using the IRB shell to locate the objects.  Head on over to the Android developer site and install the IDE.  

Once installation is complete, go ahead and launch Android Studio.  It should take you to a screen that looks like this:


Select the option to Configure, which should take you to this screen:


Select the option for SDK Manager, and you should be taken here:


I am not sure what you will need for your specific project, so go ahead and download everything, as it can't hurt.  Accept the license agreements and all the tools will be installed:


NOTE: This may take a while. But you can go onto the next step. No need to wait around for everything to finish before starting the Xcode installation.


Xcode and Command Line Tools

You will need the iOS IDE in order to imbed a server into the existing project that allows the client-server architecture of calabash to work.  You will also need to include some other API's into the project to simulate touch events.  No worries, you will be cloning the existing iOS project, so your production app will still be safe to push to the app store.  Here is the link, but it may be easier to find Xcode in the App Store and install that way.  

Once installed, go ahead and launch Xcode.  You will have to accept a license agreement

If you are installing Xcode for the first time, the Command Line Tools may already come bundled with Xcode.  But you need them for this to all work.  So open up the terminal (command line) and type:

$ xcode-select --install

If this is returned, then you already have command line tools installed:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Otherwise, you will be taken through a series of dialog boxes:


Accept the license agreement:


Once the installation is complete, verify that the tools are installed correctly by typing the following in the terminal:

$ xcode-select -p

You should see the following returned:



You should now have the Android and iOS IDE's installed.  Next week we will work through installing ruby, calabash, and everything else that is needed to finally get started developing mobile test automation!  Stay tuned!