In the development of software engineering,software testing plays a more and more important role in each stage,and the test case is the core content of the test stage,and it is an important guarantee for the quality of software.How to express the system requirements clearly and effectively test the system has received the common attention of the test researchers.The purpose of software testing based on UML model is to use the UML model diagram to model the system,so as to guide the test and verify whether the software meets the requirements design.In order to improve the automation of the test work,ensure the adequacy of the software test,and to make the relevant personnel more clear understanding system,we choose the appropriate UML to model the system.After analyzing the advantages and disadvantages of the UML model,the paper selects the use case diagram as the guidance,models the system based on the activity diagram,and optimizes the modeling method of the activity graph.After the modeling is completed,the activity diagram is transformed into a directed diagram,and the traversal algorithm in the diagram theory is used to traverse the test scene of the directed diagram.At the same time,the strategy of applying the double traversal mode to the software system is put forward,which is a good way to generate the activities of the concurrent modules in order,and the cycle module and limit the number of cycles.Ensure effective coverage of loops and shorten time.For the second layer traversal of the concurrent module,the paper compares the depth first traversal and the random filtering generation algorithm,and can clearly see the more optimized traversal mode from the result of the generated data.The paper focuses on improving the way of activity diagram modeling and the use of double traversal to generate test paths,so as to solve the complicated problem of complicated test modules generated by modules.Finally,the automatic test case generation system is implemented,and the starUML tool is used for modeling for the use of UML modeling and the research of test case generation algorithm,combined with the mail system to generate the executable test cases,and can improve the efficiency of the test work and sufficient coverage. |