摘要
为提高软件功能测试的充分性,增加软件测试用例的路径覆盖率,文章引入决策树马尔科夫算法开展软件测试用例自动生成方法设计研究。该研究利用该算法构建软件测试路径规划模型,计算模型转移概率矩阵并确定模型阶数。同时,该研究对测试用例充分性准则进行改进,在确保用例能充分测试软件功能模块的前提下,自动生成测试用例。通过实验证明,该方法生成的软件测试用例能实现测试程序路径的全覆盖,应用这些测试用例可对软件各项功能进行全面检验。
In order to improve the adequacy of software functional testing and increase the path coverage of software test cases,this article introduces the decision tree Markov algorithm to conduct research on the design of automatic generation methods for software test cases.This study uses this algorithm to construct a software testing path planning model,calculate the model transition probability matrix,and determine the model order.At the same time,this study improves the adequacy criteria for test cases by automatically generating test cases while ensuring that the test cases can fully test software functional modules.Through experiments,it has been proven that the software test cases generated by this method can achieve full coverage of the testing program path,and the application of these test cases can comprehensively verify various functions of the software.
作者
龚健
王晟
孙磊
缪慧宇
朱信瑶
GONG Jian;WANG Sheng;SUN Lei;MIAO Huiyu;ZHU Xinyao(State Grid Corporation of China Customer Service Center,Tianjin 300300,China)
出处
《无线互联科技》
2025年第20期76-79,共4页
Wireless Internet Science and Technology
关键词
决策树马尔科夫算法
测试用例
生成
自动
软件
decision tree Markov algorithm
test case
generation
automatic
software