

浏览全部资源
扫码关注微信
1.中国矿业大学矿山数字化教育部工程研究中心,江苏徐州 221116
2.中国矿业大学计算机科学与技术学院,江苏徐州 221116
3.广西可信软件重点实验室(桂林电子科技大学),广西桂林541004
4.南方科技大学工学院计算机科学与工程系,广东深圳 518055
Received:08 May 2021,
Revised:2022-05-31,
Published:25 February 2023
移动端阅览
张颖辉,张艳梅,张志成等.基于深度强化学习的类集成测试序列生成方法[J].电子学报,2023,51(02):455-466.
ZHANG Ying-hui,ZHANG Yan-mei,ZHANG Zhi-cheng,et al.Generation Method of Class Integration Test Order Based on Deep Reinforcement Learning[J].ACTA ELECTRONICA SINICA,2023,51(02):455-466.
张颖辉,张艳梅,张志成等.基于深度强化学习的类集成测试序列生成方法[J].电子学报,2023,51(02):455-466. DOI: 10.12263/DZXB.20210688.
ZHANG Ying-hui,ZHANG Yan-mei,ZHANG Zhi-cheng,et al.Generation Method of Class Integration Test Order Based on Deep Reinforcement Learning[J].ACTA ELECTRONICA SINICA,2023,51(02):455-466. DOI: 10.12263/DZXB.20210688.
类集成测试序列的生成是面向对象软件测试中的关键步骤,当类的测试序列不同时,相应的测试代价也不相同.在集成测试中生成一个合理的类集成测试序列可以有效降低软件测试的代价.本文将深度强化学习中的Advantage Actor-Critic算法应用于解决类集成测试序列生成问题.首先,利用类间各种依赖关系构建与智能体交互的环境模型;然后,记录智能体从初始状态到终止状态的路径,即每次选择的动作对应每次选择集成到序列的类编号;最后,得出最终的类集成测试序列.实验结果表明,本文方法所得到的类集成测试序列花费的总体测试桩复杂度,在选取的7个项目中有5个表现最佳,在剩余2个项目中表现中等.
The generation of class integration test order is the key step in object-oriented software testing. When the class integration test order is different
the corresponding test cost is different. Generating a reasonable class integration test order in integration testing can effectively reduce the cost of software testing. This paper applies the advantage actor-critic algorithm in deep reinforcement learning to solve the problem of class integration test order generation. Firstly
the environment model of interaction with agents is constructed by using various dependencies between classes. Then
the path of the agent from the initial state to the termination state is recorded
that is
each selected action corresponds to each selected class number integrated into the order. Finally
the final class integration test order is obtained. The experimental results show that the total test stubs complexity of class integration test order cost obtained by the method in this paper has the best performance in 5 out of 7 selected subjects
and the average performance in the remaining 2 subjects.
KUNG D , GAO J , HSIA P , et al . A test strategy for object-oriented programs [C]// Proceedings of the 19th Annual International Computer Software and Applications Conference . Texas : IEEE , 1995 : 239 - 244 .
BRIAND L C , FENG J , LABICHE Y . Using genetic algorithms and coupling measures to devise optimal integration test orders [C]// Proceedings of the 14th International Conference on Software Engineering and Knowledge Engineering . Ischia : Association for Computing Machinery , 2002 : 43 - 50 .
CZIBULA G , CZIBULA I G , MARIAN Z . An effective approach for determining the class integration test order using reinforcement learning [J]. Applied Soft Computing , 2018 , 65 : 517 - 530 .
KUNG D C , GAO J , PEI H , et al . On regression testing of object-oriented programs [J]. Journal of Systems and Software , 2015 , 32 ( 1 ): 21 - 40 .
TAI K C , DANIELS F J . Test order for inter-class integration testing of object-oriented software [C]// Proceedings of the 21st Annual International Computer Software and Applications Conference . Washington : IEEE , 1997 : 602 - 607 .
LE TRAON Y , JÉRON T , JÉZÉQUEL J M , et al . Efficient object-oriented integration and regression testing [J]. IEEE Transactions on Reliability , 2000 , 49 ( 1 ): 12 - 25 .
BRIAND L C , LABICHE Y , WANG Y . An investigation of graph-based class integration test order strategies [J]. IEEE Transactions on Software Engineering , 2003 , 29 ( 7 ): 594 - 607 .
LE HANH V , AKIF K , LE TRAON Y , et al . Selecting an efficient OO integration testing strategy: An experimental comparison of actual strategies [C]// Proceedings of the European Conference on Object-Oriented Programming . Heidelberg : Springer , 2001 : 381 - 401 .
ZAIDMAN A , DEMEYER S . Automatic identification of key classes in a software system using webmining techniques [J]. Journal of Software Maintenance and Evolution: Research and Practice , 2008 , 20 ( 6 ): 387 - 417 .
HASHIM N L , SCHMIDT H W , RAMAKRISHNAN S . Test order for class-based integration testing of java applications [C]// Proceedings of the 5th International Conference on Quality Software . Victoria : IEEE , 2005 : 11 - 18 .
张艳梅 , 姜淑娟 , 张红昌 . 一种基于动态依赖关系的类集成测试方法 [J]. 计算机学报 , 2011 ( 6 ): 1075 - 1089 .
ZHANG Y M , JIANG S J , ZHANG H C . A method of class integration testing based on dynamic dependency [J]. Chinese Journal of Computers , 2011 ( 6 ): 1075 - 1089 . (in Chinese)
张艳梅 . 基于依赖性分析的面向对象程序测试技术研究 [D]. 徐州 : 中国矿业大学 , 2012 .
ZHANG Y M . Research on Testing Technology of Object-Oriented Programs Based on Dependency Analysis [D]. Xuzhou : China University of Mining and Technology , 2012 . (in Chinese)
CHEN Q , LI X . An order-assigned strategy of classes integration testing based on test level [C]// Proceedings of the 8th International Conference on Computer Supported Cooperative Work in Design . Heidelberg : Springer , 2004 : 653 - 657 .
郑磊 . 面向对象集成测试的分层增量测试策略 [D]. 上海 : 上海交通大学 , 2007 .
ZHENG L . Layered and Incremental Strategy for Objected-Oriented Integration Testing [D]. Shanghai : Shanghai Jiaotong University , 2007 . (in Chinese)
BORNER L , PAECH B . Integration test order strategies to consider test focus and simulation effort [C]// Proceedings of the 1st International Conference on Advances in System Testing and Validation Lifecycle . Proto : IEEE , 2009 : 80 - 85 .
WANG Z , LI B , WANG L , et al . Using coupling measure technique and random iterative algorithm for inter-class integration test order problem [C]// Proceedings of the IEEE 34th Annual Computer Software and Applications Conference Workshops . Seoul : IEEE , 2010 : 329 - 334 .
WANG Z , LI B , WANG L , et al . A brief survey on automatic integration test order generation [C]// Proceedings of the 23rd International Conference on Software Engineering and Knowledge Engineering . Miami Beach : ACM , 2011 : 254 - 257 .
VERGILIO S R , POZO A , ÁRIAS J C G , et al . Multi-objective optimization algorithms applied to the class integration and test order problem [J]. International Journal on Software Tools for Technology Transfer , 2012 , 14 ( 4 ): 461 - 475 .
ASSUNÇÃO W K G , COLANZI T E , POZO A T R , et al . Establishing integration test orders of classes with several coupling measures [C]// Proceedings of the 13th Annual Conference on Genetic and Evolutionary Computation . Dublin : ACM , 2011 : 1867 - 1874 .
DEB K , AGRAWAL S , PRATAP A , et al . A fast elitist non-dominated sorting genetic algorithm for multi-objective optimization: NSGA-II [C]// Proceedings of the International Conference on Parallel Problem Solving From Nature . Berlin : Springer , 2000 : 849 - 858 .
ZITZLER E , LAUMANNS M , THIELE L . SPEA2: Improving the strength Pareto evolutionary algorithm [J]. TIK-report , 2001 : 103 .
KNOWLES J D , CORNE D W . Approximating the nondominated front using the pareto archived evolution strategy [J]. Evolutionary Computation , 2014 , 8 ( 2 ): 149 - 172 .
JAROENPIBOONKIT J , SUWANNASART T . Finding a test order using object-oriented slicing technique [C]// Proceedings of the 14th Asia-Pacific Software Engineering Conference . Aichi : IEEE Computer Society , 2007 : 49 - 56 .
刘颖莲 . 面向对象软件集成测试策略研究 [D]. 北京 : 北京邮电大学 , 2013 .
LIU Y L . Research of Object-Oriented Software Integration Testing Strategy [D]. Beijing : Beijing University of Post and Telecommunications , 2013 . (in Chinese)
赵玉丽 , 王莹 , 于海 等 . 基于复杂网络的类间集成测试序列生成方法 [J]. 东北大学学报(自然科学版) , 2015 , 36 ( 12 ): 1696 - 1700 .
ZHAO Y L , WANG Y , YU H , et al . An inter-class integration test order generation method based on complex networks [J]. Journal of Northeastern University (Natural Science) , 2015 , 36 ( 12 ): 1696 - 1700 . (in Chinese)
王莹 , 于海 , 朱志良 . 基于软件节点重要性的集成测试序列生成方法 [J]. 计算机研究与发展 , 2016 , 53 ( 3 ): 517 - 530 .
WANG Y , YU H , ZHU Z L . A class integration test order method based on the node importance of software [J]. Journal of Computer Research and Development , 2016 , 53 ( 3 ): 517 - 530 . (in Chinese)
ZAIDMAN A , CALDERS T , DEMEYER S , et al . Applying webmining techniques to execution traces to support the program comprehension process [C]// Proceedings of the 9th European Conference on Software Maintenance and Reengineering . Manchester : IEEE Computer Society , 2005 : 134 - 142 .
HESSEL M , MODAYIL J , HASSELT H V , et al . Rainbow: Combining improvements in deep reinforcement learning [EB/OL].( 2017-10-06 )[ 2021-05-08 ]. https://arxiv.org/abs/1710.02298 https://arxiv.org/abs/1710.02298 .
黄志清 , 曲志伟 , 张吉 , 等 . 基-于深度强化学习的端到端无人驾驶决策 [J]. 电子学报 , 2020 , 48 ( 9 ): 1711 - 1719 .
HUANG Z Q , QU Z W , ZHANG J , et al . End-to-end autonomous driving decision based on deep reinforcement learning [J]. Acta Electronica Sinica , 2020 , 48 ( 9 ): 1711 - 1719 . (in Chinese)
刘春阳 , 谭应清 , 柳长安 , 等 . 多智能体强化学习在足球机器人中的研究与应用 [J]. 电子学报 , 2010 , 38 ( 8 ): 1958 - 1962 .
LIU C Y , TAN Y Q , LIU C A , et al . Application of multi-agent reinforcement learning in robot soccer [J]. Acta Electronica Sinica , 2010 , 38 ( 8 ): 1958 - 1962 . (in Chinese)
WANG F Y , ZHANG J J , ZHENG X , et al . Where does AlphaGo go: From church-turing thesis to AlphaGo thesis and beyond [J]. IEEE/CAA Journal of Automatica Sinica , 2016 , 3 ( 2 ): 113 - 120 .
QIANG W , ZHONG L Z . Reinforcement learning model, algorithms and its application [C]// Proceedings of the 2011 International Conference on Mechatronic Science . Jilin : IEEE , 2011 : 1143 - 1146 .
VAN HASSELT H , GUEZ A , SILVER D . Deep reinforcement learning with double q-learning [C]// Proceedings of the 30th AAAI Conference on Artificial Intelligence . Phoenix : Arizona , 2016 : 2094 - 2100 .
JANG H C , HUANG Y C , CHIU H A . A study on the effectiveness of A2C and A3C reinforcement learning in parking space search in urban areas problem [C]// Proceedings of the 2020 International Conference on Information and Communication Technology Convergence . Jeju Island : IEEE , 2020 : 567 - 571 .
ZHANG M , JIANG S J , ZHANG Y M , et al . A multi-level feedback approach for the class integration and test order problem [J]. Journal of Systems and Software , 2017 , 133 : 54 - 67 .
TAN A H , LU N , XIAO D . Integrating temporal difference methods and self-organizing neural networks for reinforcement learning with delayed evaluative feedback [J]. IEEE Transactions on Neural Networks , 2008 , 19 ( 2 ): 230 .
SCHAUL T , QUAN J , ANTONOGLOU I , et al . Prioritized experience replay [EB/OL]. ( 2015-11-18 )[ 2021-05-08 ]. https://arxiv.org/abs/1511.05952 https://arxiv.org/abs/1511.05952 .
BRIAND L C , LABICHE Y , WANG Y . Revisiting strategies for ordering class integration testing in the presence of dependency cycles [C]// Proceedings of the 12th International Symposium on Software Reliability Engineering . Hong Kong : IEEE , 2001 : 287 - 296 .
张悦宁 , 姜淑娟 , 张艳梅 . 基于梦境粒子群优化的类集成测试序列生成方法 [J]. 计算机科学 , 2019 , 46 ( 2 ): 168 - 174 .
ZHANG Y N , JIANG S J , ZHANG Y M . Approach for generating class integration test sequence based on dream particle swarm optimization algorithm [J]. Computer Science , 2019 , 46 ( 2 ): 168 - 174 . (in Chinese)
0
Views
11
下载量
0
CSCD
Publicity Resources
Related Articles
Related Author
Related Institution
京公网安备11010802024621