Research and Realization of Web Application Software Test Based on J2EE Platform
- Author
- WangYanLi
- Advisor
- YinZhiBen
- School
- Southwest Jiaotong University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 420
- Citations
- 4
Abstract
With the rapid development of information technology , Web applications based on J2EE platform quickly swept the globe , infiltrated into various application fields of the society , to become the mainstream of the current and future Web systems development , quality and reliability of Web applications based on J2EE platform has gradually been attention. However , due to the Java language , encapsulation, inheritance , polymorphism , and other features the interactive , open source framework for diversity and J2EE components makes testing Web applications on the J2EE platform facing enormous challenges , therefore , to study the J2EE platform Web application testing technology there are important theoretical and practical significance . Firstly, on the basis of the research -oriented object software testing technology and J2EE architecture , proposed a two - tier testing strategy for unit testing and acceptability testing J2EE Web application platform . Under this strategy, the public travel traffic information service system to develop a detailed test program . Finally , the open source automated testing framework JUnit the Cactus, StrutsTestCase , HttpUnit , JMeter conduct research and use these frameworks traffic information service systems for public travel , unit testing and system testing . Test content , test difficulty in unit testing , analysis , and implementation of a detailed test , solve function testing , interface testing , aggregate testing , abnormal test object comparison test difficulty given execute Cactus tests using Eclipse, Ant, Maven automation of processes , and automated process to compare , pointed out that the choice of automation tools , and finally , compares JUnit , the Cactus, StrutsTestCase HttpUnit test framework similarities and differences . Performance testing to develop a test plan , the implementation of the testing process , the analysis of the test results , the optimization program summarizes JMeter use of the skills and experience of the system testing J2EE Web . Through this study , the formation of the J2EE platform Web system testing for reference a complete set of test strategy , test procedures and test experience . I believe this thesis for a more rapid and effective implementation of the J2EE Web system testing has a good reference value .
Table of contents
Summary 4-5
Abstract 5-10
first chapter 10-13
1.1 research background and significance -11
1.2 Research Survey at home and abroad the 11-12
1.3 This topic sources and research contents 12-13
Chapter 2 object-oriented software testing 13-21
2.1 characteristics of object-oriented software system software testing 13-16
2.1.1 object 13-14
the 2.1.2 news 14
2.1.3 interface 14
2.1.4 class 14-15
2.1.5 inherited 15
2.1.6 polymorphic 15-16
2.2 object-oriented software testing model hierarchical division of object-oriented software testing and content nbsp 16-17
2.3 ; 17-20
2.3.1 object-oriented unit test 18-19
2.3.2 object-oriented integration testing 19
2.3. object-oriented system testing 19-20
2.4 Chapter Summary 20-21
Chapter 3 J2EE platform Web software testing research 21-30
3.1 J2EE Overview 21-23
3.1.1 J2EE architecture 21-22
3.1.2 J2EE technology 22-23 < br /> 3.2 J2EE Web software test 23-27
3.2.1 J2EE Web system testing challenges 23-24
3.2.2 open source java testing tools 24-25
3.2.3 J2EE Platform Web system test strategy 25-27
3.3 public travel traffic information service system and its test program 27-29
About 3.3.1 public travel traffic information service system the the 3.3.2 public travel traffic information service system works 27
27-28
3.3.3 Public transportation travel information service system test program 28-29
3.4 Chapter Summary 29-30
Chapter 4 system of public transportation information services unit test 30-60 < br /> 4.1 logical unit test 30-43
4.1.1 Junit test framework advantages and characteristics of the 30-34
4.1.1.1 Junit unit test framework 30-31
4.1.1.2 Junit system structure 31-32
4.1.1.3 Junit, core classes 32-33
4.1.1.4 Junit achieve, process 33-34
test 4.1.2 content and the difficulty of the test the 34-36
4.1.2.1 test the contents 34-35
4.1 .2.2 test the difficulty 35-36
4.1.3 test implementation the 36-39
4.1.3.1 of TqybDao testing process, 36-38 <br / > 4.1.3.2 on Service testing process the 38-39 test summary
4.1.4 39-41
4.1.4.1 the return value of the method test 39
4.1.4.2 did not test the return value of the method 39
4.1.4.3 Packing instructions concerning the test interface 39
4.1.4.4 the polymerization of test 39-40
4.1.4.5 abnormal test
40 4.1.4.6 object equal 40
4.1.4.7 using the properties file 40-41
4.1.5 the Junit install and run 41-43
4.1.5.1 Junit with Eclipse integration 41
4.1.5.2 Junit run 41 - 43
4.2 integrated unit testing the 43-54
4.2.1 Cactus testing framework 43-45
4.2.1.1 Cactus, Introduction 43-44
4.2.1.2 Cactus test life cycle and works 44-45
4.2.2 StrutsTestCase testing framework nbsp the; 45-47
the 4.2.2.1 StrutsTestCase Overview 45
4.2.2.2 StrutsTestCase working principle 45-47
4.2.3 test content and difficulty 47-49
4.2.3.1 test 47
4.2.3.2 test difficulty 47-49
4.2.4 testing process 49-52
4.2.4.1 the Filter test
4.2.4.2 Action 49-50 test 50-52
4.2.5 test automation 52-54
in 4.2.5.1 the Eclipse, Ant, the Maven execution Cactus test steps 52-53
in 4.2.5.2 the Eclipse, Ant, Maven automated process 53-54
4.2.5.3 write Ant script build.xml steps 54
4.2.6 container to test the strengths and weaknesses 54
the 4.3 functional unit test 54-58
4.3.1 Httpunit 54 -57
4.3.1.1 HttpUnit About 54-55
4.3.1.2 HttpUnit, core classes 55-57
4.3.2 test 57 -58
4.3.2.1 test 57
the 4.3.2.2 test the process 57-58
4.4 unit testing framework 58-59
4.5 Chapter Summary 59-60
Chapter 5 public travel information service system performance test 60-70
5.1 JMeter test framework 60-62
5.1.1 JMeter features 60-61
5.1.2 JMeter overall structure 61-62
5.2 using the JMeter load test 62 - 68
5.2.1 the test target 63
5.2.2 test environment 63
5.2.3 Test Plan 63
5.2.4 testing process 63-65
5.2.5 Test Results nbsp the; 65-67
5.2.6 Test results analysis 67
5.2.6.1 different virtual users scale under the system returns an error number of pages 67
5.2.6.2 different virtual users scale system delay reaction time of 67
5.2.6.3 different types of operation 67
5.2.7 system optimization program 67-68
5.3 Test Summary to use
5.3.1 JMeter, 68-69 techniques 68 <br / > 5.3.2 J2EE platform Web-based system testing experience 68-69
5.4 Chapter Summary the 69-70
summarize and the outlook 70-72
Acknowledgements 72-73
Reference 73-77
papers published during the study for master and scientific research 77
Related dissertations
- Design and Implementation of a Supply Chain System for Manufactural Enterprise
- Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
- Integrated ERP Credit Control System
- The Design and Implement of Video Sharing Website Based on Face Tracking
- The Design and Implementation of the Campus Network Management System of Transport Management Institute Ministry
- A Design and Development of Operation and Maintenance System for Zhejiang Social Security Center
- Design and Implementation of Huafeng Company Integrated Office System
- Design and Implementation of a Enterprise Search Platform
- The Research and Implementation of Information Management System Intergrated the Composite SSH2Frame
- Research and Implementatione of Secondary Development of the Corporate Units at the County Level Directory Database System
- Research and Implementation Based on the the J2ME Technology of Mobile Securities System
- Design and implementation of the Qilu Petrochemical Industries Co bidding management system
- Design and Achieve of IT Project Management System
- The Design and Implementation of Telecom Card Management Based on J2EE
- Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System
- Development of Customer Value Assessment System Based on Decision Tree Algorithm
- Design and Implementation of Group Hotel Integrated Management Platform Exchange Center System
- Design and Implementation of Human Resources Outsourcing Service Platform Based on J2EE and ExtJS
- Counties’ Real-time Reporting Systems for Major Events and Decision
- The Design and Implementation of Information Management System for Weifang High-tech Zone Organs Kindergarten