文档介绍:第 8期计算机技术与发展 No,8
2010年 PUTERTECHN OLCK;-Y ’MENT Aug. 2010
基于 UML活动图的测试用例生成方法研究
苏翠翠,王晓军
(南京邮电大学计算机学院,江苏南京 210003)
摘要:基于模型的测试用例生成方法已经被软件行业所接受。这种方法的优点在于可以及早地发现缺陷,减少软件开
发的时间等等。现在,研究者已经考虑从 UML图中获得测试用例。文中介绍了一种从
的方法。提出了活动路径覆盖准则,重点分析并发活动的顺序及排列,引入深度优先与广度优先结合的生成算法,避免了
测试用例数量爆炸,提高了自动化生成测试用例的可行性,从而为 UML活动动图的自动化测试提供了系统的、有效的、可
行的方法。
关键词:UML活动图;测试场景;测试用例自动生成
中图分类号:1] 文献标识码:A 文章编号:1673—629x(2010)O8—0049—03
Research on Automatic Generating Test Case Method Based on
UM L Activity Diagram
suCui—cui,WANG Xiao-jun
(School puter,Nanjing of Posts& of (School University Telemmmunications,Nanjing210003,China)
Abstract:Model—basedcasetest generation gaining acceptance is to the so ftw ar e detectionofthisearly
of faults, reducing softwar e developm ent tim e etc. Inrecent tim es,researchers have considered different U M Ldiagrams generating for
test paper,presentthis an approachgenerating of test cases from activitydiagrams using UM L sy11t and with case rise
m ope. Alsocoverageconsider atest criterion, activity called path coverage criterion. T hen the permutationof intercurrentw activity &s
and DFS in is reduces numberthe eases,prolnotes automatic oftest of generat* thefeasibility
ing test last,howget t