Sunday, April 19, 2015

Robotium: How to install Robotium in eclipse IDE

Robotium is an interesting tool to automate the Android application. It is an android test automation framework that can record both native and hybrid android application. It is easy to write a powerful and robust automated UI test for Android application using Robotium.

Here we will explain on how to install Robotium in our Eclipse IDE.

Step 1 : Open Eclipse IDE Editor. Note that we should have installed Java JDK and Android SDK in our machine. We should have ADT(Android Development Tools) plug in installed on our Eclipse IDE.

Step 2 : Go to Help>Install New Software

image

Step 3 : Enter the link “http://recorder.robotium.com/updates” to the “Work with” text box of Install window.

image

Step 4 : Press Enter button. Robotium is displayed at the list. Now click on “Robotium” to expand and click “Select All” button. Uncheck “Contact all update sites during install to find required software”.

 image

Step 5 : Click Next button.

image

Step 6 : Click on Next button again.

image

Step 7 : Click on “I accept the terms of the License agreement” and click on “Finish” button.

image

Step 8 : Robotium starts installing.

image

Step 9 : A security warning dialog is displayed and click on OK button.

image

Step 10 : Software update dialog is displayed to ask restarting eclipse and click on “Yes” button.

image

Step 11 : Eclipse will be restarted and Select the workspace and click OK button.

image

Step 12 : Installation of Eclipse is complete. To verify the installation click on File > New > Other…

image

Step 13 : New window is displayed with other project list. Here “Android Robotium Recorder” is displayed and click on this folder we see “New Robotium Test” project. It means that Robotium for eclipse is installed successfully.

image

That’s all for now. In our next post we see on how to record an android application and run it using Robotium.

Happy Automation day with Robotium …!!!