Font Size: a A A

Design And Realization Of Interface Test Framework Based On TestNG

Posted on:2018-07-26Degree:MasterType:Thesis
Country:ChinaCandidate:H F ZhaoFull Text:PDF
GTID:2348330515468958Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
In recent years,software testing has played an important role in ensuring software quality,as the number of mobile applications is gradually large and the software architecture becomes more and more complicated.As a test of interface among components of a system,interface test is characterized by low cost and high efficiency,and plays an increasingly important role in the process of software development based on interface.In this context,the thesis designed and developed a TestNG-based interface test framework with C/S architecture.Firstly,this thesis introduces the research background and current situation of the automatic testing and interface test framework,and expounds the content and the whole structure of the thesis.Then,the goal and functional requirements of the framework are analyzed,and the whole design of the test framework is done.The test framework is divided into four modules:security verification module,data-driven module,HTTP protocol module,and report management module.Then,the system development platform and environment are constructed by using STS(Eclipse)development tool,TestNG test framework and Maven building tool,and the implementation process of each module is explained in detail.Among them,the security verification module is implemented by applying token authentication mechanism,MD5 hashing algorithm and AES encryption/decryption algorithm;The data-driven module is designed and implemented by the idea of data driven,and the data file formats supported by this module include @DataProvider format,CSV format and EXCEL format;The HTTP protocol module adopts the HttpClient tool to encapsulate the common request and Response methods in the HTTP protocol;The report management module implements the log storage of test case by combining with Log4j,and integrates with the Jenkins continuous integration platform to send the test report to the tester by email.Finally,the running environment and function test of the test framework are introduced,and the application of the testing framework is demonstrated by the example of the interface of the shopping cart.The results of running a large number of interface cases show that the test framework realizes the automation of interface testing to some extent,achieves the expected effect and improves the test efficiency.
Keywords/Search Tags:Automated testing, Interface testing, TestNG framework, Jenkins integrated Platform
PDF Full Text Request
Related items