This paper presents a novel approach of generating system testing automatic test cases from UML design diagrams. This method can be applied to any system modeled by UML. Associating Graph Theory innovatively, we abstract use case and sequence diagram and define coverage criteria to generate test cases in our test case generation scheme. Through two levels traverse, generate test cases automatically and satisfy the coverage criteria stated in this paper. The test cases thus generated are suitable for system testing and to detect operational, use case dependency,interaction and scenario faults. The coverage reaches at its maximum level, covering all use cases, use case dependency,and each sequence of message path of interaction.%提出了一种新颖的基于UML图自动生成系统测试用例的方法.此方法适用于所有UML建模的系统.用创新性地结合图论知识,对用例图和序列图进行抽象,定义了相应的测试覆盖准则以生成测试用例.通过两级遍历,自动生成系统测试向最,并且达到所提的系统测试覆盖率的要求.能够覆盖所有用例、用例依赖性、以及交互中所有的消息序列.实现最大化的覆盖范围.
展开▼