摘要
UML顺序图直观地展现了对象之间的消息动态交互过程,适合于作为面向对象软件交互测试用例生成的依据。本文针对测试用例中的测试场景生成问题进行了研究,在将顺序图转化为消息交互流程图的基础上,根据对象覆盖、消息对覆盖、消息覆盖和逻辑路径覆盖等准则,分别给出了不同的测试场景生成算法,最后探讨了测试场景的健壮性。
UML sequence diagram shows the dynamic process of message interaction among objects, it is fit for generating interaction test case of OO software. This paper discusses the generation of test scenario. Based on transformation of sequence diagram to message interaction flow graph, according as the rules of object-cover, message-pair-cover, message-cover and logical-path-cover, it bring forward corresponding algorithm of test scenario generation. Finally it discusses the robustness of test scenario.
出处
《计算机应用与软件》
CSCD
北大核心
2006年第4期30-31,116,共3页
Computer Applications and Software
关键词
UML顺序图
测试场景
UML Sequence diagram Test scenario