One of the key problems in app testing is to improve the test coverage of apps. However, current testing techniques, whether in code coverage or activity coverage, are not satisfactory. To address this limitation, we present an algorithm for generating test runtime-environment-set to exercise mobile apps. Our approach is based on code analysis to systematically test the targeted code of the Android apps. It analyzes the decompiled code that identifies the code related to Android SDK version, generating the corresponding test cases with the runtime-environment set. We also implement our approach on Android, and validate the method with the existing widely used strategies. An empirical study of the practical usefulness of the technique has been presented on 6 widely-used industrial apps. 18 unique crashes have been found, and the method coverage has been increased by far 9.8% to 130.4% on those apps.
[1]
Olga Gadyatskaya,et al.
Fine-grained Code Coverage Measurement in Automated Black-box Android Testing
,
2018,
ACM Trans. Softw. Eng. Methodol..
[2]
Tao Xie,et al.
An Empirical Study of Android Test Generation Tools in Industrial Cases
,
2018,
2018 33rd IEEE/ACM International Conference on Automated Software Engineering (ASE).
[3]
Yue Jia,et al.
Sapienz: multi-objective automated testing for Android applications
,
2016,
ISSTA.
[4]
Iulian Neamtiu,et al.
Targeted and depth-first exploration for systematic testing of android apps
,
2013,
OOPSLA.