Wednesday, 21 September 2011

Robotium tool integration with TestDroid

Aim:
To create a script via TestDroid tool and run the created script using Robotium.

Difficulty Level: Hard

What you will learn?
How to run script into the Android emulator using integration of EclipseIDE, TestDroid and Robotium.


Questions?

  1. What is TestDroid?
  2. What is Robotium?

Tips:

  • Good knowledge of EcpliseIDE




Pre-requisites:
  1. Android setup on the Eclipse IDE, use link How to setup Android environment over Ecplise IDE?
  2. ensure Android setup is correct  How to make sure Android setup into Eclipse?
  3. Setup TestDroid tool on the Eclipse IDE.
  4. Install any xxx.apk file (where xxx denotes the filename of the application file).


Working Exercise Steps:
  • If you have followed Pre-requisites then go with the next step to make the completion of exercise.
  • Create Android project on the Eclipse IDE.
  • For recording the script first right click on the src directory and open New->Other.
  • Select 'New Robotium Test From APK' under Android-TestDroid and click on Next.
  • Browse the .apk file and select the package.
  • Click on Next button.
  • Click on Record button and launch the AVD if not run any AVD.
  • Performed some action on the installed .apk file.
  • Click on Finished button.
  • Now change the target package into Manifest.xml file according to recorded script.
  • Run the created Project.
  • See the script run on the Android Emulator.

Helpful Video:

No comments:

Post a Comment