| In today's software industry,the testing,as an indispensable link in software development,attracts great attentions.The automatic test,as a supplementary testing method,is increasingly concerned and accepted by the general public.Since the automatic test can save labor costs in testing to some extent,this technology is widely used by many companies in the software industry.As a critical part of the test link,the interface testing is naturally and frequently associated with the automatic test.Especially the automatic test technology based on the interface of Web Service,has an even broader application prospect.The data formats transmitted by the Web Service technology are all agreed based on a contract in advance,thus ensuring low possibility of change in data structure minimizing the maintenance cost of automatic test scripts and enhancing the efficiency of automatic test to the utmost.Then the implementation of an automation testing system designed for the Web Service interface is becoming more feasible and effective.Therefore,the system is specially developed for the implementation of automatic test function aiming at the interface of Web Service.Users can design their own test data and customize test plans through the system.The system will initiate automatic test tasks at fixed time or periodically pursuant to the test plan,and conduct automation verification on the Web Service interface based on the test data.Eventually,the test results and logs will be presented to the user.To achieve the above functions,the automation testing system of the interface consists of a management platform of automatic test,a framework component of automatic test and a continuous integration platform.The management platform of automatic test is applied to design the use case of test and test suites,initiate test plan and ultimately demonstrate the test results.The framework components of automatic test integrate the Gallio platform of a third party,and achieve the automatic operation of test tasks through the physical architecture of Salve-Master.Moreover,the framework components of automatic test will also collect test data and turn them into transmittable message to exchange data with Web Service,compare the returned results with expected ones,and ultimately saving the test results in the database.Finally,the automatic test will be carried out more efficiently by connecting Jenkins(a continuous integration platform of a third party)to the system.We have conducted successively an in-depth study on the implementation of drive of test data,selection and integration Gallio platform and continuous integration platforms,as well as layout of relevant physical architectures during the development process of the system.In the end,the implementation scheme as above has been determined.Compared with other similar interface automation testing system and with access continuous integration platform,the system automatically carry out test plan against modified interfaces regularly or at regular intervals,therefore,the regression testing can be implemented in the first time greatly improving the testing efficiency and guarantee the software quality to the largest extent.In addition,the system carries out task assignment and dispatch on the basis of the physical structure of Salve-Master.Therefore,compared with the similar systems available in the market,the system also can meet the requirements that allow multiple users to use it simultaneously.Moreover,compared with the similar systems,the system makes a great breakthrough in the test data driven.The similar systems can only support one-type data driven,while,the system can carry out test data driven with multi data sources such as documents,database or execution of SQL statement,which greatly improve the usability of the system.Currently,the system has been used on-line from October 13,2015.Base on the automation testing system,the test man-hour of single interface in practical project is reduced from average 39 hour/person to 27 hour/person with efficiency increased more than 40%.For regression testing,if every interface has 15 use cases on average,one-hour human cost can be saved for every interface at least. |