作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (2): 76-78. doi: 10.3969/j.issn.1000-3428.2009.02.028

• 软件技术与数据库 • 上一篇    下一篇

基于UML的生成场景测试用例研究

郑广成1,2   

  1. (1. 连云港职业技术学院信息工程学院,连云港 222006;2. 江苏大学计算机科学与通信工程学院,镇江 212013)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-01-20 发布日期:2009-01-20

Research on Test Case of Generating Scenario Based on UML

ZHENG Guang-cheng1,2   

  1. (1. Department of Information Engineering, Lianyungang Technical College, Lianyungang 222006; 2. College of Computer Science and Telecommunication Engineering, Jiangsu University, Zhenjiang 212013)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-01-20 Published:2009-01-20

摘要: 使用UML生成场景测试用例,有利于测试者设计测试用例。使用UML的类图、状态图和顺序图来说明DHCP实例的场景测试用例的生成方法,讨论基于UML顺序图生成场景测试用例的方法,从找出场景到生成测试用例,分析与每一个场景相关的环境条件并将它与方法序列、输入、输出合理组合作为覆盖该场景的测试用例。结果表明,该方法生成的测试用例数量少,减少了测试工作量和测试用例的重复生成。

关键词: UML顺序图, 场景测试, 测试用例, 用例场景, 测试用例生成

Abstract: Test case of generating scenario based on UML is very helpful for the design of test case. The method of a DHCP generating scenario test case is illustrated by using UML sequence diagram, integrate class graph and state graph. The test method based on UML sequence diagram are discussed, from finding scenario to generating test. And the environment condition of every scenario are analysed, and turn methods array, put in, put out into test case of this scenario. Result shows, test cases are few, and it reduces not only test operation amount but also repeat generating of test case.

Key words: UML sequence diagram, scenario test, test case, scenario of test case, test case generation

中图分类号: