首页 | 本学科首页   官方微博 | 高级检索  
     

面向类集成测试序列生成的强化学习研究
引用本文:丁艳茹,张艳梅,姜淑娟,袁冠,王荣存,钱俊彦.面向类集成测试序列生成的强化学习研究[J].软件学报,2022,33(5):1674-1698.
作者姓名:丁艳茹  张艳梅  姜淑娟  袁冠  王荣存  钱俊彦
作者单位:中国矿业大学 矿山数字化教育部工程研究中心, 江苏 徐州 221116;中国矿业大学 计算机科学与技术学院, 江苏 徐州 221116;中国矿业大学 矿山数字化教育部工程研究中心, 江苏 徐州 221116;中国矿业大学 计算机科学与技术学院, 江苏 徐州 221116;桂林电子科技大学 广西可信软件重点实验室, 广西 桂林 541004;广西师范大学 广西多源信息挖掘与安全重点实验室, 广西 桂林 541004
基金项目:国家自然科学基金(61673384, 71774159, 62162004, 51874292); 广西可信软件重点实验室开放课题(kx201608); 广西自然科学基金重点项目(2018GXNSFDA138003)
摘    要:集成测试是软件测试过程中不可缺少的步骤, 针对在集成测试中如何对系统中的类合理排序的问题, 国内外研究者提出了多种生成类集成测试序列的方法, 然而他们大多没有将测试桩复杂度作为评估测试代价的指标.针对该问题, 提出面向类集成测试序列生成的强化学习研究方法, 以总体测试桩复杂度为评价测试代价的指标, 生成测试代价尽可能低...

关 键 词:类集成测试序列  强化学习  测试桩  测试代价  奖励函数
收稿时间:2021/8/10 0:00:00
修稿时间:2021/10/9 0:00:00

Generation Method of Class Integration Test Order Based on Reinforcement Learning
DING Yan-Ru,ZHANG Yan-Mei,JIANG Shu-Juan,YUAN Guan,WANG Rong-Cun,QIAN Jun-Yan.Generation Method of Class Integration Test Order Based on Reinforcement Learning[J].Journal of Software,2022,33(5):1674-1698.
Authors:DING Yan-Ru  ZHANG Yan-Mei  JIANG Shu-Juan  YUAN Guan  WANG Rong-Cun  QIAN Jun-Yan
Affiliation:Engineering Research Center of Mine Digitalization (China University of Mining and Technology), Ministry of Education, Xuzhou 221116, China;College of Computer Science and Technology, China University of Mining and Technology, Xuzhou 221116, China;Engineering Research Center of Mine Digitalization (China University of Mining and Technology), Ministry of Education, Xuzhou 221116, China;College of Computer Science and Technology, China University of Mining and Technology, Xuzhou 221116, China;Guangxi Key Laboratory of Trusted Software (Guilin University of Electronic Technology), Guilin 541004, China; Guangxi Key Laboratory of Multi-Source Information Mining & Security (Guangxi Normal University), Guilin 541004, China
Abstract:Integration testing is an indispensable step in the software testing process. In response to the problem of how to rationally sort the classes in the system in integration testing, researchers at home and abroad have proposed a variety of methods to generate class integration test orders. However, most of them didn''t take the stubbing complexity as the indicator, which is an important factor in evaluating the test cost. In order to solve this problem, this paper proposes a method of generating a class integration test order based on reinforcement learning, using the overall stubbing complexity as the indicator to evaluate the test cost, and generating a class integration test order with the stubbing complexity as low as possible. First, we define the reinforcement learning task and set the pursuit goal of the algorithm according to the task; second, we perform the static analysis of the program and calculate the stubbing complexity according to the results of the analysis; then, we integrate the calculation of the stubbing complexity into the design of the reward function to provide information and basis for choosing the next action; finally, the value function is fed back through the reward function, and the value function is set to ensure that the cumulative reward is maximized. When the agent completes the specified number of training times, the system will select the class integration test order that obtains the largest cumulative reward value for output, which costs the lowest stubbing complexity we pursue. The experimental results show that the results obtained by this method are better than those obtained by other existing methods in terms of the overall stubbing complexity as the evaluation indicator.
Keywords:class integration test order  reinforcement learning  test stub  test cost  reward function
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号