对基于状态图生成集成测试用例的方法进行了研究,通过构造集成测试模型,重点描述了两个对象或组件的状态图进行合并的方法,并给出了状态图的形式化描述,以及如何对组合状态图进行展开用于集成测试用例的生成。为了验证该方法的实用性,又以实际项目研究为例,实现了基于状态图集成测试用例的生成工具,对该方法进行了验证,并给出了算法的部分实现代码。该方法将系统设计和测试用例的设计统一起来,是软件测试自动化的一个探索。
On the research of integration test cases generating method based on UML. By constructing integration test model, it is described a technique of Statecharts diagrams combine with two objects or components. A valid method of formal combined state, and how to outspread the combined Statecharts diagram to generate test cases are proposed. For the purpose of validate practicability of the method, a tool about integration test cases generation and part codes is achieved. It unified system design and use case design. It is a new direction for sottware testing automatically.