Font Size: a A A

Research And Implementation Of Interface Testing System Based On JUnit Framework

Posted on:2014-06-30Degree:MasterType:Thesis
Country:ChinaCandidate:G ZuoFull Text:PDF
GTID:2268330425495373Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With increasing scale of software project and complexity of implementation framework in recent years, the complicated system should be divided into more reasonable components that are smaller as well. Afterwards, a good interface design can reduce the interdependence between each component of the system, increase the cohesion of the components, and reduce the coupling degree and thus increase the maintainability and expandability of the system. In this regard, interface test tasks for external service provided by subsystem, bottom layer and business center become especially critical and important.From the perspective of basic interface testing theory, this thesis introduces the techniques and principles related with software testing and interface testing. In this thesis also analyzes and compares the characteristics of interface testing and the existing interface testing framework. Through interface checking data interaction and transfer and the interdependence between control management systems in combination with the characteristics and system framework of current java projects, this thesis uses JUnit and provides visualized testing service support system that can be easily operated for HTTP interfaces based on the interaction between browser and server, and High-Speed Service Framework interfaces based on distributed application. The system uses the prevalent java framework and JUnit framework, and realizes the access, application interface testing management, interface data analysis and the continuous integration of test results through reflection mechanism with determined access specification. In this way, the common and important interfaces in java projects can carry through automated regression testing and continuous integration through the system so as to concentrate on the validity, stability and expansibility of the service and thus provide effective guarantee for continuous and stable service provided by complicated system.Work completed by the author:(1) Based on the research of the enhanced reflection mechanism, acquired the method parameters of the application interface under test;(2) Implemented the test method of the efficient service framework interface based on the distributed application layer;(3) Submitted test parameters through the visual form and completed the test of relevant interface based on JUnit framework;(4) Implemented the interface test system; responsible for the access request control module (in the background), the interface access system and data analysis module, interface test management module, and continuous integration, etc.Interface testing can be implemented under multi-system and multi-platform frame, which has highly efficient cost-income ratio. Interface testing provides efficient defect detecting and quality supervision capability for high-complexity platform. The more complex the platform is and the more enormous the system is, the more obvious the interface testing result will be. Testing management and continuous integration can be conducted for the interface provided by components or dependency systems in project development through the application of the interface testing system, which can improve the development efficiency and reduce the problems caused by the programs in the development process, and also reduce extra interface testing regression caused by demand or program changes so as to ensure continuous and stable external service provided by the interface.
Keywords/Search Tags:Interface, Interface Testing, Java, JUnit Framework, CI
PDF Full Text Request
Related items