Computer Science ›› 2018, Vol. 45 ›› Issue (9): 99-103.doi: 10.11896/j.issn.1002-137X.2018.09.015

• NASAC 2017 • Previous Articles     Next Articles

Rule-driven DFS Testing Technology for Android Application

YE Jia1, GE Hong-jun2, CAO Chun2, ZHU Jin1, ZHANG Ying2   

  1. Terminal Business Division,ZTE Corporation,Nanjing 210012,China1
    Department of Computer Science and Technology,Nanjing University,Nanjing 210046,China2
  • Received:2017-12-15 Online:2018-09-20 Published:2018-10-10

Abstract: Automated GUI testing is the important part of Android application research field.Several technologies for automated Android GUI testing have attracted wide attention.Testing technology based on DFS exploration has been extensively used among them.However,the existing DFS testing technology is still inefficient and has low testing co-verage.This paper proposed an improved approach by driving the DFS automated exploration with external predefined rulesto improve the efficiency and coverage.A testing tool called RDTA based on the proposed approach was implemented and the performance of RDTA was evaluated by comparing to Monkey and original DFS without rules.The result verifies the effectiveness of the approach.

Key words: Android testing, Coverage, DFS, Rule-driven, Test efficiency

CLC Number: 

  • TP311
[1]DU R Y,WANG C H,HE K.Location Privacy Protection Technology on Smart Mobile Devices[J].ZTE Communications,2015,21(3):23-29.(in Chinese)
杜瑞颖,王持恒,何琨.智能移动终端的位置隐私保护技术[J].中兴通讯技术,2015,21(3):23-29.
[2]CHOUDHARY S R,GORLA A,ORSO A.Automated test input generation for android:Are we there yet?[C]∥2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE).IEEE,2015:429-440.
[3]MACHIRY A,TAHILIANI R,NAIK M.Dynodroid:An input generation system for android apps[C]∥Proceedings of the 2013 9th Joint Meeting on Foundations of Software Enginee-ring.ACM,2013:224-234.
[4]AMALFITANO D,FASOLINO A R,TRAMONTANA P,et
al.Using GUI ripping for automated testing of Android applications[C]∥Proceedings of the 27th IEEE/ACM International Conference on Automated Software Engineering.ACM,2012:258-261.
[5]AZIM T,NEAMTIU I.Targeted and depth-first exploration for systematic testing of android apps[C]∥ACM SIGPLAN Notices.ACM,2013:641-660.
[6]MEMON A M,BANERJEE I,NAGARAJAN A.GUI Ripping:Reverse Engineering of Graphical User Interfaces for Testing[C]∥2003 10th Working Conference on Reverse Engineering.2003:260.
[7]ANBUNATHAN R,BASU A.A recursive crawler algorithm to detect crash in Android application[C]∥2014 IEEE Internatio-nal Conference on Computational Intelligence and Computing Research (ICCIC).IEEE,2014:1-4.
[8]MAHMOOD R,MIRZAEI N,MALEK S.Evodroid:Segmented evolutionary testing of android apps[C]∥Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering.ACM,2014:599-609.
[9]MIRZAEI N,MALEK S,PŠSŠREANU C S,et al.Testing android apps through symbolic execution[J].ACM SIGSOFT Software Engineering Notes,2012,37(6):1-5.
[10]AMALFITANO D,FASOLINO A R,TRAMONTANA P,et
al.A toolset for GUI testing of Android applications[C]∥2012 28th IEEE International Conference on Software Maintenance (ICSM).IEEE,2012:650-653.
[11]AMALFITANO D,FASOLINO A R,TRAMONTANA P.A
gui crawling-based technique for android mobile application testing[C]∥2011 IEEE Fourth International Conference on Software Testing,Verification and Validation Workshops (ICSTW).IEEE,2011:252-261.
[12]LI X,JIANG Y,LIU Y,et al.User guided automation for testing mobile apps[C]∥2014 21st Asia-Pacific Software Engineering Conference (APSEC).IEEE,2014:27-34.
[13]ZHANG C,XUE Y Z,CHEN J C.Design and application of Android platform-based GUI capture-replay testing tool[J].Computer Application and Software,2012,29(12):6-9.(in Chinese)
张灿,薛云志,陈军成.一种基于 Android 平台 GUI 录制回放工具的设计与实现[J].计算机应用与软件,2012,29(12):6-9.
[14]CHOI W,NECULA G,SEN K.Guided gui testing of android apps with minimal restart and approximate learning[C]∥ACM SIGPLAN Notices.ACM,2013:623-640.
[15]ZHANG D W,GUO X,HAN Z.Security and Trusted Intelli-gent Mobile Terminal [J].ZTE Communications,2015,21(5):39-44.(in Chinese)
张大伟,郭烜,韩臻.安全可信智能移动终端研究[J].中兴通讯技术,2015,21(5):39-44.
[1] WANG Fang-hong, FAN Xing-gang, YANG Jing-jing, ZHOU Jie, WANG De-en. Strong Barrier Construction Algorithm Based on Adjustment of Directional Sensing Area [J]. Computer Science, 2022, 49(6A): 612-618.
[2] FAN Xing-ze, YU Mei. Coverage Optimization of WSN Based on Improved Grey Wolf Optimizer [J]. Computer Science, 2022, 49(6A): 628-631.
[3] CHEN Zhuang, ZOU Hai-tao, ZHENG Shang, YU Hua-long, GAO Shang. Diversity Recommendation Algorithm Based on User Coverage and Rating Differences [J]. Computer Science, 2022, 49(5): 159-164.
[4] SUN Hai-hua, ZHOU Si-yuan, TAN Guo-ping, ZHANG Zhi. Fine-grained Performance Analysis of Uplink in Wireless Relay Network Based on Stochastic Geometry [J]. Computer Science, 2021, 48(2): 64-69.
[5] LIU Fang, HONG Mei, WANG Xiao, GUO Dan, YANG Zheng-hui, HUANG Xiao-dan. Performance Analysis of Randoop Automated Unit Test Generation Tool for Java [J]. Computer Science, 2020, 47(9): 24-30.
[6] QI Wei, YU Hui-qun, FAN Gui-sheng, CHEN Liang. WSN Coverage Optimization Based on Adaptive Particle Swarm Optimization [J]. Computer Science, 2020, 47(7): 243-249.
[7] JIANG Rui, YIN Hui, XU You-yun. Millimeter-wave Beamforming Scheme Based on Location Fairness Guarantee for HSR Communications [J]. Computer Science, 2020, 47(10): 269-274.
[8] JIANG Yi-bo, HE Cheng-long, MEI Jia-dong, WANG Nian-hua. K-level Region Coverage Enhancement Algorithm Based on Irregular Division [J]. Computer Science, 2019, 46(5): 67-72.
[9] JIANG Yi-bo, WANG Wei, HE Cheng-long. Sub-regional Dynamic Optimization Algorithm for Path Coverage of Single Target [J]. Computer Science, 2019, 46(11A): 369-375.
[10] WANG Fang-hong, LI Tao, JIN Ying-dong, HU Zhen-hao. Directional Strong Barrier Constructing Scheme Based on Node Approximate Circle [J]. Computer Science, 2019, 46(11A): 393-398.
[11] ZHOU Jie, YU Zhi-yong, GUO Wen-zhong, GUO Long-kun and ZHU Wei-ping. Participant Selection Algorithm for t-Sweep k-Coverage Crowd Sensing Tasks [J]. Computer Science, 2018, 45(2): 157-164.
[12] FAN Xing-gang, LIU Tao, HU Feng-dan, HAO Xiang. Swarm Intelligence Algorithm for Prolonging Target Coverage Network Lifetime [J]. Computer Science, 2018, 45(12): 86-91.
[13] HUANG Yu-yao, LI Feng-ying, CHANG Liang and MENG Yu. Symbolic ZBDD-based Generation Algorithm for Combinatorial Testing [J]. Computer Science, 2018, 45(1): 255-260.
[14] ZHENG Tong, GUO Wei-bin and FAN Gui-sheng. Research on Optimization Method of Merging and Prefetching for Massive Small Files in HDFS [J]. Computer Science, 2017, 44(Z11): 516-519.
[15] DU Hong-guang, LEI Zhou and CHEN Sheng-bo. Data Block Density Scheduling Strategy Based on HDFS in Shared Cluster [J]. Computer Science, 2017, 44(Z11): 510-515.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!