基于UML测试用例的研究和实现 下载本文

基于UML测试用例的研究和实现 密级:

UNIVERSITY 学 士 学 位 论 文

THESIS OF BACHELOR ( 20 年 )

题 目

学 院: 系 专 业: 班 级: 学 号: 学生姓名: 指导教师: 起讫日期:

I

摘 要

计算机是一门研究用计算机进行信息表示和处理的科学,这就需要我们能够有效的表示信息,处理信息。随着计算机的普及,信息量的增加,信息范围的拓宽,使许多系统程序和应用程序的规模很大,结构又相当复杂,因此,为了编写出一个“好”的程序,必须分析待处理的对象的特征及各对象之间存在的关系,这就是程序设计这所要研究的问题。计算机解决一个具体问题时,大致需要经过下列几个步骤:首先要从具体问题中抽象出一个适当的数学模型,然后设计一个解此数学模型的算法(Algorithm),最后编出程序、进行测试、调整直至得到最终解答。寻求数学模型的实质是分析问题,从中提取操作的对象,并找出这些操作对象之间含有的关系,然后用数学的语言加以描述。计算机算法与数据的结构密切相关,算法无不依附于具体的数据结构,数据结构直接关系到算法的选择和效率。设计充分利用C#的强大力量,提高了编程效率和可靠性。算法设计是软件工程、计算机科学及相关专业重要的专业技术基础课程和关键性核心课程,是系统软件及大型应用软件的重要基础。本课程系统的介绍了软件设计中常用的算法设计与分析方法,锻炼学生分析问题和解决问题的能力,为开发高效的软件系统及相关领域的研究工作奠定坚实的基础,为学习专业课程及提高软件设计水平打下良好的基础。

关键字 :编程;C#;窗体

II

System Based on C#

Abstract :The computer is a study of computer science and processing, which requires that

we can effectively represent information, process information. With the proliferation of computers, the increase in the amount of information, information on the scope of expanding, and so many systems and applications a large scale, the structure is quite complex, Therefore, in order to write a \between the characteristics of the object and the object, this is the program designed to study the problem. Computer to solve a specific problem, roughly the following steps: first abstract from specific issues in an appropriate mathematical model, and then design a solution of this mathematical model algorithm (Algorithm), and finally compile the program, test, adjustment until you get the final answer. Seeking the essence of the mathematical model of the problem, extract the object of the operation, and to identify the relationship between the operation target containing, and then use the language of mathematics will be described. Computer algorithms and data related to the structure, algorithms are all attached to a specific data structure, the data structure directly related to the selection and efficiency of the algorithm. Designed to take advantage of the powerful force of the C # programming efficiency and reliability. The algorithm design software engineering, computer science and related professional important professional and technical foundation courses and critical core curriculum is an important foundation of the system software and large-scale applications. This course introduces the software design algorithm design and analysis methods, training students to analyze problems and problem-solving skills, and lay a solid foundation for the development of efficient software systems and related research in the field, learning curriculum and improve software design level and lay a good foundation.

Keywords: Programming; C #; Forms

III

目 次

摘要 ············································································································································ I Abstract ···································································································································· II

摘 要··························································································································· II 1 绪论 ······································································································································ 1

1.1 课题背景及其意义 ································································································· 1 1.2 当前国内外发展概况调研 ····················································································· 1

1.2.1 系统理论的发展 ··························································································· 1 1.2.2应用技术的发展 ···························································································· 2 1.3 课题任务 ················································································································· 2 1.4 本文的组织结构 ····································································································· 3 2 系统需求分析 ····················································································································· 5

2.1 系统可行性分析 ····································································································· 5 2.2 功能需求分析 ········································································································· 5 2.5 本章小结 ················································································································· 6 3 系统概要设计 ····················································································································· 7

3.1 系统功能设计 ········································································································· 7 3.2 系统的体系结构设计 ····························································································· 7

3.2.1 系统实现技术 ······························································································· 7 3.2.2 开发语言 ······································································································· 8 3.2.3 系统结构 ······································································································· 8 3.4 本章小结 ················································································································· 9 4 系统数据库设计 ··············································································································· 10

4.1 数据库表结构 ······································································································· 10 4.2 本章小结 ··············································································· 错误!未定义书签。 5 系统的具体实现 ·············································································· 错误!未定义书签。

5.1 数据访问层的实现 ······························································· 错误!未定义书签。

5.1.1 配置数据库连接 ························································· 错误!未定义书签。 5.1.2数据库类成员 ······························································ 错误!未定义书签。 5.2 业务逻辑层的实现 ······························································································· 12 5.3 页面显示层的实现 ······························································································· 13

I