To manage test projects of application under test (AUT) on Android devices, coverage analysis tools for test ade-quacy are still urgently needed. As in other platforms, code coverage is a relatively convincing criterion for confidence that no obvious component part is left untested. With the help of Soot library, we developed a tool, called Android Black-box Coverage Analyzer (ABCA) that can produce source code coverage report on AUT execution while the source code of the AUT is actually not available. Given an Android application package (APK) file (in bytecode), ABCA inserts commands into the APK file to dump cover-age data on executed classes, method names, and source code statements. After exerting a test case on the instru-mented AUT on an Android device, we can then run ABCA in a PC to collect code coverage data of the AUT execution via a USB line connecting the PC and the Android device. After the test session completes, ABCA then generates a re-port on class coverage, method coverage, and line coverage of the original Java source code.
展开▼