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

基于接口参数的黑箱测试用例自动生成算法
引用本文:聂长海,徐宝文.基于接口参数的黑箱测试用例自动生成算法[J].计算机学报,2004,27(3):382-388.
作者姓名:聂长海  徐宝文
作者单位:1. 江苏省软件质量研究所,南京,210096
2. 东南大学计算机科学与工程系,南京,210096
基金项目:国家自然科学基金 ( 6 0 3 73 0 6 6 ),国家“九七三”重点基础研究发展规划项目基金 ( 2 0 0 2CB3 12 0 0 0 ),江苏省自然科学基金 (BK2 0 0 10 0 4),教育部高等学校骨干教师基金,江苏省科技攻关项目基金 (BE2 0 0 10 2 5 ),教育部跨世纪优秀人才培养计
摘    要:测试用例的选择与生成技术是软件测试尤其是黑箱测试的一个重要研究领域,测试用例的质量将直接决定软件测试的科学性和有效性.该文在一般的测试用例选择方法的基础上,提出了一种基于对接口参数进行组合覆盖的黑箱测试用例自动生成算法模型,据此可以生成一个对所有接口参数进行两两组合覆盖的测试用例表.并证明了该方法产生的测试用例具有数量少、能实现对接口参数最大限度组合覆盖的特点,从而可以在提高软件测试质量的同时,降低成本,提高效率.最后介绍了该算法在作者研究开发的测试数据生成工具中的实际效果.

关 键 词:软件测试  软件开发  接口参数  软件工程  黑箱测试  用例自动生成算法

An Algorithm for Automatically Generating Black-Box Test Cases Based Interface Parameters
NIE Chang,Hai,XU Bao,Wen.An Algorithm for Automatically Generating Black-Box Test Cases Based Interface Parameters[J].Chinese Journal of Computers,2004,27(3):382-388.
Authors:NIE Chang  Hai  XU Bao  Wen
Abstract:This paper presents a network graph model for test case automatic generation, which is based on the combinatorial coverage of all the interface parameters for black box testing. In this model, a path from left to right represents a test case. The algorithm chooses a test case every time to make the corresponding path in the network graph cover all the uncovered vertices to the greatest degree by some rules. It can generate a test case table to cover all the pair wise combination of all the interface parameters. Contrasted with the existing work, authors prove that the generated test cases are able to cover all the combinations of parameters to the greatest degree with the smallest scale of test suite, thus it can improve the quality of software testing by decreasing software testing cost and improving its efficiency.
Keywords:software testing  black  box testing  test case  algorithm  software engineering
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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