《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文

上传人:zhuma****mei1 文档编号:134756638 上传时间:2020-06-08 格式:DOC 页数:29 大小:488.50KB
返回 下载 相关 举报
《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文_第1页
第1页 / 共29页
《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文_第2页
第2页 / 共29页
《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文_第3页
第3页 / 共29页
《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文_第4页
第4页 / 共29页
《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文_第5页
第5页 / 共29页
点击查看更多>>
资源描述

《《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文》由会员分享,可在线阅读,更多相关《《白盒测试和黑盒测试在动态软件测试中的应用》-公开DOC·毕业论文(29页珍藏版)》请在金锄头文库上搜索。

1、湖南人文科技学院毕业论文学科分类号:_520.3050 湖南人文科技学院本科生毕业论文论文题目:白盒测试和黑盒测试在动态软件测试中的应用(英文):The Application of White Box Testing and Black BoxTesting in Dynamic Software Testing学生姓名: 学号 系 部:计算机科学技术系专业年级:网络工程 指导教师: 职 称:副教授湖南人文科技学院教务处制25目 录摘 要1关键词1Abstract1Key Words2第一章绪论31.1软件测试概述31.2研究的目的与意义41.3国内外研究现状41.4本文的主要研究内容与方法

2、71.5论文的组织结构71.6论文的技术要求8第二章动态测试基础82.1 软件测试方法82.1.1 白盒测试和黑盒测试的定义82.1.2白盒测试和黑盒测试的区别92.2 软件测试技术92.2.1白盒测试的常用技术92.2.2黑盒测试的常用技术102.2.3白盒测试和黑盒测试的常用技术的应用场景102.3 动态测试的关键问题11第三章动态测试在银行业务软件中的应用113.1 程序次模块设计123.2 次模块测试设计183.3 次模块测试执行21第四章总结与展望23致 谢25白盒测试和黑盒测试在动态软件测试中的应用摘 要:软件测试是高质量、高可靠性软件的重要保证。在软件系统的开发中 ,软件测试不仅

3、是软件生命周期中的一个独立的阶段 ,在需求分析、软件设计和编码阶段 ,都需要对这些阶段的软件产品 ,包括需求规格说明书、 软件架构、 概要设计和详细设计说明书进行测试。软件测试已经形成了完整的、 系统的测试方法 ,并且有众多的手工和自动化测试工具支持这些方法。通过评审文档、 阅读代码等方式测试软件称为静态测试 ,通过运行程序测试软件称为动态测试。在动态测试中 ,通常使用白盒测试和黑盒测试从不同的角度设计测试用例 ,查找软件代码中的错误。白盒测试和黑盒测试是软件测试中的常用方法。文章首先介绍了白盒测试和黑盒测试以及两者的应用场合 ,然后通过一个实例说明在动态软件测试中如何使用这两种方法从不同的角

4、度设计测试用例 ,确保以最少的测试用例发现尽可能多的错误和缺陷。 银行业务软件以其高复杂性、高安全性、高准确性、高效率性给软件测试带来了一系列难度。银行业务软件通常由一系列功能相对独立的程序组成,每一个程序完成一个特定的功能(称之为交易)。而这些特定功能实际由一个或者多个子功能组成,这些子功能彼此之间存在顺序执行或者嵌套执行的关系,这就为程序内部的次模块(次模块是单元测试的最小单元定义,是组成模块的部分,包含若干行源代码,不能被单独执行或者被其他模块调用,逻辑复杂度远低于模块)划分提供了可能。本文就是以银行业务中处理较简单的活期储蓄存折取款交易为例来说明白盒测试和黑盒测试在动态软件测试中的应用

