Font Size: a A A

The Research On Automatic Test Case Generation Method Based On Functional Requirement Specification

Posted on:2022-08-16Degree:MasterType:Thesis
Country:ChinaCandidate:S J ZhongFull Text:PDF
GTID:2518306731972539Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Test case generation is a key task in software testing.Traditional test case generation methods generally involve testers manually writing test cases based on requirements documents.The quality of the test cases is affected by the knowledge and ability of the test engineer,and manual writing tends to lead to problems such as difficult time control and high cost.Application of automated test case generation technology can significantly improve work efficiency,reduce test costs,and ensure test coverage to a certain extent.However,the current research on the automatic generation of test cases also has some limitations,such as the need for additional modeling costs and lack of test input data.In this paper,the existing methods require additional modeling costs,as well as the lack of test data generation in different scenarios.First,a normative description method of functional requirements is proposed,including the design of use case templates and writing rules,to ensure the completeness and standardization of the requirement statement,and provide a reliable analysis basis for the automatic construction of test models and the generation of test data.Then a method for automatic generation of test cases is proposed,which can quickly generate test cases and corresponding test data in different scenarios by constructing test models and data generation strategies.The method needs to read the use case text in a prescribed format,convert the event flow information of the use case text into a test model,and generate test paths in different scenarios through a depth-first search algorithm.After semantic analysis of the conditional sentences in the text,the text conversion rules are used to convert the structured semantic information into expressions,which can realize the generation of test data.Finally,an automatic test case generation system is realized according to the proposed test case automatic generation method,and experiments and evaluations are carried out for several actual cases.The experimental results show that the method proposed in this paper can generate test cases corresponding to functional requirements in the requirements analysis stage.The generated test cases also include the actual input values of the test,and no additional system modeling is required,which can save manpower.Effectively improve test efficiency and help demand verification.
Keywords/Search Tags:Functional requirement specification, Test case, Test method, Semantic analysis, Transformation rules
PDF Full Text Request
Related items