计算机与现代化

• 信息安全 • 上一篇    下一篇

基于布尔表达式约束的测试用例生成技术

  

  1. (1.南华大学计算机学院,湖南衡阳421001;2.中国核动力研究设计院核反应堆系统设计技术重点实验室,四川成都610041)
  • 收稿日期:2018-11-13 出版日期:2019-01-30 发布日期:2019-01-30
  • 作者简介:孙溢(1994-),男,江西赣州人,硕士研究生,研究方向:软件测试,E-mail: 15211495098@163.com; 通信作者:阳小华(1963-),男,湖南衡阳人,教授,博士,研究方向:可信计算,核系统安全,E-mail: xiaohua1963@foxmail.com; 刘杰(1974-),男,湖南衡阳人,副教授,博士,研究方向:可信计算,核设施安全。
  • 基金资助:
    中国核动力重点实验室基金资助项目(LRSDT2017304); 湖南省教育厅科学研究项目(17C1378); 南华大学研究生科学基金资助项目(2018KYY082)

Test Case Generation Techniques Based on Constraints Presented as Boolean Expressions

  1. (1. School of Computer, University of South China, Hengyang 421001, China;
     2. Key Laboratory for Nuclear Reactor System Design, Nuclear Power Institute of China, Chengdu 610041, China)
  • Received:2018-11-13 Online:2019-01-30 Published:2019-01-30

摘要: 布尔表达式约束在软件规格说明和程序中广泛存在,这些约束可作为软件系统的模型,成为测试用例生成依据。本文调研分析基于布尔表达式约束的测试用例生成方法,主要分为基于约束语法的测试和基于约束语义的测试。归纳总结基于约束语法测试的各种故障类型和测试策略,并比较各种测试策略的适用情形和故障检测能力,也对基于约束语义测试的各种约束获取和求解方法进行性能分析,并介绍了典型工具。最后对未来的研究发展进行展望。

关键词: 软件测试, 测试用例生成, 约束, 布尔表达式

Abstract: Constraints presented as Boolean expression exist widely in software specifications and programs, these constraints can be used as models of software systems and become the basis for test case generation. This paper investigates and analyzes test case generation methods based on constraints presented as Boolean expression, which are mainly divided into constraint syntax-based testing and constraint semantics-based testing. This paper summarizes various fault classes and test strategies in constraint syntax-based testing, and compares their applicability and fault detection capability. The paper also analyzes the performance of miscellaneous methods of getting and solving constraints in constraint semantics-based testing, and introduces typical tools. Finally, the future research and development are prospected.

Key words: software testing, test case generation, constraints, Boolean expressions

中图分类号: