摘要
针对当前软件动态数据测试方法存在的测试结果准确性低和测试效率低的问题,提出一种基于粒子群算法的可配置系统软件动态数据测试方法。通过路径覆盖策略对可配置系统中的软件动态数据进行测试。采用粒子群算法寻找可配置系统中软件动态数据的惯性权重,计算软件动态数据的粒子群离散度,根据离散度搜索可配置系统中的软件动态数据。对路径覆盖中的分支路径和实际路径的偏离程度进行计算,采用离散度动态粒子群算法计算分支谓词权重和分支嵌套权重,并综合分支谓词权重和分支嵌套权重,构建可配置系统动态数据测试模型,完成可配置系统中软件动态数据的测试。仿真结果表明,所提方法得到的测试结果准确性高、测试效率高。
For the low accuracy and low efficiency in current method of software dynamic data test,a method for software dynamic data test of configurable system based on particle swarm algorithm was proposed. The path coverage strategy was used to test software dynamic data in configurable system. Then,the particle swarm algorithm was used to search inertia weight of software dynamic data and the particle swarm dispersion degree of software dynamic data was calculated. The software dynamic data was searched based on dispersion degree. Moreover,the degree of deviation between branch path and actual path in path coverage was calculated and the dispersion dynamic particle swarm algorithm was used to calculate the branch predicate weight and the branch nested weight. Meanwhile,the branch predicate weight and the branch nested weight were combined to build the test model of dynamic data in configurable system. Thus,we could complete the test of software dynamic data in configurable system. Simulation results show that the proposed method has high accuracy of test result and high test efficiency.
作者
白凤凤
王三虎
BAI Feng-feng;WANG San-hu(Department of Computer Science and Technology,Lvliang University,Lvliang Shanxi 033000,China)
出处
《计算机仿真》
北大核心
2018年第11期340-343,共4页
Computer Simulation
基金
基于工程教育认证的应用型本科院校软件工程专业教学质量提升研究与实践(J2018193)
关键词
可配置软件
动态数据
测试系统
Configurable software
Dynamic data
Test system