Automated Construction of Energy Test Oracles for Android

被引:11
作者
Jabbarvand, Reyhaneh [1 ]
Mehralian, Forough [2 ]
Malek, Sam [2 ]
机构
[1] Univ Illinois, Urbana, IL 61801 USA
[2] Univ Calif Irvine, Irvine, CA USA
来源
PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20) | 2020年
基金
美国国家科学基金会;
关键词
Software Testing; Test Oracle; Deep Learning; Green Software Engineering; Android;
D O I
10.1145/3368089.3409677
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Energy efficiency is an increasingly important quality attribute for software, particularly for mobile apps. Just like any other software attribute, energy behavior of mobile apps should be properly tested prior to their release. However, mobile apps are riddled with energy defects, as currently there is a lack of proper energy testing tools. Indeed, energy testing is a fledgling area of research and recent advances have mainly focused on test input generation. This paper presents ACETON, the first approach aimed at solving the oracle problem for testing the energy behavior of mobile apps. ACETON employs Deep Learning to automatically construct an oracle that not only determines whether a test execution reveals an energy defect, but also the type of energy defect. By carefully selecting features that can be monitored on any app and mobile device, we are assured the oracle constructed using ACETON is highly reusable. Our experiments show that the oracle produced by ACETON is both highly accurate, achieving an overall precision and recall of 99%, and efficient, detecting the existence of energy defects in only 37 milliseconds on average.
引用
收藏
页码:927 / 938
页数:12
相关论文
共 47 条
[1]  
[Anonymous], 2011, ARXIV14090473
[2]  
[Anonymous], 2019, Android Broadcasts Overview
[3]  
[Anonymous], 2019, Android Service Overview
[4]  
[Anonymous], 2020, ACETON TOOL ARTIFACT
[5]  
[Anonymous], 2019, LOCATION MANAGER STR
[6]  
[Anonymous], 2019, Understanding Android Activity Lifecycle
[7]  
[Anonymous], 2019, TREPN POWER PROFILER
[8]   EnergyPatch: Repairing Resource Leaks to Improve Energy-Efficiency of Android Apps [J].
Banerjee, Abhijeet ;
Chong, Lee Kee ;
Ballabriga, Clement ;
Roychoudhury, Abhik .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2018, 44 (05) :470-490
[9]   Detecting Energy Bugs and Hotspots in Mobile Apps [J].
Banerjee, Abhijeet ;
Chong, Lee Kee ;
Chattopadhyay, Sudipta ;
Roychoudhury, Abhik .
22ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (FSE 2014), 2014, :588-598
[10]   The Oracle Problem in Software Testing: A Survey [J].
Barr, Earl T. ;
Harman, Mark ;
McMinn, Phil ;
Shahbaz, Muzammil ;
Yoo, Shin .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (05) :507-525