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

计算机工程 ›› 2007, Vol. 33 ›› Issue (09): 46-48.

• 博士论文 • 上一篇    下一篇

基于模糊逻辑的测试用例揭错能力分析

杨劲涛1,郭荷清2   

  1. (1. 广东工业大学计算机学院,广州 510090;2. 华南理工大学计算机科学与工程学院,广州 510640)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-05-05 发布日期:2007-05-05

Analysis of Test Case Error Discover Ability Based on Fuzzy Logic

YANG Jintao1, GUO Heqing2   

  1. (1. Faculty of Computer, Guangdong Univ. of Tech., Guangzhou 510090; 2. College of Computer Science and Engineering, South China Univ. of Tech., Guangzhou 510640)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-05-05 Published:2007-05-05

摘要: 利用模糊逻辑,分析了各测试用例中交元的测试特性,得到如下结果:交元在不同测试用例中所发挥的测试作用是相同的。据此给出了生成充分考虑参数取值组合作用、且个数少的测试用例(测试用例基)的一种方法,建立了以测试用例基表示所有测试用例的表达式。利用模糊逻辑证明了用测试用例基执行测试,不仅能确保软件质量满足用户需求,且提高了测试用例的揭错能力。由于测试用例基具有数量少、测试效率高的特点,该文的研究有利于改善测试工作,降低测试成本。

关键词: 模糊逻辑, 测试用例, 揭错能力

Abstract: Fuzzy logic is applied to analyze the test characteristic of same-elements in all test cases. It is concluded that there is same effect same-elements in each test case set. Based on the result, a method which is used to generate lesser test cases (TCB) thinking about the action of combination of parameters values is given. The expression of TCB expressing all test cases is established. It is proved that TCB test can ensure that the software’s quality can satisfy user requirement and improve the ability of test cases error discover by fuzzy logic. The research is propitious to reform testing process and to reduce test cost since TCB is lesser but more efficient.

Key words: Fuzzy logic, Test case, Ability of error discover

中图分类号: