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

UML模型驱动的划分测试用例生成方法研究
引用本文:王瑞雪,张 涛.UML模型驱动的划分测试用例生成方法研究[J].计算机应用研究,2012,29(9):3334-3337.
作者姓名:王瑞雪  张 涛
作者单位:1. 1. 中国科学院大学, 北京 100049; 2. 中国科学院空间科学与应用总体部, 北京 100094
2. 中国科学院空间科学与应用总体部,北京,100094
基金项目:中国科学院国防科技创新基金资助项目(CXJJ-11-Q74)
摘    要:测试用例的自动生成是软件测试研究的主要方向之一。针对现有的UML模型驱动测试方法在测试数据生成方面存在低效、无目的性、冗余等问题,提出了基于UML活动图模型驱动的划分测试用例自动生成方法。该方法将测试场景归为五种类型,并为每种类型规划了测试数据取值范围和选择方法。构建了基于该方法的原型工具软件,提供被测软件原模型和数据约束即可生成测试用例。实验结果表明,该方法能够在不降低测试覆盖率的情况下,能生成数量少、针对性强的测试用例集。

关 键 词:软件测试  测试用例生成  UML活动图  划分测试

Using partition method to generate test cases from UML diagrams
WANG Rui-xue,ZHANG Tao.Using partition method to generate test cases from UML diagrams[J].Application Research of Computers,2012,29(9):3334-3337.
Authors:WANG Rui-xue  ZHANG Tao
Affiliation:1. University of Chinese Academy of Sciences, Beijing 100049, China; 2. General Establishment of Space Science & Application, Chinese Academy of Sciences, Beijing 100094, China
Abstract:Generating test cases automatically is one of the main directions of the software testing research. There are a few problems such as inefficient data, no purpose, redundant, in the existing UML model-driven test methods. This paper proposed a new method to generate test case based on UML model-driven, which used partition theory to classify test scenarios into five types, and designed different ranges and ways to choose test data. And also designed a tool which realized this method. And demonstrated a tool to realize this method, which could generate test case automatically by supplied UML diagrams and data constraints of the software under test. Experimental result shows that the test cases get by this method are smaller number and targeted.
Keywords:software testing  test cases generation  UML activity diagrams  partition testing
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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