登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

一个对象类测试工具的设计与实现毕业论文

 2022-04-09 09:04  

论文总字数:23917字

摘 要

本文主要介绍软件测试是什么以及说明了软件测试的意义和重要性,接着是对软件测试的原理、相关技术和常见的各类现有的测试工具进行了分析介绍,重点描述了白盒测试的定义、方法以及主要功能,认识和分析自动化测试技术和随机用例测试技术原理和具体的操作方法,并利用上述技术说明课题所介绍的基于白盒测试的对象类测试工具的具体实现与设计。

本文同时也通过分析路径集分析方法和插桩技术,说明了本文所介绍的对象类测试工具的基本实现原理以及测试结果的显示的实现途径。详细介绍了该测试工具的各个类的实现方法及该测试工具所实现的功能:分析提取被测对象类的全部内容,划分并获取单元函数的函数信息,获取单元函数路径信息进行插桩,生成足够多的测试用例判断被测单元函数的所有路径是否都为通路,是否因为逻辑错误或运算符出错而导致存在失效路径或冗余路径。

最后本文通过多次测试运行课题实现的对象类单元测试工具,对此测试工具的性能进行了简单的分析,对此次毕业设计进行了简单的总结并提出了下一步的展望。

关键词:白盒测试 单元测试 测试工具

Design and implementation of an object class testing tool

Abstract

This paper first explains what is software testing ,and the importance of software testing .Then the principle of software testing technology and related test tools are analyzed .White box testing method ,test automation technology are emphatically analyzed and the random testing technology .Combining with Object class testing tools ,presented in this paper illustrates the white box testing method in the application of basic path analysis.

This paper also analyzes path set analysis method and pile technology ,illustrates the Object class ,presented in this paper the basic principle of unit testing tools and testing results show that the implementation of the approach .Introduces in detail the implementation method of the test tool of each implementation class and functions of the test tools : analysis and extract the whole information of the measured Object class and ,divide and extract the specific information of the unit function,and get the path information for pile, generate enough test cases to determine whether all the paths of the test function for the channel, whether because due to operator error or logical error exists failure paths or redundant path.

At the end of the paper through many times test run Object class of project implementation unit testing tools, to test the performance of tools has carried on the simple analysis, for the graduation design has carried on the brief summary and put forward the prospect of next step.

Key Words: white-box testing; testing tools; unit test

目录

摘要 I

Abstract II

第一章 绪论 1

1.1软件测试的背景和意义 1

1.2课题的内容 1

1.3主要结构介绍 2

第二章 测试原理 3

2.1 软件测试定义及过程 3

2.1.1.软件测试的定义和原则 3

2.1.2自动化测试的定义 4

2.2 软件测试策略和方法 4

2.2.1 软件测试策略 4

2.2.2 白盒测试 5

2.2.3单元测试 5

2.2.4 插桩技术 6

2.2.5 随机用例测试方法 8

2.3 现有的软件测试工具 8

第三章 对象类测试框架 11

3.1对象类测试流程图 11

3.2 获取被测对象类 12

3.3程序分解 12

3.4路径分析 12

3.4.1控制流原理 12

3.4.2路径集 14

3.5插桩 15

3.6测试用例 17

3.6.1测试用例的生成 17

3.6.2随机用例的筛选与使用 18

第四章 软件的设计和实现 19

4.1类的设计 19

4.2界面及测试用例介绍 26

4.2.1函数名获取界面 26

4.2.2.函数信息显示界面 26

4.2.3.路径信息显示界面 27

第五章 测试工具实验分析 29

5.1测试结果界面 29

5.2实验结果分析 30

第六章 总结与展望 32

6.1 个人总结 32

6.2 工作展望 33

参考文献 35

致谢 36

第一章 绪论

1.1软件测试的背景和意义

随着科技的不断进步,软件产品逐步变成了人类日常生活的一部分,而软件产品所涉及的范围越来越广,软件规模越来越大,一些不可避免的问题慢慢出现。因此,为了提高软件产品的质量以及可靠性,软件测试开始受到广泛关注。

在计算机初诞生之时,所谓的“软件测试”只是调试测试,并不是传统意义上的软件测试,随机性太大,也没有具体的计划和方法。到了上世纪50年代后期,测试的复杂度逐渐增加,测试对象也由低级程序语言编写的软件变成了高级程序语言编写的软件,而硬件的制约使得软件的正确性依然取决于编程人员的技术水平,发展缓慢,到了20世纪70年代以后,随着软件开发技术的飞速发展,软件变得越来越大规模且越来越复杂,软件的可靠性受到质疑。为了解决这个问题,相应的测试理论和测试方法逐渐生成,并渐渐发展形成了较完整的测试体系。而随着软件的日益进步,人们对软件质量的要求逐渐变高,软件测试渐渐贯穿了软件开发的各个阶段。因为软件的复杂度越来越高,传统的基于人工的软件测试已经逐渐不能满足程序设计者的要求,因此,软件测试自动化逐渐成为了时下程序设计者所关注的焦点。

请支付后下载全文,论文总字数:23917字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图