5、。先对取款模块的需求进行分析,划出取款模块的程序流程图以及相关的参数说明和数据关系图。为了以最少的测试用例发现尽可能的错误和缺陷。主要采用黑盒测试中的等价类划分法、因果图法和判定表法以及白盒测试中逻辑覆盖法,对次模块F(手续费的计算进行分析)。关键词:白盒测试; 黑盒测试;测试用例The Application of White Box Testing and Black Box Testing in Dynamic Software Testing Abstract:Software testing is of high quality, reliability, the software

6、to. in software systems development, the software testing is not only software life cycle of an independent, analysis, the needs of software design and coding, the need for the stage of the software requirements, specifications, including the software architecture and design and detailed design spec

7、ifications a summary of test. software testing have developed a complete, systematic test method . And there are numerous hand tools and automated tests to support these methods. through the documents, read the code statically, to software testing is the test, by running programs to software testing

8、 is called active test. in the dynamic tests usually use carton of test and white black box from the perspective of the different design for testing for example, the software code.White box testing and black box testing are frequently used in software testing. This paper introduces the two methods.

9、Then it demonstrates how to use them to design testing case from different point of view in dynamic software testing,so that more errors or bugs can be found with less testing case.Banking software to their higher complexity and high security and higher accuracy, efficient to software testing of a s

10、eries of difficulty. the ordinary software test procedure and method is very difficult to all the claim.banking software usually by a series of functional relatively independent program, each application to perform a specific function (call the deal. but these particular features) actual by one or m

11、ore functional, and these functions are carried out between the order or a nesting relationship, For application within the first modules ( module is the unit testing of the smallest units of the module definition, is part of the source code, containing several lines, not by individual executive or

12、other modules called a logical complex than ) into modules provides.This is the bank addressed in a simple current savings passbook or withdraw money for that transaction as an example of test and black box of testing in the dynamic software test application for withdrawal. the first modules demand,

13、 and pull out a withdrawal of the modules program flow chart and the related parameters instructions and data diagram. in order to the test used as examples found and defects. Mainly used black test the class divided into the equivalent, and the method and determine the method of testing and white o

14、ver the logic, to f of the service modules ( analysis ).Key Words:white box testing;black box testing;testing case第一章 绪论从计算机诞生至今,计算机无疑成为当代发展最为迅猛的科学技术。今天,计算机己渗透到人们生活的各个方面。纵观计算机技术的发展历程,特别是近20年来,由于微电子技术的进步,计算机硬件技术飞速发展,其性能价格比显著提高,质量稳步增长,为计算机的广泛应用创造了良好的条件。作为计算机的灵魂,软件起着举足轻重的作用,但软件技术在产品质量、生产力、成本及性能等众多方面都滞后

15、于硬件技术的发展。随着软件系统规模和复杂性的增加,其开发成本以及由于软件故障而造成的经济损失也正在增加,软件质量问题已成为制约计算机发展的关键因素之一。软件测试是对软件功能、设计和实现的最终审定,是发现软件故障,保证软件质量,提高软件可靠性的主要手段。因此,软件测试在软件开发中起着不可替代的作用。但是,软件测试费用相当昂贵,通常占到整个软件开发成本的50%左右。近年来,虽然软件测试技术与实践有了很大的进展,但远未成熟,测试理论、测试方法都无法满足当前软件开发的实际需要。为此,改进已有的软件测试方法,开发一些实用的测试数据自动生成工具,提高软件测试效率,是软件测试工程师目前乃至今后面临的紧迫而且意义重大的任务。1.1 软件测试概述信息技术的飞速发展,使软件产品应用到社会的各个领域,且规模越来越庞大,软件产品的质量自然成为人们共同关注的焦点。原先以手工作坊式方法开发出来的许多软件产品,由于缺乏科学的软件质量管理,因此几乎无法维护,造成大量人力、物力浪费。如何提高软件质量,保证软件安全性是一个涉及面广、难度很大的课题。软件测试作为软件质量保证中的关键技术,正受到人们越来越多的关注。软件测试是伴随着软件的产生而产生的。早期的软件开发过程中,测试的含义比较狭

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 毕业论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号