Font Size: a A A

Research And Implementation Of Interface Test Case Generation Method Based On Integrated Learning

Posted on:2022-10-20Degree:MasterType:Thesis
Country:ChinaCandidate:X SangFull Text:PDF
GTID:2518306725968939Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
The importance of interface testing in software testing is becoming more and more prominent,and designing a set of efficient interface test cases in the black box testing of interface testing is the first thing to consider.Designing reasonable interface test cases can improve the quality and efficiency of software interface testing.Generally,interface test cases are tested by covering different combinations of input parameters to ensure the reliability of the interface.For an actual project of a certain company,in order to generate test cases that meet the requirements,this thesis mainly carried out the following two aspects:(1)This paper also studies the generation of input parameter combination of interface test cases and the generation of expected output results.In the interface input parameter combination part,the PICT combination test tool automatically generates the n-way combination data of interface input parameters after designing the input model file for the interface document;For the generation of interface expected output results,based on the automatic generation of interface input parameter combination data,this paper proposes an interface test case generation method based on integrated learning.Firstly,a set of interface input parameter 2-way combination data is generated with the help of PICT combination test tool,Then,the expected output results of this group of data are determined according to the input-output correspondence in the interface document,so as to obtain the typical sample set.Finally,after the coverage check of the typical sample set,the data is preprocessed to train the integrated learning classification model,and finally the complete expected output results are obtained.(2)Based on the interface test case generation method based on integrated learning,an interface automation test framework is designed and developed.The framework development technology is Pytest+Python+Requests+YAML+Allure,and the proposed interface test case generation method is used as the automation test framework.The core module is used for the actual test project.In addition,the framework also includes a test configuration module,a test case script module,a test case execution module,and an Allure test report generation module.The various modules of the framework coordinate and cooperate to realize the automatic generation of interface test cases,data-driven testing,automatic execution of tests,and automatic Generate interface test reports and other functions.Experiments and test results show that the interface test case generation method based on integrated learning has a better generation effect than a single classifier to generate interface test cases,and the interface automation test framework realizes multiple functions such as automatic generation of interface test cases.The framework runs It is stable and efficient,improves the degree of automation,reduces the cost of testing,and achieves the expected design effect.
Keywords/Search Tags:Interface testing, Test case generation, N-way combination, Integrated learning, Automated test framework
PDF Full Text Request
Related items