Font Size: a A A

Design And Implementation Of API Oriented Test Case Reduction System

Posted on:2022-07-10Degree:MasterType:Thesis
Country:ChinaCandidate:N X GanFull Text:PDF
GTID:2518306332467944Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Application Programming Interface(API)testing is an important part of software testing.To meet the coverage of test requirements,testers design a large number of API test cases through a combination of input conditions.After many times of test case design,there are duplicate or invalid test cases in the API test case set,which leads to an increase in the number of test cases,lower testing efficiency,and insufficient timely detection of software defects.Therefore,the API test case set needs to be reduced to reduce the cost of test case execution and improve the tester's efficiency.In order to solve the problems of redundant test cases and low execution efficiency in API testing,this paper proposes an improved GRE and ant colony algorithm,which improves GRE algorithm and ant colony algorithm.According to the characteristics of GRE algorithm,such as simple modeling,weak searching ability and strong searching ability of ant colony algorithm,the test cases are reduced by combining them.Experiments show that the algorithm can obtain a set of test cases that fully meet the test requirement set,and have low execution cost and high average error detection rate.In this paper,the improved algorithm is applied to practical application,and an API-oriented test case reduction system is designed and implemented.The system can collect the execution log from the execution machine,and preprocess,format and persist the execution log.After extracting the API test requirement set and the API test case set from the execution log,the system uses the improved algorithm to reduce the API test case set,thus reducing the execution cost of the API test case set,speeding up the test progress and reducing the occupation of test resources.For the basic part,the paper first introduced the research background and related technologies of API test case set,second analyzed the requirements of the reduction system,and third expounded the functional and non-functional requirements of the API test case reduction system.In the core part,it first showed the research of test case set reduction method based on GRE and ant colony algorithm.Then it introduces the outline design,design and realization of API test case reduction system.Finally,through unit test,integration test and performance test,it is verified that the system meets the design requirements.
Keywords/Search Tags:software testing, api test case set, test case reduction
PDF Full Text Request
Related items