在线考试系统的设计与实现
摘 要
摘要
随着计算机技术和Internet技术的发展,越来越多的专家和学者开始着手于在线考试系统的研究与评估。一套完善的在线考试系统能够让教育部门在较短的时间内完成传统的考试流程,对考试这一传统教育方式实现根本的信息化和自动化。
本文以在线考试系统为实例,主要研究在MVC设计模式下,结合遗传算法和J2EE技术,对系统进行较为完善的分析与设计。围绕在线考试系统,根据系统的功能需求对系统进行了需求分析,确定了系统中的用例角色和职责,通过建立用例图和业务流程图对系统进行静态建模和动态建模。使得整个系统科学化、规范化、系统化和现代化。
本系统基于J2EE技术实现,融合敏捷开发方法,完成了系统单元测试、功能测试和性能测试。具有良好的可用性,安全性和可靠性。
关键词 遗传算法 MVC设计模式 J2EE技术 在线考试
Abstract
Title The Design and Implementation of Online Examination
System
Abstract
With the development of Computer technology and Internet technology, more and more experts and scholars began to study and evaluate the on-line examination system. A comprehensive online examination system not only can make the education sector in a shorter period but also complete the traditional examination process, so the traditional educational methods are able to achieve these goals of fundamental information and automation.
In this paper, online examination system showed as an example to express how to conduct a more comprehensive system in the MVC design pattern which also used the genetic algorithm and J2EE technology. Around the online examination system, according to the system's functional requirements the system needs analysis to determine the system's use case roles and responsibilities, through the establishment of business use case diagram and flow chart of the system, static modeling and dynamic modeling.
The system is based on J2EE technology and the agile methods. The system unit testing, functional testing and performance testing are completed. It has Splendid availability, security and reliability.
Keywords genetic algorithm MVC design pattern J2EE technology Online Examination System
目 录
目录
1 引言 ............................................................................................................................................................... 1
1.1系统研究的目的和意义 ............................................ 1 1.2系统研究现状 .................................................... 1 1.3论文主要工作 .................................................... 3
2 在线考试系统需求分析 ............................................................................................................................... 4
2.1 总体概述 ....................................................... 4 2.2功能需求分析 .................................................... 4
2.2.1 功能需求 ................................................. 4 2.2.2 系统功能模块 ............................................. 5 2.2.3 业务流程图 ............................................... 5 2.3非功能需求分析 .................................................. 7
3 系统总体设计 ............................................................................................................................................... 9
3.1 系统技术体系结构 ............................................... 9
3.1.1 技术体系结构 ............................................. 9 3.2 系统所采用的设计模式 .......................................... 10
3.2.1 J2EE技术 ................................................ 10 3.2.2 MVC设计模式 ............................................. 11 3.2.3 Spring框架 .............................................. 13 3.2.4 持久层模式 .............................................. 13
4 系统详细设计 ............................................................................................................................................. 16
4.1 设计方案 ...................................................... 16 4.2 算法详细介绍 .................................................. 17
4.2.1 遗传算法的概述 .......................................... 17 4.2.2 遗传多目标优化 .......................................... 18 4.2.3 遗传算法在本系统中的应用 ................................ 19 4.2.4 算法描述 ................................................ 22 4.3 系统持久层采用ibatis .......................................... 22
4.3.1iBATIS概述 ............................................... 22 4.3.2 部分数据库表 ............................................ 23
I
目 录
4.4 部分功能实现 .................................................. 26
4.4.1 查询考生信息 ............................................ 26 4.4.2 修改考生信息 ............................................ 26 4.4.3 删除试题 ................................................ 27 4.4.4 导出试题 ................................................ 28 4.4.5 新增考试 ................................................ 29
5 在线考试系统测试方案 ............................................................................................................................. 31
5.1 软件测试 ...................................................... 31
5.1.1 单元测试 ................................................ 32 5.1.2 功能测试 ................................................ 32 5.1.3 性能测试 ................................................ 32 5.2 测试用例 ...................................................... 33
5.2.1 测试用例 ................................................ 33 5.2.2测试结果 ................................................. 35
结束语 ............................................................................................................................................................. 36 致谢 ................................................................................................................................................................. 37 参考文献 ......................................................................................................................................................... 38
II