一个基于UML协作图的集成测试用例生成方法-SEG-南京大学.PDF
文本预览下载声明
第8 期 电 子 学 报 Voi . 32 No . 8
年 月
2004 8 ACTA ELECTRONICA SINICA Aug . 2004
一个基于UML 协作图的集成测试用例生成方法
王林章,李宣东,郑国梁
(南京大学计算机科学与技术系,江苏南京2l0093 )
摘 要: UML 协作图描述了系统的一个协作过程中参与对象之间的结构关系和交互行为,确认它们是否被正
确实现是集成测试的工作 本文提出了一个基于 协作图生成集成测试用例的方法,将表示设计的协作图作为测
. UML
试模型,首先通过遍历每条消息的直接后继识别协作图中的表示用例实现的所有可能的场景路径,然后在遍历每条场
景路径的过程中获取相应协作执行的路径条件、参数变量和预期方法调用序列,最后使用范畴-划分方法确定场景路
径上的输入、输出、环境条件的合理组合作为覆盖该场景路径的测试用例,用于测试一个协作场景路径上的交互行为.
该方法,集成了白盒方法和黑盒方法,在覆盖所有的测试需求的前提下,生成的测试用例较少.
关键词: 测试用例生成;集成测试;UML 协作图;场景路径
中图分类号: 文献标识码: 文章编号: ( )
TP3ll.5 A 0372-2ll2 2004 08-l290-07
An Approach to Generate lntegration Test Cases Based on
UML Collaboration Diagrams
, ,
WANG Lin-zhang LI Xuan-dong ZHENG Guo-iiang
( , , , , )
CS Department Nanj ing Uniuersity Nanj ing Jiangsu 2l0093 China
Abstract : UML coiiaboration diagrams represent the structure reiationship and interactive behavior of the objects invoiving in a
,
coiiaboration of the software system whether they are correctiy impiemented or not couid be vaiidated by integration testing . An ap-
proach is proposed to generate integration test cases based on UML coiiaboration diagrams . It takes a coiiaboration diagram as the test
modei,
it identifies aii the scenario paths in the diagram which represents use case reaiizatio
显示全部