Unit Testing Strategies and Methods of Lightweight J2EE Applications System
- Author
- QuanHua
- Advisor
- YinJunWen
- School
- National University of Defense Science and Technology
- Major
- Computer technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 39
- Citations
- 1
Abstract
With the continuous improvement of military reform and informatization construction, the level of military information technology has been raised as well. Each kind of software has been widely used in each troop of PLA. Especially the military software of lightweight J2EE Web architecture has been gradually popularized to each significance areas like operational commanding, teaching training and logistic supporting, making it one of the key components of our army’s information system. Software testing is an important method to guarantee software quality. How to do unit testing of this kind of software in a more convenient and efficient way is increasingly becoming a new issue needing solving urgently.At present, there are many tools, technologies and methods of unit testing but not a unified standard, which makes it difficult to operate and implement in actual engineering development processes, much less a relatively thorough unit testing strategy and method for lightweight J2EE Web architecture software system.To solve this problem, this paper discussed the strategies and methods should be taken for the unit testing in lightweight J2EE Web architecture military software based on the research of basic theories of software quality guarantee, software and unit testing and on the analysis of lightweight J2EE architecture features combining with the unit testing practice of weapon storage information system.Open source testing framework is chosen to test on the feasibility analysis of three kinds of basic methods in unit testing. Maven is used as the build tool in unit testing after the comparison between the two main program build tools -Maven and Ant; after analyzing the difficulties and deficiencies in Junit’s independently doing unit testing of J2EE, we come to the conclusion of combining other open source framework which can efficiently test each layer components and codes with Junit framework.The codes, which need testing, are determined according to the specific analysis of the unit testing of weapon storage information system. In the practice of unit testing of weapon storage information system, JUnit framework is used, Canoo and Spring Mock is integrated into the presentation layer, DbUnit into the Persistence Layer to write unit testing examples, and then all the unit testing examples are run automatically. At last, this paper summarize the unit testing of lightweight J2EE Web architecture application system to reach the conclusion for the strategy and method, procedures of unit testing, which is significance for unit testing of other similarly military software system.
Table of contents
Summary 8-9
ABSTRACT 9-10
first chapter 10-14
1.1 research background 10 - 11 1.2 Status of domestic and foreign research
major work 11-12
1.3 papers organizational structure nbsp 12
1.4 papers ; 12-14 <br / > Chapter II software quality and unit testing 14-23
2.1 software quality assurance 14-15
2.1.1 software quality defined 14 <br / > 2.1.2 software quality assurance 14-15
2.2 unit testing concepts 15-18
2.2.1 software testing concepts 15-16
2.2.2 unit testing is defined 16-17
2.2.3 unit Testing necessity 17-18
2.3 unit test method 18-20
2.3.1 unit test Type 18-19
2.3.2 unit test method 19-20
2.4 unit testing principles 20-22
2.5 Summary 22-23
Chapter J2EE architecture research 23-31
3.1 classic J2EE architecture 23-25 ??
3.1.1 classic J2EE architecture introduces 23-24
3.1.2 problems classic J2EE architecture 24-25
3.2 lightweight J2EE architecture 25-30 <br / > 3.2.1 lightweight J2EE architecture introduces 25-26
3.2.2 Spring introduces 26-28
3.2.3 Hibernate introduced 28-30
3.3 Chapter Summary 30-31
Chapter J2EE Web application system unit testing research 4.1 unit test method 31-50
basic feasibility of choice 31-33
4.2 build automated unit testing tool selection 33-40
4.2.1 Ant build tool introduced 33-35
4.2.2 Maven build tools introduced comparative analysis 35-38
4.2.3 Maven and Ant 's 38-40
4.3 independently of the problem using JUnit unit testing J2EE 40-44
4.3.1 JUnit unit testing framework research 40-43
4.3.2 JUnit unit testing and J2EE applications 43-44
4.4 J2EE layers of cells testing framework technology unit testing framework 44-49
4.4.1 technical presentation layer 44-46
4.4.2 Yewuluojiceng unit testing technology framework unit testing technology framework 46-48
4.4.3 persistence layer 48-49
4.5 Summary 49-50
Chapter weapons stored information unit testing systems analysis 50-56
5.1 system requirements and operating environment basic needs 50-51
5.1.1 system 50
5.1.2 operating system software and hardware environment 50-51
5.2 weapons storage information System architecture 51
5.3 weapon storage unit testing of information systems analysis 51-55
5.3.1 Presentation Layer unit Testing analysis 51-53
5.3.2 Yewuluojiceng unit test analysis 53-54
5.3.3 persistence layer unit test analysis analysis 54
5.3.4 automate unit testing 54-55
5.4 Summary 55-56
sixth Chapter weapon storage unit testing of information systems implementation unit test 56-71
6.1 presentation layer 56-61
6.1.1 JSP unit testing 56 -58
6.1.2 controller unit test 58-61
6.2 Yewuluojiceng unit test unit test nbsp 61-64
6.3 persistence layer ; 64-67
6.4 build automated test 67-69
6.4.1 automated unit test preparation work 67
6.4.2 perform automated unit testing 67-68
6.4.3 checks automated unit test results 68-69
6.5 lightweight J2EE Web applications unit test summary 69-70 <br / > 6.5.1 strategies and methods 69
6.5.2 test steps 69-70
6.6 Summary 70-71
Chapter VII summary and Outlook 71-73
7.1 summary 71
7.2 prospects 71-73
Thanks 73-74 <br / > References 74-76
authors during the school academic achievements 76
Related dissertations
- Research on Software Technology in HVDC Transmission Design Software Package
- The Design and Implementation of Software Auto Test System Based on Enodeb Control Plane
- Unit Testing Technology and Its Application Based on Java ME
- Research on Abstract Memory Modeling Technology Supporting Test Case Automatic Generation of Non-Numeric Data Type
- Research and Application on Unit Testing Technology for Object Oriented Program by CppUnit
- The Research and Application in the Unit Testing by Using JUnit Framework
- Design and Implementation of Human Resource Management System Based on Lightweight J2EE Framework
- Research and Application of Interlocking Software Automatic Testing Technology
- Execution of GPS Navigation Software Testing Based on VSTS
- The Research and Realization of Multimedia Resource Reservoir with Basing Flash Streaming Media Boradcasting
- Research and Application of Software Unit Test
- Research of Automatic Unit Testing Framework for J2EE Application
- Research on Object-oriented Software Testing
- The Material Ration Management System in the PHOSPHORPDM System
- Research on Object Oriented Software Automated Unit Test Technique
- Research and Realization of Web Application Software Test Based on J2EE Platform
- Structural Testing of Aspect-Oriented Programs
- The Unit Testing of Servo System of Dynamic Drone
- Research on Unit Testing Technology Based on Java Platform
- Unit Testing Technology Research in Embedded Platform of Communication System