首页 | 本学科首页   官方微博 | 高级检索  
     

一个基于UML协作图的集成测试用例生成方法
引用本文:王林章,李宣东,郑国梁.一个基于UML协作图的集成测试用例生成方法[J].电子学报,2004,32(8):1290-1296.
作者姓名:王林章  李宣东  郑国梁
作者单位:南京大学计算机科学与技术系,江苏南京 210093
基金项目:国家高技术研究发展计划(863计划),国家自然科学基金,国家重点基础研究发展计划(973计划)
摘    要:UML协作图描述了系统的一个协作过程中参与对象之间的结构关系和交互行为,确认它们是否被正确实现是集成测试的工作.本文提出了一个基于UML协作图生成集成测试用例的方法,将表示设计的协作图作为测试模型,首先通过遍历每条消息的直接后继识别协作图中的表示用例实现的所有可能的场景路径,然后在遍历每条场景路径的过程中获取相应协作执行的路径条件、参数变量和预期方法调用序列,最后使用范畴-划分方法确定场景路径上的输入、输出、环境条件的合理组合作为覆盖该场景路径的测试用例,用于测试一个协作场景路径上的交互行为.该方法,集成了白盒方法和黑盒方法,在覆盖所有的测试需求的前提下,生成的测试用例较少.

关 键 词:测试用例生成  集成测试  UML协作图  场景路径  
文章编号:0372-2112(2004)08-1290-07
收稿时间:2003-07-28

An Approach to Generate Integration Test Cases Based on UML Collaboration Diagrams
WANG Lin-zhang,LI Xuan-dong,ZHENG Guo-liang.An Approach to Generate Integration Test Cases Based on UML Collaboration Diagrams[J].Acta Electronica Sinica,2004,32(8):1290-1296.
Authors:WANG Lin-zhang  LI Xuan-dong  ZHENG Guo-liang
Affiliation:CS Department,Nanjing University,Nanjing,Jiangsu 210093,China
Abstract:UML collaboration diagrams represent the structure relationship and interactive behavior of the objects involving in a collaboration of the software system,whether they are correctly implemented or not could be validated by integration testing.An approach is proposed to generate integration test cases based on UML collaboration diagrams.It takes a collaboration diagram as the test model,it identifies all the scenario paths in the diagram which represents use case realization by traversing the direct successors of each message.It selects and traverses each scenario path to get the method call sequence,path condition and parameters.It applies category partition method to generate rational combination of input parameters,environmental conditions,as well as the corresponding output and method call sequence,to form a test case for each scenario path.This method,combines white-box and black-box test method to generate fewer test cases to test the gray-box behavior,as well as to cover all the integration requirements.
Keywords:test cases generation  integration testing  UML collaboration diagram  scenario path  
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《电子学报》浏览原始摘要信息
点击此处可从《电子学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号