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
Step 3 : Enter the link “http://recorder.robotium.com/updates” to the “Work with” text box of Install window.
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”.
Step 5 : Click Next button.
Step 6 : Click on Next button again.
Step 7 : Click on “I accept the terms of the License agreement” and click on “Finish” button.
Step 8 : Robotium starts installing.
Step 9 : A security warning dialog is displayed and click on OK button.
Step 10 : Software update dialog is displayed to ask restarting eclipse and click on “Yes” button.
Step 11 : Eclipse will be restarted and Select the workspace and click OK button.
Step 12 : Installation of Eclipse is complete. To verify the installation click on File > New > Other…
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.
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 …!!!