%A Song Huang, Sen Yang, Yongming Yao, and Lele Chen %T Equivalent Version Sets Testing Method for Android Applications based on Code Analysis %0 Journal Article %D 2019 %J Int J Performability Eng %R 10.23940/ijpe.19.07.p28.20082018 %P 2008-2018 %V 15 %N 7 %U {https://www.ijpe-online.com/CN/abstract/article_4187.shtml} %8 2019-07-20 %X The Android system is an open source mobile operating system that has been released in numerous versions. Android fragmentation is becoming more and more serious. This paper shows how different Android runtime environments affect test coverage results. To address this limitation, we run apps on all Android versions to collect coverage rate and also present an algorithm to generate equivalent test runtime-environment-set to exercise mobile apps. Our approach is to systematically test the targeted code of Android apps based on code analysis. It analyzes the decompiled code that identifies the code related to the Android SDK version and then generates the corresponding test cases. An empirical study of the practical usefulness of the technique is presented for six widely-used industrial apps. The test result shows that our equivalence test runtime-environment-set only requires less than half of all versions, which dramatically reduces the test resources. Moreover, the method coverage of these applications increased by an average of 49.3% on all versions and 46.8% on equivalent test runtime-environment-set, respectively.