Font Size: a A A

Design And Implementation Of A Automated Function Test Of Interfaces System Based On Service-Oriented Architecture Interface

Posted on:2017-01-26Degree:MasterType:Thesis
Country:ChinaCandidate:X M FuFull Text:PDF
GTID:2308330485484253Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Service-oriented Architecture (Service Oriented Archi(?)ure, SOA) is gradually becoming the rewarded development architecture by medium enterprises. In the meanwhile, it brings challenges to testing because of its characters including distribution and composition of several independent function entities. As main interface testing is realized by calling code, and the coupling between interface testing and front-end U1 is loose, so the realization of automatic testing in SOA interface level could significantly improve testing efficient and the multiplex ratio of regression testing, which is one of the effective ways to guarantee the quality of systems.In this paper, based on SOA implementation of the actual test requirements of one certain enterprise business system, an automatic functional testing system is designed and implemented based on SOA interface. The goal is to improve the testing efficiency and guarantee the quality of the business system by the realization of automatic testing of interface functions within this business system and by the management of testing tasks.In this paper, the architecture and interface characteristics of the business system is analyzed in the requirements analysis and system design part, four kinds of testing requirements of interface function and corresponding automatic testing solutions are summarized from the aspect of testing execution, and system requirements, including the interface testing of business system and management of testing tasks, are analyzed through UML modeling. Then, the design of system overall framework is introduced, and the system is divided into two parts, the executor and the testing task management subsystem, and general design, detailed design and implementation are conducted to both of the two parts. The executor is realized on Jasmine, Rhino, Spring MVC, which is mainly composed of script analyzer, testing execution controller, consumption server, dynamic data source constructor. The executor can be driven by script, and it supports testing script analysis and dynamic data source conduction which are described in behavior driven developments style, and it is suitable for different kinds of SOA interface automatic function testing. The testing task management subsystem is mainly realized on the basis of the executor, Django Web framework of Python, MonggoDB, front-end framework Angularjs and Twitter Bootstrap. It provides functions including automatic functional testing of single point interface, management of interface information, management of testing task and analysis of testing result. Testing personnel and testing manager could use the friendly system interface provided by the testing task management to manage testing tasks and testing results.In order to guarantee that the system could meet the actual requirements of enterprises, this paper introduces how to conduct unit testing by using JUnit in the testing and implementation parts, and conducts integration testing to the system. At last, in the part of system implementation, aiming at interface function and using one certain core module in the business system as example, the paper finishes testing of the example module by designing testing use cases, writing testing script, executing testing and managing testing tasks, and analyzing testing results.The practical application results show that the system can be used in the interface testing of business system and interface testing of other system. It can significantly enhance the efficiency of testing and guarantee the quality of systems.
Keywords/Search Tags:SOA interface, BDD, Automatic, Interface function test, SpringMVC
PDF Full Text Request
Related items