Font Size: a A A

Design And Implementation Of The Web Interface Testing Automation Framework Based On Testng

Posted on:2017-04-04Degree:MasterType:Thesis
Country:ChinaCandidate:L X JiangFull Text:PDF
GTID:2348330512965070Subject:Electronic and communication engineering
Abstract/Summary:PDF Full Text Request
With the development of software development process,the architecture of software products is becoming more and more complex,and the system is developing toward distributed,business center and high availability.In the hierarchical software architecture,because the interface modules are developed independently of each other,the interface function provided by the correct or not and whether it is in line with expectations usually in the system integration time can be clear.At the same time,due to the complexity of the system,through the traditional interface test to ensure that the entire Web function is no longer effective or costly.Moreover,the industry does not form a unified interface testing automation framework standards,only some of the larger companies will be based on their business needs to test the automation of the framework design and implementation.The purpose of this paper is to design and implement an automated framework for testing Web interfaces based on Testng,to verify the correctness of the interface provided by the program module and replace most of the manual tests with automated testing,and the framework can be applied to the current Most of the Web-based Http-based applications are available.The main research works are as follows:1.Based on the basic theory of interface test,the related technologies and methods of interface testing are analyzed.According to the characteristics of interface test and the existing automatic testing framework,this paper analyzes the difference between Testng and Junit in terms of the characteristics of Java project and the system architecture.Due to the characteristics of the Testng tool,the testng tool is proposed to build an automated testing framework.2.Design and implementation of data storage and encapsulation module.The traditional data storage method does not separate the test code from the test data,and has a huge amount of code.The Excel and Dat two external file storage methods are designed to separate the code from the data and reduce the code redundancy.And use Mybatis framework to connect the database to read test data,to achieve the operation of the database.3.Design and implementation of Web interface request and application interaction module.According to the principles and characteristics of Http request,the HttpClient tool is used to send the interface request,and the data is encrypted to generate the corresponding Uri in the process of constructing the interface request.The framework designed in this paper can send Http interface request of Web application based on B / S architecture and return the corresponding result to realize the function of interface access.4.Design and implementation of interface test case execution module.According to the characteristics of the Java language,the specification of the interface test case and the specification of the test are defined.At the same time,the test case is used to call and organize the test case according to the business requirement,and the use case of the interface test framework is implemented,which lays the foundation for the follow-up continuous integration.5.Compile the test cases to meet the business requirements to test the framework,through the Jenkins platform for continuous integration,according to the results of the operation of the framework to test the function and performance.Through the analysis,the interface test automation framework designed in this paper can effectively realize the interface test,and has the characteristics of short execution time and high accuracy.
Keywords/Search Tags:Web Interface Testing, Automation Testing, Testing Framework, Testng
PDF Full Text Request
Related items