基于遗传算法的UML活动图测试用例优化研究  被引量:4

Optimized research for test cases of UML activity diagram based on genetic algorithm

在线阅读下载全文

作  者:李浩 陈锋 

机构地区:[1]安徽南瑞继远软件公司,安徽合肥230000 [2]国家电网安徽省电力公司,安徽合肥230000

出  处:《现代电子技术》2015年第19期117-120,124,共5页Modern Electronics Technique

基  金:国家电网公司科技项目资助(2014-06-487-S)

摘  要:测试用例的选择在软件测试中十分重要,良好的测试用例可以减少时间和资源的使用,因此提出了一种基于遗传算法的UML活动图自动生成测试用例的算法。通过建立UML活动图模型,将活动图转换为有向图,然后采用深度优先搜索方法获得测试路径,应用遗传算法优化得到测试路径。该算法可以提供优先需要测试的路径,用于自动生成高质量的测试用例,提高测试任务的工作效率。The selection of test cases in software testing is important,and the better test cases can reduce time and re?source usage. An algorithm of automatic generation test cases of UML activity diagram based on genetic algorithm is proposed. The activity diagram is converted into digraph by establishing UML activity diagram model. The testing path is acquired by adopting depth first search (DFS) method,and obtained by using genetic algorithm optimization. This algorithm can provide the path needed to be tested first to generate high quality test cases automatically. The work efficiency of the test task can be improved.

关 键 词:UML 测试用例 活动图 深度优先搜索算法 遗传算法 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象