首页 | 本学科首页   官方微博 | 高级检索  
     

基于UML顺序图的测试用例生成
引用本文:李志强,邵培南,朱辉.基于UML顺序图的测试用例生成[J].计算机工程,2010,36(22):58-60.
作者姓名:李志强  邵培南  朱辉
作者单位:(华东计算技术研究所,上海 200233)
摘    要:为生成覆盖测试需求的测试用例集,提出一种基于UML顺序图自动生成测试用例的方法。通过分析待测系统的功能用例,对其进行顺序图建模。在基于该顺序图生成测试用例的过程中,对顺序图添加规约条件,解析顺序图,得到场景测试树,再遍历该树,得到场景的输入、预期输出、约束条件以及场景环境,这4部分组成了测试用例,同时对如何处理复杂的顺序图及如何满足测试用例充分性等问题进行分析总结,提出有效的解决策略。

关 键 词:UML顺序图  软件测试  测试用例生成

Test Cases Generation Based on UML Sequence Diagram
LI Zhi-qiang,SHAO Pei-nan,ZHU Hui.Test Cases Generation Based on UML Sequence Diagram[J].Computer Engineering,2010,36(22):58-60.
Authors:LI Zhi-qiang  SHAO Pei-nan  ZHU Hui
Affiliation:(East-China Institute of Computer Technology, Shanghai 200233, China)
Abstract:In order to generate test cases set that satisfies the requirements of test, a method about generating test cases from UML sequence diagrams is put forward. By analyzing the functions use cases of system to be tested, a sequence diagram is modeled. The process of test cases generation based on this sequence diagram comes. Some constraint is added to the diagram. A scenario tree can be created by parsing it. The input, respected output, constraint and scenario context are generated through a traversing of the scenario tree, and these four also constitute the test case. The paper analyzes and summarizes the problems that how to deal with complex sequence diagrams and satisfy the sufficiency of test cases, and also brings the corresponding effective solutions.
Keywords:UML sequence diagram  software test  test cases generation
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机工程》浏览原始摘要信息
点击此处可从《计算机工程》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号