大型邮件系统中黑盒测试的 实践改进 Improvement of black box testing in large mail system 软件学院 2004-5-20 【摘要】伴随着软件工程的发展与成熟,软件测试也越来越受人关注。黑盒测试是软件测试中最接近用户观点的,也是处于最无序混乱状态的测试。本文主要介绍了黑盒测试特点及相关的理论与方法,并结合实际项目中存在的问题与得到的教训,提出测试过程中的改进方法。包括测试过程中测试执行的管理,bug的管理等。同时结合一种测试工具SilkTest,介绍了自动化黑盒测试的特点和实施原理,同时也结合前面提到的项目,介绍它的实际使用,重点讨论了利用自动化工具进行web测试自动化框架的建立。最后讨论了手工测试和自动化测试各自的利弊及相互间的不可替代性。 【关键词】软件测试黑盒测试自动化测试 【Abstract】With the development of software engineer, people make more and more importance on software testing. Black box testing is the most closest testing method to user’s opinion, and is also the most discrete testing. This paper introduces the characteristic of black box testing , the theory and method related. And some improvements are put forward based on the problems and lessons in project. which involves the management of testing execution and bug during the testing process. This paper also introduces the characteristic and the principle of black box testing automation through one kind of testing tool---SilkTest., and tries to take it into that project, emphasis on the construction of the framework of web automated testing by automation tool. Last, this paper discusses the advantage , disadvantage, unsubstitutableness between hand-testing and automated testing. 【Keywords】 software testing black box testing automated testing 绪论 4 1 软件测试与项目概述 5 软件测试介绍 5 项目概述 5 测试三要素 5 2 手工测试及存在的问题 7 测试流程 7 测试用例 7 测试用例结构 7 测试用例的生成 8 测试用例的执行 9 bug 的管理与跟踪 9 bug的跟踪管理流程 9 及时有效地报告bug 10 测试状态报告 10 手工测试存在的问题 11 重复测试 11 可重用的测试数据 12 腐朽的测试用例与探索性测试 12 管理在黑盒测试中的重要性 13 3 自动化测试 14 测试自动化的绩效 14 商业测试工具实现方式 14 关于SilkTest 15 SilkTest 介绍 15 SilkTest的主要特点 15 自动化测试在项目中的运用 16 建立SilkTest项目 16 捕捉GUI信息 16 测试脚本的结构 18 自动恢复系统 19 测试脚本的编写与执行 19 测试结果 22 4 自动化测试与手工测试的比较 23 测试自动化要考虑的因素 23 手工测试的不可替代性 23 5 结束语 24 绪论 随着软件进入人类生产与生活的方方面面,软件的缺陷所带来