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

一种面向形式化表格需求模型的测试用例生成方法
引用本文:汪文轩,胡军,胡建成,康介祥,王辉,高忠杰.一种面向形式化表格需求模型的测试用例生成方法[J].计算机科学,2021,48(5):16-24.
作者姓名:汪文轩  胡军  胡建成  康介祥  王辉  高忠杰
作者单位:南京航空航天大学计算机科学与技术学院 南京211106;软件新技术与产业化协同创新中心 南京211107;中国航空无线电电子研究所软件部 上海200233
基金项目:国家重点基础研究发展计划(973计划)项目(2014CB744900);2020年度重庆市出版专项资金资助项目。
摘    要:现代安全关键性系统的软件规模和复杂性的快速增长给这类安全关键性软件系统的开发带来了很多挑战。传统文本文档的需求描述方法无法保证此类系统的开发进度和系统可靠性要求。为此文中提出了一种兼具可读性和可自动分析的形式化表格需求建模方法。文中介绍了一种针对这种表格模型测试用例的自动生成方法,工作包括对该形式化需求表格模型展开语义分析,建立需求模型的控制树结构,得到其测试等价类;为了减少不必要的测试,定义了不同安全级别的软件需求模型的测试覆盖标准,并针对不同覆盖率准则分别给出基于控制树结构的测试路径约束选择方法;对于每条路径约束测试等价类,提出了基于域错误的测试用例选择方法,能够自动生成所需的检测域错误的测试用例集。最后,通过一个需求模型实例展示了所提方法的有效性。

关 键 词:测试用例生成  表格需求模型  形式化需求模型  安全关键性系统

Test Case Generation Method Oriented to Tabular Form Formal Requirement Model
WANG Wen-xuan,HU Jun,HU Jian-cheng,KANG Jie-xiang,WANG Hui,GAO Zhong-jie.Test Case Generation Method Oriented to Tabular Form Formal Requirement Model[J].Computer Science,2021,48(5):16-24.
Authors:WANG Wen-xuan  HU Jun  HU Jian-cheng  KANG Jie-xiang  WANG Hui  GAO Zhong-jie
Affiliation:(College of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 211106,China;Collaborative Innovation Center of Novel Software Technology and Industrialization,Nanjing 211107,China;Department of Software,China National Aeronautic Radio Electronics Research Institute,Shanghai 200233,China)
Abstract:The rapid growth of the software size and complexity of modern safety-critical systems has brought many challenges to the development of such safety-critical software systems.Traditional text documents cannot guarantee the development progress and system reliability requirements.For this reason,this paper proposes a formal form requirement modeling method with both readability and automatic analysis.This paper introduces a method for automatically generating test cases for this tabular model.The work includes semantic analysis of the formal requirements tabular model,establishing the control tree structure of the requirements model,and obtaining its test equivalence classes.In order to reduce unnecessary testing,test path constraint selection methods are proposed based on those criteria.Through performing domain error test case selection,test cases are generated for each path constraint selected,which makes up a test case set for the requirement.At last,to demonstrate how we generate test cases form a requirement model,a case study is given.
Keywords:Test case generation  Tabular requirement model  Formal requirement model  Safety-critical system
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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