Software testing is an effective means to ensure software quality.As the core element of the testing phase,test cases directly affect the results and progress of the test.However,at present,test cases generally rely on manual generation,and the generation process is cumbersome.UML activity diagram model can represent the dynamic behavior of software system,and is widely used in software development because of its visualization and high versatility.In order to improve the test efficiency,the method and technology of generating test cases from activity diagram in UML model are studied.Firstly,this paper analyzes the existing research on UML dynamic model generation test case,summarizes the problems existing in the test case generation of UML activity diagram,summarizes the related testing technology based on activity diagram,and proposes the process of test case generation of activity diagram.Research content and key issues.Secondly,this paper analyzes the key elements related to the test case generation of activity diagram,and builds the test case generation model of activity diagram based on the scenario testing method.The model divides the test case generation process into software function model generation based on activity diagram and test scenario generation,test data generation,test data and test scene binding four stages,expounding the tasks and ideas of each stage.In order to solve the problem of concurrent module scene explosion,an optimization method of concurrent module test scene based on genetic algorithm is proposed.In order to generate test data with complete representation,a method of adding data constraints based on active test profiles is designed.Thirdly,with the test case generation model as the core idea,the functional level model of the test case generation system is constructed,the interaction relationship between each level is pointed out,the design points of each level are extracted,and the overall implementation structure of the functional model is designed.The realization ideas of each level are given,and the specific methods and technologies in the implementation process of each level are given.Finally,the function test of the test case generation system is carried out through an example.Based on the test case generation process,the key steps are recorded and explained,and the feasibility and effectiveness of the model are explained by comparing and analyzing the results. |