期刊文献+

一个基于UML协作图的集成测试用例生成方法 被引量:25

An Approach to Generate Integration Test Cases Based on UML Collaboration Diagrams
下载PDF
导出
摘要 UML协作图描述了系统的一个协作过程中参与对象之间的结构关系和交互行为 ,确认它们是否被正确实现是集成测试的工作 .本文提出了一个基于UML协作图生成集成测试用例的方法 ,将表示设计的协作图作为测试模型 ,首先通过遍历每条消息的直接后继识别协作图中的表示用例实现的所有可能的场景路径 ,然后在遍历每条场景路径的过程中获取相应协作执行的路径条件、参数变量和预期方法调用序列 ,最后使用范畴 划分方法确定场景路径上的输入、输出、环境条件的合理组合作为覆盖该场景路径的测试用例 ,用于测试一个协作场景路径上的交互行为 .该方法 ,集成了白盒方法和黑盒方法 ,在覆盖所有的测试需求的前提下 ,生成的测试用例较少 . 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.
出处 《电子学报》 EI CAS CSCD 北大核心 2004年第8期1290-1296,共7页 Acta Electronica Sinica
基金 8 63项目 (No 2 0 0 2AA1 1 60 90 ) 自然科学基金项目 (No 60 2 0 70 36 60 2 330 2 0 ) 973项目 (No 2 0 0 2CB31 2 0 0 1 )
关键词 测试用例生成 集成测试 UML协作图 场景路径 test cases generation integration testing UML collaboration diagram scenario path
  • 相关文献

参考文献15

  • 1Imran Bashir,Amrit L Goel.Testing Object-Oriented Software:Life Cycle Solution[M].New York:Springer-Verlag,Inc,1999.
  • 2David C Kung,Pei Hsia,Jerry Gao.Testing Object-Oriented Software[C].USA,IEEE Computer Society,1999.
  • 3Beizer.Black-Box Testing:Techniques for Functional Testing of Software and Systems[M].New York:John Wiley&Sons,Inc,1995.
  • 4UML Specification 1.5[S].available at http://www.omg.org/uml,March 2004.
  • 5Paul C Jorgrnsen.Software Testing:A Craftsman's Approach[M].CRC Press,Inc,1995.
  • 6Robert V Binder.Testing Object-Oriented System:Models,Patterns,and Tools[M].Addison-Wesley,2000.
  • 7Grade Booch,James Rumbaugh,Ivar Jacobson.The Unified Software Development Process[M].Addison-Wesley,2001.
  • 8Philippe Kruchten.The Rational Unified Process-An Introduction[M].2nd edition,Addison-Wesley,Reading,MA,2000.
  • 9Grade Booch,James Rumbaugh,Ivar Jacobson.The Unified Modeling Language User Guide[M].Addison-Wesley,2001.
  • 10Grade Booch,James Rumbaugh,Ivar Jacobson.The Unified Modeling Language Reference Manual[M].Addison-Wesley,2001.

同被引文献194

引证文献25

二级引证文献66

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部