Font Size: a A A

The Design And Implementation Of Automated Test For Server Interface

Posted on:2019-05-11Degree:MasterType:Thesis
Country:ChinaCandidate:X LiFull Text:PDF
GTID:2428330566995790Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of the Internet industry,it has been dominated by developers from the early stage to the rapid development.The iteration version is almost weekly,and the test is also changed from simple debugging to the most important part of software acceptance.Because of rapid development,a large number of interface optimization and a small number of new function parameters exist every week.Each interface needs to be tested weekly to ensure that the new code will not affect the old code.As the interface Increased,this part of the workload will become the largest weekly workload,so automated testing came into being.The advent of automated testing has greatly reduced the workload of testers and made the process of software testing more standardize.The project is based on the needs of the MIG project.This paper briefly introduces the development of software testing and the mainstream automated testing framework currently applied,and analyzes the advantages and disadvantages and application scenarios,focusing on the interface automation test that needs to be implemented.On the design and implementation,an automated testing system for MIG project is implemented by using the Jenkins+Test Ng+Maven model.The test system selected Test Ng test framework adopted by major companies in China,based on this package,there are three sets of test environment for company testing,the use of Jenkins can run environment-based automation test cases,has a strong scalability.The system requests the server to simulate HTTP requests.If the request is successful,the system will json parse the returned fields and read the json files for expected results in the system to compare the expected value with the actual value.Considering the universality and extensibility,the system encapsulates some general methods and complex methods.The tester only invokes the corresponding encapsulation method when writing test cases.Due to the iteration of the version once a week,the automated testing framework plays a very good regression and has a strong reusability before the new requirements go online.Later,we will continue to expand the functions of the system.According to the actual demand for takeaway payment,a full link test is completed.It will simulate the whole process of user order payment order payment success--rider rush to pick up a bike--to the store-the service of a rider-user sign.
Keywords/Search Tags:Interface test, Testng framework, Software test
PDF Full Text Request
Related items