Font Size: a A A

Design And Implementation Of API Automated Test Platform

Posted on:2022-07-09Degree:MasterType:Thesis
Country:ChinaCandidate:X ShiFull Text:PDF
GTID:2518306605470854Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
Nowadays,with the rapid development of the Internet,various software emerge in endlessly.The Internet and software are changing people's cognition and lifestyle,and improving people's quality of life.At the same time,people have higher requirements for the functions,performance and practicability of the software.Increasing business needs make software systems and testing more and more complex.Software testing occupies an increasing proportion in the software life cycle.At this time,traditional manual testing can no longer meet the needs,and the importance of automated testing is becoming more and more prominent.API testing is a very important part of software testing.It is a general trend to improve the automation of API testing.Based on the above background,an API automated test platform was designed and implemented.The research goal of the thesis is to realize a platform that can effectively configure and manage the related parameters of API testing and can automatically test API.Based on the goal,firstly,we understand the background and related technologies of automatic testing,and investigate its development trends and problems at home and abroad by consulting the literature.Then,according to the API testing process and the needs of testers,the overall requirements are analyzed through use case diagrams.The analysis shows that the main functional modules of the platform,including project,message,interface,data source,test case and test plan.At the same time,non-functional requirements are described.Based on the requirement analysis,an outline design of the platform is carried out.And the subfunction modules included in these function modules are displayed by the flowchart.The thesis uses the E-R diagram to model the data required by the platform,showing the entity attributes and the association relationship between each data entity.Finally,the thesis uses class diagrams and sequence diagrams to describe the implementation process of each core function in detail.The difficulty and innovation is the automatic generation of robot script files.In this process,according to the steps configured in the test case,the script files required by the RF are spliced and generated.After coding,the thesis designs test cases,and complete the functional test of the platform according to the test cases.The thesis uses JMeter to test the non-functional requirements such as concurrency and response time.After testing,the functions of the platform can work normally,the user interaction interface can be used normally,and the business functions meet the requirements.The platform has functional correctness and robustness.An API automated testing platform was designed and implemented combining RF technology and requirements of B company developers for interface automated testing.After the user logs in,he can conveniently manage and maintain projects,messages,interfaces,test cases,and test plans.Users can click the "Execute" button of the test plan,and the platform will automatically generate the robot script file of the test plan and execute it.The platform greatly improves the automation and efficiency of interface testing,and reduces time and cost.
Keywords/Search Tags:automated test platform, robot script file, API, Robot Framework
PDF Full Text Request
Related items