Research of Automatic Unit Testing Framework for J2EE Application

Author
ZhangMingShi
Advisor
LiWenSheng
School
Beijing University of Posts and Telecommunications
Major
Computer Science and Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
204
Citations
1

Request the full text

Abstract

In recent years, with the increment of the size of software industry, the traditional manual testing method has blocked the development of the software project. Manual testing needs large number of tester、resources and time, finally, because of the huge workload, a lot of testing work could not be executed. Due to the reason above, testing tools grows up. Many software companies domestic and overseas or many open source group and individuals have developed many automatic testing tools, and have been used widely in the process of software development.In the software testing field, unit testing is just one type, but the most important type. XP methodology is dependent on unit testing and unit testing is the most important practice in XP. Because XP methodology support requirement changing and begin coding before the whole design completed. In order to deal with the requirement changing during the process of development or after the project submitting, if no unit testing, the number of bugs in maintenance could be vastness.It is well know that doing unit testing for J2EE application is a difficult problem. J2EE programs have to deploy to the server container first then the container runs the programs and sends the result to client. The program could not be run and got result without containerThis paper is based on the point above, do the research on unit testing and given a testing resolution using open source unit testing framework on J2EE applications. Finally, do unit testing for a Struts J2EE application using the solution and the testing strategy to prove the feasibility and necessary of automatic unit testing on J2EE applications. Doing unit testing with open source framework, it could not only be used in J2EE applications but also used in other Java application testing.

Table of contents

Abstract 4-5 ABSTRACT 5-6 directory 6-7 first chapter 7-10 the 1.1 research background and significance 7-9 1.2 papers 9-10 Chapter II Extreme Programming and Software Testing 10-16 2.1 Extreme Programming 10-11 2.2 Test Driven Development 11-12 2.3 development cycle test 12-13 2.4 types of tests 13-16 Chapter open source technology research 16-27 3.1 JUnit unit testing framework 16-19 the cell testing framework 3.2 StrutsTestCase 19-20 3.3 Cactus unit test framework 20-22 3.4 the Mock Object unit testing framework 22-23 3.5 project build tool 23-25 3.6 other open source testing framework 25-27 Chapter test strategy 27-31 4.1 stub coarse-grained test 27-28 4.2 mock objects isolated test 28-29 4.3 Cactus for in-container testing 29-31 Chapter J2EE application unit test program to determine 31-34 5.1 J2EE application architecture 31-32 5.2 test program to determine 32-34 the the sixth chapter MBOSS system test case design 34-54 6.1 MBOSS overall system 34-38 6.1.1 Admin 35-38 6.1.2 Web Service interface 38 6.2 Background management system test case design 38-51 6.2.1 view layer test case design 38-41 6.2.2 Control layer test case design 41-47 6.2.3 business layer test case design 47-49 6.2.4 data layer test case design 49-51 6.3 Web Service test 51-52 6.4 build and deploy 52-54 Chapter VII Summary and Outlook 54-55 the References 55-57 Appendix 57-61 Acknowledgements 61

Related dissertations

  1. Research on Object-oriented Software Testing
    ZhangLei ·Anhui University ·2007 ·Master's thesis
  2. Design and Implementation of a Supply Chain System for Manufactural Enterprise
    ZhangZhiYou ·Northeastern University ·2011 ·Master's thesis
  3. Design and Implementation of Huafeng Company Integrated Office System
  4. Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System
  5. Design and Implementation of Fire Police Dispatch System Based on Java Technology
  6. The Design and Realize of Hotel Capital Asserts Management System Base on the J2EE Platform
  7. Retailers Membership Card Management System Design and Implementation
  8. Design and Implementation of Online Shopping System Based on Struts
  9. Design and Implementation of University Student Employment Information Sharing Platform of Cucn
  10. Design and Implementation of Intelligent Management System of Assets
  11. Design and Implementation of Zhejiang Haoleduo Commercial&Trading Co. Ltd. Human Resource Management System (HRMS)
  12. Research and Implementation of a Human Resource Management System Based on XX Company
  13. The Design and Implementation of Construction Project Construction Supervision Report Provided System for Weifang
    HanXiang ·Shandong University ·2013 ·Master's thesis
  14. The Design and Implementation of Teachers Professional and Technical Qualification Declaration System for Shenzhen City
    LiQiang ·Shandong University ·2013 ·Master's thesis
  15. The Design and Implementation of Subsidies for People with Disabilities Live Management System for Jinan City
    HanXinRong ·Shandong University ·2013 ·Master's thesis
  16. The Design and Implementation of Oil Supply Management System of the Ship
    PanLing ·Shandong University ·2013 ·Master's thesis
  17. The Design and Implementation of Contingency Plans and Resources Management System for Shijiazhuang City
    GongZuo ·Shandong University ·2013 ·Master's thesis
  18. The Design and Implementation of Administrative Institution Bank Account Management System
    ZhouChangLong ·Shandong University ·2013 ·Master's thesis
  19. Design and Implementation of the Online Learning System for the C Language Based on the J2EE
    QuXiao ·South China University of Technology ·2013 ·Master's thesis
  20. The Design and Implementation of Material Supply Managerment in Fengfeng Group