Targeted and depth-first exploration for systematic testing of android apps

Author:

Azim Tanzirul1,Neamtiu Iulian1

Affiliation:

1. University of California, Riverside, Riverside, CA, USA

Abstract

Systematic exploration of Android apps is an enabler for a variety of app analysis and testing tasks. Performing the exploration while apps run on actual phones is essential for exploring the full range of app capabilities. However, exploring real-world apps on real phones is challenging due to non-determinism, non-standard control flow, scalability and overhead constraints. Relying on end-users to conduct the exploration might not be very effective: we performed a 7-use study on popular Android apps, and found that the combined 7-use coverage was 30.08% of the app screens and 6.46% of the app methods. Prior approaches for automated exploration of Android apps have run apps in an emulator or focused on small apps whose source code was available. To address these problems, we present A 3 E, an approach and tool that allows substantial Android apps to be explored systematically while running on actual phones, yet without requiring access to the app's source code. The key insight of our approach is to use a static, taint-style, dataflow analysis on the app bytecode in a novel way, to construct a high-level control flow graph that captures legal transitions among activities (app screens). We then use this graph to develop an exploration strategy named Targeted Exploration that permits fast, direct exploration of activities, including activities that would be difficult to reach during normal use. We also developed a strategy named Depth-first Exploration that mimics user actions for exploring activities and their constituents in a slower, but more systematic way. To measure the effectiveness of our techniques, we use two metrics: activity coverage (number of screens explored) and method coverage. Experiments with using our approach on 25 popular Android apps including BBC News, Gas Buddy, Amazon Mobile, YouTube, Shazam Encore, and CNN, show that our exploration techniques achieve 59.39--64.11% activity coverage and 29.53--36.46% method coverage.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference41 articles.

1. IDC. Android and iOS Surge to New Smartphone OS Record in Second Quarter According to IDC. August 2012. URL http://www.idc.com/getdoc.jsp?containerId=prUS23638712. IDC. Android and iOS Surge to New Smartphone OS Record in Second Quarter According to IDC. August 2012. URL http://www.idc.com/getdoc.jsp?containerId=prUS23638712.

2. Automated testing with targeted event sequence generation

Cited by 69 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Search-based Crash Reproduction for Android Apps;Proceedings of the Genetic and Evolutionary Computation Conference;2024-07-14

2. Aurora: Navigating UI Tarpits via Automated Neural Screen Understanding;2024 IEEE Conference on Software Testing, Verification and Validation (ICST);2024-05-27

3. GuiEvo: Automated Evolution of Mobile App UIs;Proceedings of the 21st International Conference on Mining Software Repositories;2024-04-15

4. An Empirical Study of Regression Testing for Android Apps in Continuous Integration Environment;2023 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM);2023-10-26

5. VRGuide: Efficient Testing of Virtual Reality Scenes via Dynamic Cut Coverage;2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE);2023-09-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3