论文部分内容阅读
首先在分析 UML 模型可测试性的基础上,解析顺序图,得到场景测试树,再遍历该树,得到场景的输入、预期输出、约束条件以及场景环境,这4部分组成了测试用例。再通过比较 UML 设计修改前后两个版本的顺序图,找出其中的改变信息,并在测试用例和变化信息间建立映射关系,最后从原测试用例组中挑选出与映射关系有关的测试用例。“,”Beginning with analyzing the testability of UML model, a scenario tree can be created by parsing it. The input, respected output, constraint and scenario context are generated through traversing the scenario tree, and the four parts constitute the test case. We can find the changed information before and after revision by comparing versions of the sequence diagram. Finally, a mapping relation between changed information and test cases is generated. Using this map relation we can select test cases affected by revision.