基于UML活动图的测试用例生成方法研究  被引量:6

Research on Automatic Generating Test Case Method Based on UML Activity Diagram

在线阅读下载全文

作  者:苏翠翠[1] 王晓军[1] 

机构地区:[1]南京邮电大学计算机学院,江苏南京210003

出  处:《计算机技术与发展》2010年第8期49-51,55,共4页Computer Technology and Development

基  金:国家科技支撑计划(2007BAH17B04)

摘  要:基于模型的测试用例生成方法已经被软件行业所接受。这种方法的优点在于可以及早地发现缺陷,减少软件开发的时间等等。现在,研究者已经考虑从UML图中获得测试用例。文中介绍了一种从UML2.0活动图中产生测试用例的方法。提出了活动路径覆盖准则,重点分析并发活动的顺序及排列,引入深度优先与广度优先结合的生成算法,避免了测试用例数量爆炸,提高了自动化生成测试用例的可行性,从而为UML活动动图的自动化测试提供了系统的、有效的、可行的方法。Model-based test case generation is gaining acceptance to the software practitioners.Advantages of this are the early detection of faults,reducing software development time etc.In recent times,researchers have considered different UML diagrams for generating test cases.In this paper,present an approach of generating test cases from activity diagrams using UML 2.0 syntax and with use case scope.Also consider a test coverage criterion,called activity path coverage criterion.Then the permutation of intercurrent activity was analyzed.Then BFS and DFS is used in the algorithm.It reduces the number of test cases,promotes the feasibility of automatic generating test case.At last,how to get test case from test scenario was discussed.Thereby automatic generating test case from UML activity diagram became systemic,feasible and effective.

关 键 词:UML活动图 测试场景 测试用例自动生成 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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