Entrepreneur, Blogger, Author of "Mobile Test Automation with Appium"

On Saturday, July 14, 2012 by Nishant Verma in ,

Recently I have switched from "simple" Windows to "Smart" Mac, so I had to do all those basic set up of my typical test automation env which I had on Win7. 
This post will detail about installing TestNG and Android plug-in into Eclipse and get started with your test.

Steps to install TestNG:
1. Click Help -> Install New Software.
2. Paste this URL http://beust.com/eclipse in the "Work with" edit box and click on "Add" button.
3. In the ‘Name’ column we can see "TestNG" -> Select this and click "Next" button.
4. Click on "Next" and click on the radio button "I accept the terms of the license agreement".
5. Click on "Finish".
6. Click on "Next" button.

Once the above steps are done, this will install the TestNG plug-in for Eclipse and it will start for restart of Eclipse. Just restart the Eclipse. You should be good.

To install ADT plug in Eclipse, follow these steps:
  • Start Eclipse, then select Help -> Install New Software....
  • Click Add, in the top-right corner.
  • In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location
In case this throws up error you might want to try with just http instead of https.
  • Click OK
Once you install this, you need to navigate to Window -> Android SDK Manager then select "ARM EABI v7a System Image" and then click on "Install packages..." 

Once you do this, you should be able to launch AVD Manager and then create a virtual device.

Now you need to install WebDriver on that emulator and post that you can download a sample android test framework from Github to get started. 
This is a test framework skeleton and can be leveraged for specific testing requirements.
Web Analytics