期刊文献+

基于反射特征的Android测试用例自动生成 被引量:1

Automatic Generation of Android Test Cases Based on Reflection Features
在线阅读 下载PDF
导出
摘要 随着Android应用软件数量的急速增加,Android应用质量的重要性越来越受到人们的重视.测试是高质量软件的重要保证,而测试用例生成技术是自动化测试的关键.数据显示,在Google Play中有将近88%的Android应用程序使用了反射.然而,现有的Android测试用例自动生成方法通常没有考虑反射技术的使用,无法检测出反射隐藏的恶意行为.为了进一步提高软件质量,本文提出一种新的Android测试用例生成方法,结合反射特征构造Android应用程序多粒度模型,同时对反射关系进行分析,生成能到达反射的调用路径,并利用自适应遗传算法生成覆盖反射路径的测试用例,对含反射特征的Android应用进行测试.为验证本文方法,分别从Android应用多粒度模型有效性及测试方法效率两方面对本文方法有效性进行评估.实验结果表明,本文提出的基于反射特征的Android测试用例自动生成方法对于反射的检测效果更好并且效率更高. With the rapid increase in the number of Android applications,more importance is attached to the quality of Android applications.Testing is an important guarantee for high-quality software,and test case generation technology is the key to automated testing.Data shows that nearly 88%of Android applications in Google Play use reflection.The existing automatic test case generation methods for Android,however,usually do not consider the use of reflection and cannot detect the malicious behavior hidden by reflection.To further improve software quality,this study proposes a new test case generation method for Android,which uses reflection features to construct a multi-grain model of Android applications.Meanwhile,it analyzes reflection relationships to generate call paths that can reach reflection and employs the adaptive genetic algorithm to generate test cases that cover reflection paths to test Android applications with reflection features.For verification,the effectiveness of this method is evaluated in terms of the effectiveness of the multi-grain model of Android applications and the efficiency of the test method.The experimental results reveal that the automatic test case generation method for Android,which is based on reflection features,is more effective and efficient in detecting reflection.
作者 闫怡梦 赵瑞莲 王微微 尚颖 YAN Yi-Meng;ZHAO Rui-Lian;WANG Wei-Wei;SHANG Ying(College of Information Science and Technology,Beijing University of Chemical Technology,Beijing 100029,China)
出处 《计算机系统应用》 2022年第12期350-358,共9页 Computer Systems & Applications
基金 国家自然科学基金(62077003)
关键词 反射机制 ANDROID应用 Android多粒度模型 自适应遗传算法 测试用例生成 reflection mechanism Android application Android multi-grain model adaptive genetic algorithm test case generation
作者简介 通信作者:赵瑞莲,E-mail:rlzhao@mail.buct.edu.cn
  • 相关文献

参考文献6

二级参考文献44

  • 1宋尧,仰燕兰,叶桦.改进遗传算法在MSPSP问题中的验证[J].计算机系统应用,2020(10):235-241. 被引量:5
  • 2薛云志,陈伟,王永吉,赵琛,王青.一种基于Messy GA的结构测试数据自动生成方法[J].软件学报,2006,17(8):1688-1697. 被引量:14
  • 3Harman M, Mcminn P, Wegener J. The impact of input domain reduction on search based test data generation. Antonia Bertolinoed. Proc. of the the 6th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on The Foundations of Software Engineering. New York: ACM Press, 2007:155-156.
  • 4Zheng L, Harman M, Hiemns RM. Search algorithm for regression test case prioritization. IEEE Trans. on Software Engineering, 2007,33(4):225-228.
  • 5Bemdt D, Fisher J, Johnson, et al. Breeding software testcases with genetic algorithm. Proc. of the 36th Hawaii International Conference on System Sciences. IEEE Press, 2002:1-4.
  • 6Bryce RC, Colboum CJ. Constructing interaction test suites with greedy algorithm. The Proc. of ASE'05. Califormina, ACM Press, 2005. 124-136.
  • 7Girgis MR. Automatic test data generation for data flow testing using a genetic algorithm. Journal of Universal Computer Science, 2005,11 (6):898-915.
  • 8Rapps S, Weyuker EJ. Selecting software test data using data flow information. IEEE Trans. on Software Engineering, 1985,11(4):367-375.
  • 9Frankl PG, Weyuker EJ. An applicable family of data flow testing criteria. IEEE Transl on Software Engineering, 1988: 1483-1498.
  • 10AHmed SG, Harrold MJ. Using genetic algorithms to aid test-data generation for data-flow coverage. Proc. of the 14th Asia-Pacific Software Engineering Conference. Nagoya: IEEE Press, 2007:41-48.

共引文献53

同被引文献11

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部