Font Size: a A A

Research On Test Case Generation Based On UML Activity Diagram Model

Posted on:2021-02-08Degree:MasterType:Thesis
Country:ChinaCandidate:T T FengFull Text:PDF
GTID:2428330602988600Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Software modeling and software testing play a very important role in the software development process.Since manually generating test cases is relatively inefficient,and the time and expense it takes is also large.It can no longer meet the needs of the software testing market.In recent years,software engineering has developed rapidly,and UML models have been widely used in the software development process.How to generate test cases based on UML models has become one of the hot topics of research.In order to improve the efficiency of generating UML activity diagram model test cases,this article analyzes the advantages and disadvantages of each method and selects the graph theory method to process the activity diagram.The method of generating UML activity diagram model test scenarios is optimized.Use of swim lanes in activity diagrams.The main work includes:(1)propose a method for generating test cases based on UML activity diagrams,first formally define and structure the activity diagrams to improve the testability of the activity diagrams,convert the activity diagrams into directed diagrams,and then A test case coverage criterion suitable for the activity graph is proposed.The optimized depth-first algorithm and improved anti-ant colony algorithm are used to search the directed graph to obtain the test scenario.Then the test scenario is optimized.Finally,the optimized test scenario is found.Test data,combining test data and test scenarios to obtain test cases.(2)In order to verify the feasibility of the proposed method,the proposed method of generating test cases based on UML activity diagrams was combined with the actual DS-Java system to obtain the activity diagram of DS-Java,and then the proposed method of generating test cases was used to obtain The test scenario of the ordinary member function activity diagram,and then find the input and output data according to the test scenario,and combine the test scenario and test data to obtain a test case.By improving the method of generating test case based on UML activity diagram model,this paper improves the efficiency of testing,makes the bug discovery time earlier,and reduces the redundancy of the scene.
Keywords/Search Tags:Software modeling, UML activity diagram, Test scenarios, priority
PDF Full Text Request
Related items