Dissertation > Excellent graduate degree dissertation topics show
Research on Unit Testing Technology Based on Java Platform
Author: YuBo
Tutor: ZhangDaFangï¼›WangShuLin
School: Hunan University
Course: Computer Software and Theory
Keywords: Unit testing Class test Genetic Algorithms Uniform Design Method Test data
CLC: TP311.52
Type: Master's thesis
Year: 2005
Downloads: 226
Quote: 6
Read: Download Dissertation
Abstract
|
With Java technology is the growing popularity and widespread attention, how to improve the The Java applications credibility is an important issue that should not be ignored. The unit testing of Java applications is to ensure the quality of the software, the key to improve software reliability. Done manually unit test time-consuming and tedious, automated unit testing has become an important means save the cost of software development and improve software credibility. Therefore, this paper is to study these two issues for the degree of automation of unit testing of Java applications in the automatic generation of test data and improve unit test. This paper analyzes the relationship between the behavior of sub-types and class behavior compatibility, described the transformation to the class behavior compatibility mapping using a sub-type of behavior can get the correct class invariants, method pre-conditions and post-conditions. Accurate class invariants and method postconditions as test oracles, and class invariants and method pre-conditions as a division of equivalence classes and analysis of boundary value input. Then, two generating test data is given for the need to manually calculate the expected value of unit testing: inspecting the production and experimental frequently used statistical methods: orthogonal experimental design method and uniform design method to generate test data, the enumeration method and the uniform design method of test data generated by the uniform design supplementation improved compared to the uniform design supplementary method to generate test data in the test cost and test the effect of better value for money; proposed based on improved genetic algorithm to automatically generate Java classes The method of the test data, the method uses binary coding and floating point data using integers, characters and bytes Float encoding hybrid coding, Java class represented by the form of a byte code adding means, and randomly generates a set of test data as the initial population through test coverage analyzer to monitor the implementation process of the test program, in order to obtain coverage as a fitness value, the implementation of genetic manipulation, the experimental results show that: the improved genetic algorithm to automatically generate Java class test data. Java program abstract class contains the implicit interface the other implicit class and ordinary class test different mode of test cases, combination of the Liskov alternative test requirements of the principles of the class, and the automatic generation of test cases based on Junit template tool. Finally, based on Junit testing framework and the results of the study, a prototype of a Java platform unit testing tool. Programmers can improve the development of this tool as a platform, programmers can automatically generate test data and test case template, writing test cases, expectations need to be added to automatically generate test cases template to get a complete test case the efficiency and credibility of being tested software unit.
|
Related Dissertations
- Development of the on-line Training and Examination System of Army,TP311.52
- Designs and Applications of Fuzzy Synthetic Evaluation Models Based on Parallel Algorithms,TP18
- Based on Genetic Algorithm Pishihang irrigation canal water allocation marshalling model of,S274
- Genetic Algorithm in logistics and warehousing Optimization Research,F259.2
- Mining resources based on genetic algorithm optimization model of,O224
- The Research and Application of Modified Algorithms About Fuzzy Predictive Functional Control,TP273
- Optimal Control of Emulsion System in Cold Rolling,TP273
- Research on the Marshalling-scheduling Model and Algorithms of Freight Trains Based on Game Theory,O225
- Multi-directional Mutation Genetic Algorithm and Research on Neural Network Optimization,TP18
- The Application of Using Genetic Algorithms on Universities Course-arranging System,TP18
- Research on Mobile Robot Path Planning and Simulation Realization,TP242
- Research on Routing Algorithmin Sensor Networks Based on Cluster with Mobile Sink,TP212.9
- Research and Implement of the Theme Crawler for Automotive Industry,TP391.3
- The Research and Implement on Camera Calibration Technology Based on Trifocal Tensor,TP391.41
- Decision Support System of Vehicle Scheduling in Double Level Garage,TP242
- The Studies on Some Improvements of the GA and Their Applications in SVM,TP18
- A Reduction Method for Artificial Neural Network Inputs Based on An Improved Genetic Algorithm,TP18
- Optimal Riser Design of Steel Casting Based on CAE Analysis,TG260
- In-furnace Temperature Information Included Combustion Optimization of a Utility Boiler,TK227.1
- Design of High-efficiency Thermophotovoltaic System,TM914.4
- A Novel Multiport Matching Network Model of an Indoor MIMO System,TN919.3
CLC: > Industrial Technology > Automation technology,computer technology > Computing technology,computer technology > Computer software > Program design,software engineering > Software Engineering > Software Development
© 2012 www.DissertationTopic.Net Mobile
|