Skip to content

mamewotoko/malarm_test

Repository files navigation

malarm_test - UI test of malarm application

What is this?

This is a UI test of malarm using Robotium library. This is submodule of malarm.

How to clone source code

  1. Clone malarm

    git clone git://github.com/mamewotoko/malarm.git malarm
    
  2. In cloned directory, clone submoudle

    cd malarm
    git submodule init
    git submodule update
    
  3. malarm_test is cloned in test/malarm_test directory.

How to run

  1. Download robotium-solo-xx.jar file e.g. execute libs/setup.sh in lib directory
  2. Put robotium-solo-xx.jar into libs directory
  3. Deploy Malarm application

Malarm source repository: git://github.com/mamewotoko/malarm.git

  1. Start eclipse and add libs/robotium-solo-xx.jar into build path
  2. Build
  3. Run as Android JUnit test

How to start testing from the command line

    ant test

or

    adb shell am instrument -w com.mamewo.malarm_test/android.test.InstrumentationTestRunner

TODO

Memo

  • 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)

    1. build malarm with emma
    ant emma debug 
    
    1. install malarm
    ant debug
    ant emma installd
    
    1. coverage output is stored as coverage/index.html.

Reference


Takashi Masuyama < mamewotoko@gmail.com >
http://mamewo.ddo.jp/

About

An example of Android automated GUI test using Robotium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published