东北大学秦皇岛分校毕业设计(论文) 第 32 页
序的细节来进行测试,主要是通过设计测试数据,检验程序的每个模块的执行路径的具体情况。这些执行路径包括程序的逻辑判定,循环的边界条件,和界限内的条件等等。白盒测试适用于程序的逻辑相对简单时,才能够保证验证所有的路径。当遇到多重选择或者多层的循环嵌套时,路径的数目就会非常庞大,实现所有路径的验证就变得非常困难。因此,对于我们来说,对于测试数据的方法的选择就起到了非常关键的作用。 6.2.2 黑盒测试法
黑盒测试也称功能测试,主要是通过测试来检测每个功能能否都正常使用。黑盒测试法是把程序看作一个黑盒子,测试过程中不需要考虑程序的内部结构和具体测试处理过程的测试方法。它只需要检查程序的每个功能能否按照规格说明书的内容正常使用,程序能否接收数据并产生争取的输出信息,能否保证外部信息的完整性,安全性。
黑盒测试主要测试的是功能,黑盒测试法设计程序测试用例的方法主要有等价划分法,边界值分析法,错误推测法,主要的目的是设计以最少的测试数据子集来尽可能多地测试出软件系统中的错误。本系统主要采用的即是黑盒测试法。
东北大学秦皇岛分校毕业设计(论文) 第 33 页
结 论
本文主要介绍了基于Struts2+Spring+Ibatis 框架下项目管理系统的设计与实现,该系统实现了对大量的项目进行管理,从而大大提高了企业管理效率。在控制层,利用Struts2的标签功能,在Action中直接与JSP页面上的数据进行交互。在业务逻辑层,可以利用Spring框架的依赖注入来实现对业务逻辑类和DAO类的实例编写。在持久层,利用Ibatis提供的半自动化的对象关系映射的实现,开发人员需要编写具体的SQL语句,为系统设计提供了更大的自由空间。
本文通过需求分析和系统,实现了部门项目管理系统。该系统实现了以下四个功能: (1)账户管理:实现对员工的增、删、改以及对所有员工的模糊查询。 (2)项目管理:实现对项目的增、删、改、查以及为某个特定项目分配人员。 (3)部门管理:实现对部门的增、删、改、查功能。 (4)产品管理:实现对产品的增、删、改、查功能。
除此之外,在四个模块中都可以退出当前用户的登录状态而跳转到登录页面上,此外,还对人员的登录做了验证,不同角色登录的结果不一样,管理员登录之后能对账号管理中的增、删、改功能进行操作,而普通用户登录后看不见增、删、改的按钮,因而不能对其进行操作。增、改功能还有对应前台的验证。
当然,本系统仍存在一定不足,如:在项目管理模块中,为项目成员分配具体角色。还应该增加一个模块给员工提出问题反馈意见。
东北大学秦皇岛分校毕业设计(论文) 第 34 页
致 谢
首先感谢我的导师李雅珍老师在毕业设计过程中,从课题的选择、技术上的指导到具体的设计中,指导我阅读相关的资料和书籍,引领我快速入门,在开发的过程中对我的系统给出了一些及时的建议,在这段期间,我始终感受着老师的精心指导,受益匪浅,在此向老师表示深深的感谢。值得一提的是,李老师对学生认真负责,在她身上,我可以感受到一个学者的严谨和务实,这些都让我受益匪浅,并将终身受用。毕竟“经师易得,人师难求”,希望借此机会向陈老师表示最衷心的感谢!
不积跬步,何以至千里,本课题能顺利完成,也归功于大学期间各位任课老师的认真负责,使我能够很好的掌握和运用专业知识。同时还有这四年来一起学习的同学,感谢所有帮助过我的人。
最后,我还要感谢我的父母在物质及精神上给予的支持,他们不仅培养了我对科学文化的浓厚兴趣,让我在漫长的人生旅途中使心里有了明确的目标,而且也为我能够顺利的完成毕业论文提供了巨大的支持和帮助,在未来的日子里,我会更加努力的学习和工作,不辜负父母对我的殷殷期望!我一定会好好的孝敬和报答他们!
东北大学秦皇岛分校毕业设计(论文) 第 35 页
参考文献
[1] 马斗,邱哲,王俊标.JSP开发答疑200问[M].人民邮电出版社,2009:6-12. [2] 李振华,季小虎.Dreamweaver基础教程[M].清华大学出版社,2010:5-20. [3] 柳纯路,刘明亮.信息系统项目管理师教程[M].清华大学出版社,2011:2-15. [4] 任港.Ibatis框架源码剖析[M].电子工业出版社,2010:30-70.
[5] 苏林忠.基于JSP技术的动态WEB开发[M].河南师范大学学报,2008:3-10. [6] 李振捷.JSP网站开发典型模块与实例精讲[M].电子工业出版社,2009:23-38. [7] 李江,张威.实例解析XML/XSL/Java网络教程[M].北京希望电子出版社,2012:510-531.
[8] 庞永庆.JavaScript网页编程从入门到精通[M].科学出版社,2009:5-16. [9] 徐明华.Struts基础与案例开发详解[M].清华大学出版社,2009:34-44. [10] 孟晓峰.数据库系统导论[M].机械工业出版社,2010:7-15.
[11] 叶键毅.精通JavaEE-Eclipse Struts2 Hibernate Spring 整合应用案例[M].人民邮电出版社,2009:33-48.
[12] Gary Mark.Spring攻略[M].人民邮电出版社,2012:3-14. [13] 计文柯.Spring技术内幕[M].机械工业出版社,2010:146-165.
[14] 刘中兵Java研究室.Java高手真经Java Web核心框架[M].电子工业出版社,2009:552-688.
[15] Billington.Oracle PL/SQL实战[M].人民邮电出版社,2012:45-63.
东北大学秦皇岛分校毕业设计(论文) 第 36 页
附 录
附录A
Introduction to database information management system
The database is stored together a collection of the relevant data, the data is structured, non-harmful or unnecessary redundancy, and for a variety of application services, data storage independent of the use of its procedures, insert new data on the database, revised, and the original data can be retrieved by a common and can be controlled manner. When a system in the structure of a number of entirely separate from the database, the system includes a \
Database management system is a manipulation and large-scale database management software is being used to set up, use and maintenance of the database. Its unified database management and control so as to ensure database security and integrity. Database management system users access data in the database, the database administrator through Database management system database maintenance work. It provides a variety of functions, allows multiple applications and users use different methods at the same time or different time to build, modify, and asked whether the database. It allows users to easily manipulate data definition and maintenance of data security and integrity, as well as the multi-user concurrency control and the restoration of the database.
Using the database can bring many benefits: such as reducing data redundancy, thus saving the data storage space; to achieve full sharing of data resources, and so on. In addition, the database technology also provides users with a very simple means to enable users to easily use the preparation of the database applications. Especially in recent years introduced micro-computer relational database management system , intuitive operation, the use of flexible, convenient programming environment to extensive (generally 16 machine, such as IBM / PC / XT, China Great Wall 0520, and other species can run software), data-processing capacity strong. Database in our country are being more and more widely used, will be a powerful tool of economic management.
The database is through the database management system (DBMS-DATA BASE