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?
Tips:
Questions?
- What is TestDroid?
- What is Robotium?
Tips:
Pre-requisites:
- Android setup on the Eclipse IDE, use link How to setup Android environment over Ecplise IDE?
- ensure Android setup is correct How to make sure Android setup into Eclipse?
- Setup TestDroid tool on the Eclipse IDE.
- 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