广州大学华软软件学院 毕业论文(设计)
课题名称 基于软件测试的缺陷管理系统的设计与实现
——基本业务管理与信息统计分析模块
学 院 华软软件学院 系 别 软件工程系 专业班级 软件开发2班 学生姓名 冯名诗 学 号 0740112244 指导教师 林平荣 日 期 2011年4月10日
广州大学华软件学院 软件工程系 冯名诗 毕业论文——基于软件测试的缺陷管理系统设计与实现
摘要: 软件测试近些年来在国内的发展非常快速,它可作为企业软件项目开发中
的软件质量和项目管理的监控技术,逐渐成为企业软件开发的成败直接挂钩的项目过程。
FGWBMS软件缺陷管理系统开发目的旨在建立一个以微软的ASP.net MVC2与MSSQL Server 2005为基础,符合CMMI对于软件缺陷管理功能,而且轻量、精致的软件缺陷管理系统(BMS)。
软件缺陷管理为本系统的主要应用目标,同时能够满足不同用户群(如项目经理、测试人员、开发人员)的流程控制,提供足够灵活的接口是实现上述需求的关键。
本论文主要介绍了基于B/S模式软件缺陷管理系统的MVC2三层模式与ADO.NET Entity Framework(EF)混合开发架构的基本业务与信息统计分析模块的设计与实现,侧重点放在了讨论这个程序的需求分析、设计、实现及所用到的项目管理知识。对维护人员提交的缺陷报告认真鉴定、筛选、分类,进入不同的处理流程,以获得真正的缺陷跟踪数据。
关键词: MVC2,软件缺陷,BMS
2
广州大学华软件学院 软件工程系 冯名诗 毕业论文——基于软件测试的缺陷管理系统设计与实现
Abstract: Software testing develops very fast in recent years domestically. It can be
used as the monitoring technology of software quality and project management in the development of enterprise software project, and gradually becomes the project process tied to the success or failure of enterprise software development.
The development aim of FGWBMS is to establish a lightweighted and delicated BMS
based on Microsoft's asp.net MVC2 and MSSQL Server 2005 to which accords with the function request of CMMI.
The main application target of the system is to manage the software defect as well as
satisfy different user groups’ (such as the project manager, testers, developers) process control above which is achieved mainly by providing the interface flexible enough.
This paper mainly introduced MVC2 three-layer model based on the BMS of B/S and
the design and implementation of the mixed development framework ’s basic business information as well as statistical analysis which belongs to ADO.NET Entity Framework (EF). The paper emphasises not only on discussing the needs as well as the design of the program but implementing the knowledge of project management. To get the real defect tracking data, we must seriously identificate, screen, classificate the defect reports which is submitted by maintenance personnel and actualize different treatment process.
Keywords: MVC2;Software Defect;BMS
3
广州大学华软件学院 软件工程系 冯名诗 毕业论文——基于软件测试的缺陷管理系统设计与实现
目录
前 言 ................................................................. 1 第1章 系统分析 ....................................................... 3 1.1 系统设计目的 ................................................... 3 1.2 功能简介 ....................................................... 3 1.3 系统需求 ....................................................... 3 1.3.1 功能需求 .................................................... 4 1.3.2 性能需求 .................................................... 9 1.4 用例分析 ...................................................... 10 1.4.1 主程序用例 ................................................. 10 1.4.2 项目管理用例 ............................................... 11 1.4.3 模块管理用例 ............................................... 12 1.4.4 版本管理用例 ............................................... 13 1.4.5 缺陷管理用例 ............................................... 14 1.5 运行环境 ...................................................... 15 1.5.1 硬件环境 ................................................... 15 1.5.2 软件环境 ................................................... 15 第2章 数据库设计 .................................................... 16 2.1 数据库设计分析 ................................................ 16 2.2 数据库字典 .................................................... 16 2.2.1 T_Project .................................................. 16 2.2.2 T_P_Version ................................................ 17 2.2.3 T_P_Module ................................................. 17 2.2.4 T_Defect ................................................... 18 2.2.5 T_D_Properties ............................................. 18 2.2.6 T_D_Log .................................................... 19 2.3 E-R图 ......................................................... 20 第3章 功能模块设计 .................................................. 21 3.1 MVC模式分析 ................................................... 21 3.2 ADO.NET ENTITY FRAMEWORK分析 ..................................... 22 3.3 开发设计模型 .................................................. 23 3.3.1 系统整体模式架构 ........................................... 24 3.4 权限模块 ...................................................... 25 3.5 模块结构 ...................................................... 27 3.5.1 母板模块(Shared/ Site.Master) .............................. 27 3.5.2 业务模块(View目录下) ...................................... 27 3.5.3 控制模块(controllers目录下) ............................... 30 3.6 核心模块设计 .................................................. 32 第4章 部分功能实现 .................................................. 35
4
广州大学华软件学院 软件工程系 冯名诗 毕业论文——基于软件测试的缺陷管理系统设计与实现
4.1 ASP.NET MVC2模式 .............................................. 35 4.1.1 MVC2的强类型 .............................................. 35 4.1.2 MVC2的代码组织 ............................................ 36 第5章 系统测试 ...................................................... 39 5.1 测试说明 ...................................................... 39 5.1.1 测试平台环境如下: ......................................... 41 5.1.2 主要测试业务: ............................................. 41 5.1.3 功能测试: ................................................. 41 5.2 性能测试 ...................................................... 43 5.2.1 测试对象 ................................................... 44 5.2.2 测试工具 ................................................... 44 5.2.3 测试目的 ................................................... 45 5.2.4 术语及缩写词 ............................................... 45 5.2.5 计算公式 ................................................... 46 5.2.6 测试模型 ................................................... 47 5.2.7 测试过程简述 ............................................... 47 5.2.8 测试结果 ................................................... 48 设计总结 ............................................................. 49 致谢 ................................................................. 51 参考文献 ............................................................. 52
5