This is a UI test of malarm using Robotium library. This is submodule of malarm.
-
Clone malarm
git clone git://github.com/mamewotoko/malarm.git malarm
-
In cloned directory, clone submoudle
cd malarm git submodule init git submodule update
-
malarm_test is cloned in test/malarm_test directory.
- Download robotium-solo-xx.jar file e.g. execute libs/setup.sh in lib directory
- Put robotium-solo-xx.jar into libs directory
- Deploy Malarm application
Malarm source repository: git://github.com/mamewotoko/malarm.git
- Start eclipse and add libs/robotium-solo-xx.jar into build path
- Build
- Run as Android JUnit test
ant test
or
adb shell am instrument -w com.mamewo.malarm_test/android.test.InstrumentationTestRunner
- merge capture code (mimicj) or use scirocco http://code.google.com/p/scirocco/wiki/QuickStartScirocco_JP
- give test parameter from child class and test in abstract parent class
- check version of malarm before testing
-
command line from build to test
ant debug ant installd test
-
monkey test (random UI test)
adb shell monkey -p com.mamewo.malarm24 -v 10000
-
EMMA (code coverage)
- build malarm with emma
ant emma debug
- install malarm
ant debug ant emma installd
- coverage output is stored as
coverage/index.html
.
- Robotium: http://code.google.com/p/robotium/
- How to use ddmslib to capture screen shot http://blog.codetastrophe.com/2008/12/using-androiddebugbridge-api-to-get.html
- Screenshots with Android NativeDriver - internals http://nativedriver.googlecode.com/files/Screenshot_on_Android_Internals.pdf
Takashi Masuyama < mamewotoko@gmail.com >
http://mamewo.ddo.jp/